public class SurfaceRenderFilter extends Filter implements SurfaceHolder.Callback
Constructor and Description |
---|
SurfaceRenderFilter(String name) |
Modifier and Type | Method and Description |
---|---|
void |
close(FilterContext context) |
void |
fieldPortValueUpdated(String name,
FilterContext context) |
void |
open(FilterContext context) |
void |
prepare(FilterContext context) |
void |
process(FilterContext context) |
void |
setupPorts() |
void |
surfaceChanged(SurfaceHolder holder,
int format,
int width,
int height)
This is called immediately after any structural changes (format or
size) have been made to the surface.
|
void |
surfaceCreated(SurfaceHolder holder)
This is called immediately after the surface is first created.
|
void |
surfaceDestroyed(SurfaceHolder holder)
This is called immediately before a surface is being destroyed.
|
void |
tearDown(FilterContext context) |
void |
updateRenderMode() |
addFieldPort, addInputPort, addMaskedInputPort, addOutputBasedOnInput, addOutputPort, addProgramPort, closeOutputPort, delayNextProcess, getFilterClassName, getInputFormat, getInputPort, getName, getNumberOfConnectedInputs, getNumberOfConnectedOutputs, getNumberOfInputs, getNumberOfOutputs, getOutputFormat, getOutputPort, getSleepDelay, init, initProgramInputs, initWithAssignmentList, initWithAssignmentString, initWithValueMap, isAvailable, isOpen, parametersUpdated, pullInput, pushOutput, setInputFrame, setInputValue, setWaitsOnInputPort, setWaitsOnOutputPort, toString, transferInputPortFrame
public SurfaceRenderFilter(String name)
public void setupPorts()
setupPorts
in class Filter
public void updateRenderMode()
public void prepare(FilterContext context)
public void open(FilterContext context)
public void process(FilterContext context)
public void fieldPortValueUpdated(String name, FilterContext context)
fieldPortValueUpdated
in class Filter
public void close(FilterContext context)
public void tearDown(FilterContext context)
public void surfaceCreated(SurfaceHolder holder)
SurfaceHolder.Callback
Surface
, so you should not draw into the Surface here
if your normal rendering will be in another thread.surfaceCreated
in interface SurfaceHolder.Callback
holder
- The SurfaceHolder whose surface is being created.public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
SurfaceHolder.Callback
SurfaceHolder.Callback.surfaceCreated(android.view.SurfaceHolder)
.surfaceChanged
in interface SurfaceHolder.Callback
holder
- The SurfaceHolder whose surface has changed.format
- The new PixelFormat of the surface.width
- The new width of the surface.height
- The new height of the surface.public void surfaceDestroyed(SurfaceHolder holder)
SurfaceHolder.Callback
surfaceDestroyed
in interface SurfaceHolder.Callback
holder
- The SurfaceHolder whose surface is being destroyed.