public class FrameDropper extends BaseDataProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_DROP_EVERY_NTH_FRAME
The property that specifies dropping one in every Nth frame.
|
static java.lang.String |
PROP_REPLACE_NTH_WITH_PREVIOUS
The property that specifies whether to replace the Nth frame with the previous frame.
|
logger| Constructor and Description |
|---|
FrameDropper() |
FrameDropper(int dropEveryNthFrame,
boolean replaceNthWithPrevious) |
| Modifier and Type | Method and Description |
|---|---|
Data |
getData()
Returns the next Data object from this FrameDropper.
|
void |
initialize()
Initializes this FrameDropper.
|
protected void |
initVars(int dropEveryNthFrame,
boolean replaceNthWithPrevious) |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
getPredecessor, setPredecessorgetName, initLogger, toString@S4Integer(defaultValue=-1) public static final java.lang.String PROP_DROP_EVERY_NTH_FRAME
@S4Boolean(defaultValue=false) public static final java.lang.String PROP_REPLACE_NTH_WITH_PREVIOUS
public FrameDropper(int dropEveryNthFrame,
boolean replaceNthWithPrevious)
dropEveryNthFrame - frame count to dropreplaceNthWithPrevious - replace each nth frame with previouspublic FrameDropper()
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface ConfigurablenewProperties in class ConfigurableAdapterps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.protected void initVars(int dropEveryNthFrame,
boolean replaceNthWithPrevious)
public void initialize()
initialize in interface DataProcessorinitialize in class BaseDataProcessorpublic Data getData() throws DataProcessingException
getData in interface DataProcessorgetData in class BaseDataProcessorDataProcessingException - if a data processing error occurs