project.android.imageprocessing.filter
Class BasicFilter

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.input.GLTextureOutputRenderer
          extended by project.android.imageprocessing.filter.BasicFilter
All Implemented Interfaces:
GLTextureInputRenderer
Direct Known Subclasses:
BulgeDistortionFilter, CGAColourSpaceFilter, ChromaKeyFilter, ColourInvertFilter, ColourMatrixFilter, ContrastFilter, CropFilter, CrosshatchFilter, FalseColourFilter, FlipFilter, GammaFilter, GenericFilter, GreyScaleFilter, GroupFilter, HazeFilter, HighlightShadowFilter, HueFilter, KuwaharaFilter, KuwaharaRadius3Filter, LevelsFilter, LuminanceThresholdFilter, MonochromeFilter, MultiInputFilter, MultiPixelRenderer, OpacityFilter, PixellateFilter, PolarPixellateFilter, PosterizeFilter, SaturationFilter, StretchDistortionFilter, SwirlFilter, TransformFilter, TwoPassFilter, VignetteFilter, ZoomBlurFilter

public class BasicFilter
extends GLTextureOutputRenderer
implements GLTextureInputRenderer

A basic filter that takes a texture as input and produces a texture as output. This class is a base class that can be extended to use custom vertex or fragment shaders. This class by itself is relatively useless because it will simpily produce the input texture as the output texture.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
BasicFilter()
           
 
Method Summary
 void newTextureReady(int texture, GLTextureOutputRenderer source)
          Signals that a new texture is available and the image should be reprocessed.
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, destroy, getLockObject, getTargets, removeTarget
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFilter

public BasicFilter()
Method Detail

newTextureReady

public void newTextureReady(int texture,
                            GLTextureOutputRenderer source)
Description copied from interface: GLTextureInputRenderer
Signals that a new texture is available and the image should be reprocessed.

Specified by:
newTextureReady in interface GLTextureInputRenderer
Parameters:
texture - The texture id to be used as input.
source - The GLTextureOutputRenderer which produced the texture.