public abstract class SimpleImageFilter extends Filter
Modifier and Type | Field and Description |
---|---|
protected int |
mCurrentTarget |
protected String |
mParameterName |
protected Program |
mProgram |
Constructor and Description |
---|
SimpleImageFilter(String name,
String parameterName) |
Modifier and Type | Method and Description |
---|---|
protected abstract Program |
getNativeProgram(FilterContext context) |
FrameFormat |
getOutputFormat(String portName,
FrameFormat inputFormat) |
protected abstract Program |
getShaderProgram(FilterContext context) |
void |
process(FilterContext context) |
void |
setupPorts() |
protected void |
updateProgramWithTarget(int target,
FilterContext context) |
addFieldPort, addInputPort, addMaskedInputPort, addOutputBasedOnInput, addOutputPort, addProgramPort, close, closeOutputPort, delayNextProcess, fieldPortValueUpdated, getFilterClassName, getInputFormat, getInputPort, getName, getNumberOfConnectedInputs, getNumberOfConnectedOutputs, getNumberOfInputs, getNumberOfOutputs, getOutputPort, getSleepDelay, init, initProgramInputs, initWithAssignmentList, initWithAssignmentString, initWithValueMap, isAvailable, isOpen, open, parametersUpdated, prepare, pullInput, pushOutput, setInputFrame, setInputValue, setWaitsOnInputPort, setWaitsOnOutputPort, tearDown, toString, transferInputPortFrame
protected int mCurrentTarget
protected Program mProgram
protected String mParameterName
public void setupPorts()
setupPorts
in class Filter
public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat)
getOutputFormat
in class Filter
public void process(FilterContext context)
protected void updateProgramWithTarget(int target, FilterContext context)
protected abstract Program getNativeProgram(FilterContext context)
protected abstract Program getShaderProgram(FilterContext context)