FileDocCategorySizeDatePackage
GLTextureTarget.javaAPI DocAndroid 5.1 API1947Thu Mar 12 22:22:30 GMT 2015android.filterpacks.base

GLTextureTarget

public class GLTextureTarget extends android.filterfw.core.Filter
hide

Fields Summary
private int
mTexId
Constructors Summary
public GLTextureTarget(String name)

        super(name);
    
Methods Summary
public voidprocess(android.filterfw.core.FilterContext context)

        // Get input frame
        Frame input = pullInput("frame");

        FrameFormat format = ImageFormat.create(input.getFormat().getWidth(),
                                                input.getFormat().getHeight(),
                                                ImageFormat.COLORSPACE_RGBA,
                                                FrameFormat.TARGET_GPU);

        Frame frame = context.getFrameManager().newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, mTexId);

        // Copy to our texture frame
        frame.setDataFromFrame(input);
        frame.release();
    
public voidsetupPorts()

        addMaskedInputPort("frame", ImageFormat.create(ImageFormat.COLORSPACE_RGBA));