Methods Summary |
---|
protected void | beginGLEffect()Call this before manipulating the GL context. Will assert that the GL environment is in a
valid state, and save it.
mEffectContext.assertValidGLState();
mEffectContext.saveGLState();
|
protected void | endGLEffect()Call this after manipulating the GL context. Restores the previous GL state.
mEffectContext.restoreGLState();
|
protected android.filterfw.core.Frame | frameFromTexture(int texId, int width, int height)Converts a texture into a Frame.
FrameManager manager = getFilterContext().getFrameManager();
FrameFormat format = ImageFormat.create(width, height,
ImageFormat.COLORSPACE_RGBA,
FrameFormat.TARGET_GPU);
Frame frame = manager.newBoundFrame(format,
GLFrame.EXISTING_TEXTURE_BINDING,
texId);
frame.setTimestamp(Frame.TIMESTAMP_UNKNOWN);
return frame;
|
protected android.filterfw.core.FilterContext | getFilterContext()Returns the active filter context for this effect.
return mEffectContext.mFilterContext;
|
public java.lang.String | getName()Get the effect name.
Returns the unique name of the effect, which matches the name used for instantiating this
effect by the EffectFactory.
return mName;
|