|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.android.imageprocessing.FastImageProcessingPipeline
public class FastImageProcessingPipeline
Filter pipeline renderer implementation of the GLSurfaceView.Renderer. In addition to the GLSurfaceView.Renderer methods, this class provides methods for processing the given graph of filters. This graph of filters can be set by creating one or more filter graphs and then passing the root of the graphs to this class using addRootRenderer(GLRenderer rootRenderer). This class will not start processing the filters until startRendering() has been called. Once it has started rendering, the filter graph should not be changed without first calling pauseRendering(). Although this is theoretically not required, it is recommended. If a filter is removed from the processing pipeline, addFilterToDestroy(GLRenderer filter) should be called to clean up opengl memory.
Constructor Summary | |
---|---|
FastImageProcessingPipeline()
Creates a FastImageProcessingPipeline with the initial state as paused and having no rootRenderer. |
Method Summary | |
---|---|
void |
addFilterToDestroy(GLRenderer renderer)
Adds a given filter to the list of filters to have its resources removed next time this pipeline receives an opengl context. |
void |
addRootRenderer(GLRenderer rootRenderer)
Adds a root node of graph of filters that the pipeline will process and draw to the given endpoints of the graph. |
int |
getHeight()
Returns the height of GLSurfaceView on the screen. |
int |
getWidth()
Returns the width of GLSurfaceView on the screen. |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 unused)
|
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused,
int width,
int height)
|
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused,
javax.microedition.khronos.egl.EGLConfig config)
|
void |
pauseRendering()
Pauses the rendering of the graph. |
void |
removeRootRenderer(GLRenderer rootRenderer)
Removes a root node of graph of filters that the pipeline will process and draw to the given endpoints of the graph. |
void |
startRendering()
Starts the rendering of the graph. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastImageProcessingPipeline()
Method Detail |
---|
public void addFilterToDestroy(GLRenderer renderer)
renderer
- public void addRootRenderer(GLRenderer rootRenderer)
rootRenderer
- A root node (input node) of the graph of filters and endpoints.public int getHeight()
public int getWidth()
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 unused)
onDrawFrame
in interface android.opengl.GLSurfaceView.Renderer
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 unused, int width, int height)
onSurfaceChanged
in interface android.opengl.GLSurfaceView.Renderer
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 unused, javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated
in interface android.opengl.GLSurfaceView.Renderer
public void pauseRendering()
public void removeRootRenderer(GLRenderer rootRenderer)
rootRenderer
- A root node (input node) of the graph of filters and endpoints.public void startRendering()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |