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, setPredecessor
getName, 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
Configurable
newProperties
in interface Configurable
newProperties
in class ConfigurableAdapter
ps
- 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 DataProcessor
initialize
in class BaseDataProcessor
public Data getData() throws DataProcessingException
getData
in interface DataProcessor
getData
in class BaseDataProcessor
DataProcessingException
- if a data processing error occurs