Searched refs:GLFrame (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/media/mca/filterfw/native/core/
H A Dgl_frame.cpp31 // A GLFrame stores pixel data on the GPU. It uses two kinds of GL data
34 // and when pixel data is uploaded to a GLFrame. The FBO is used as a rendering
38 GLFrame::GLFrame(GLEnv* gl_env) function in class:android::filterfw::GLFrame
56 bool GLFrame::Init(int width, int height) {
65 bool GLFrame::InitWithTexture(GLint texture_id, int width, int height) {
72 bool GLFrame::InitWithFbo(GLint fbo_id, int width, int height) {
80 bool GLFrame::InitWithExternalTexture() {
87 void GLFrame::InitDimensions(int width, int height) {
94 GLFrame
[all...]
H A Dgl_frame.h32 // A GLFrame stores pixel data on the GPU. While pixel data may be uploaded to
33 // a GLFrame and also read out of a GLFrame (access in place is not supported),
35 // processing from one GLFrame to another.
36 class GLFrame : public GLBufferHandle { class in namespace:android::filterfw
38 // Create an empty GL frame in the specified GL environment. Note, that the GLFrame does NOT
39 // take ownership. The caller must make sure the GLEnv stays valid as long as the GLFrame is
41 explicit GLFrame(GLEnv* gl_env);
44 ~GLFrame();
67 bool CopyPixelsFrom(const GLFrame* fram
[all...]
H A Dshader_program.h34 class GLFrame;
78 // caller must make sure the GLEnv stays valid as long as the GLFrame is
86 // caller must make sure the GLEnv stays valid as long as the GLFrame is
97 bool Process(const std::vector<const GLFrame*>& inputs, GLFrame* output);
H A Dshader_program.cpp217 bool ShaderProgram::Process(const std::vector<const GLFrame*>& input, GLFrame* output) {
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_frame.cpp27 using android::filterfw::GLFrame;
43 // GLFrame JNI implementation //////////////////////////////////////////////////////////////////////
51 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr));
66 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr));
81 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_ptr));
93 std::unique_ptr<GLFrame> frame(new GLFrame(gl_env_pt
[all...]
H A Djni_init.cpp37 ObjectPool<GLFrame>::Setup("android/filterfw/core/GLFrame", "glFrameId");
H A Djni_shader_program.cpp31 using android::filterfw::GLFrame;
96 std::vector<const GLFrame*> input_frames;
102 const GLFrame* input_frame = ConvertFromJava<GLFrame>(env, input);
111 GLFrame* output_frame = ConvertFromJava<GLFrame>(env, output);
H A Djni_native_frame.cpp28 using android::filterfw::GLFrame;
289 GLFrame* other_frame = ConvertFromJava<GLFrame>(env, frame);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrameManager.java23 import android.filterfw.core.GLFrame;
46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId);
71 GLFrame glFrame = new GLFrame(format, this);
H A DShaderProgram.java97 GLFrame[] glInputs = new GLFrame[inputs.length];
99 if (inputs[i] instanceof GLFrame) {
100 glInputs[i] = (GLFrame)inputs[i];
107 GLFrame glOutput = null;
108 if (output instanceof GLFrame) {
109 glOutput = (GLFrame)output;
259 private native boolean shaderProcess(GLFrame[] inputs, GLFrame output);
H A DNativeFrame.java23 import android.filterfw.core.GLFrame;
213 } else if (frame instanceof GLFrame) {
214 nativeCopyFromGL((GLFrame)frame);
262 private native boolean nativeCopyFromGL(GLFrame frame);
H A DGLFrame.java47 public class GLFrame extends Frame { class in inherits:Frame
70 GLFrame(FrameFormat format, FrameManager frameManager) { method in class:GLFrame
74 GLFrame(FrameFormat format, FrameManager frameManager, int bindingType, long bindingId) { method in class:GLFrame
267 } else if (frame instanceof GLFrame) {
268 nativeCopyFromGL((GLFrame)frame);
299 "for GLFrame!");
313 throw new RuntimeException("Could not focus on GLFrame for drawing!");
319 return "GLFrame id: " + glFrameId + " (" + getFormat() + ") with texture ID "
326 throw new RuntimeException("Could not reset GLFrame texture parameters!");
410 private native boolean nativeCopyFromGL(GLFrame fram
[all...]
/frameworks/base/media/mca/effect/java/android/media/effect/
H A DFilterEffect.java21 import android.filterfw.core.GLFrame;
91 GLFrame.EXISTING_TEXTURE_BINDING,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DGLTextureSource.java25 import android.filterfw.core.GLFrame;
82 GLFrame.EXISTING_TEXTURE_BINDING,
H A DGLTextureTarget.java25 import android.filterfw.core.GLFrame;
55 Frame frame = context.getFrameManager().newBoundFrame(format, GLFrame.EXISTING_TEXTURE_BINDING, mTexId);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDrawRectFilter.java25 import android.filterfw.core.GLFrame;
96 GLFrame output = (GLFrame)env.getFrameManager().duplicateFrame(imageFrame);
H A DResizeFilter.java25 import android.filterfw.core.GLFrame;
102 GLFrame mipmapped = (GLFrame)env.getFrameManager().newFrame(input.getFormat());
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
H A DSurfaceTargetFilter.java27 import android.filterfw.core.GLFrame;
73 private GLFrame mScreen;
129 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat,
130 GLFrame.EXISTING_FBO_BINDING,
H A DSurfaceRenderFilter.java28 import android.filterfw.core.GLFrame;
66 private GLFrame mScreen;
124 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat,
125 GLFrame.EXISTING_FBO_BINDING,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DSurfaceTextureSource.java25 import android.filterfw.core.GLFrame;
103 private GLFrame mMediaFrame;
160 mMediaFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat,
161 GLFrame.EXTERNAL_TEXTURE,
H A DCameraSource.java26 import android.filterfw.core.GLFrame;
71 private GLFrame mCameraFrame;
146 mCameraFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat,
147 GLFrame.EXTERNAL_TEXTURE,
H A DSurfaceTextureTarget.java27 import android.filterfw.core.GLFrame;
89 private GLFrame mScreen;
147 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat,
148 GLFrame.EXISTING_FBO_BINDING,
H A DMediaSource.java28 import android.filterfw.core.GLFrame;
98 private GLFrame mMediaFrame;
206 mMediaFrame = (GLFrame)context.getFrameManager().newBoundFrame(
208 GLFrame.EXTERNAL_TEXTURE,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
H A DBackDropperFilter.java24 import android.filterfw.core.GLFrame;
480 private GLFrame mBgMean[];
481 private GLFrame mBgVariance[];
482 private GLFrame mMaskVerify[];
483 private GLFrame mDistance;
484 private GLFrame mAutoWB;
485 private GLFrame mMask;
486 private GLFrame mVideoInput;
487 private GLFrame mBgInput;
488 private GLFrame mMaskAverag
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
H A DMediaEncoderFilter.java25 import android.filterfw.core.GLFrame;
161 private GLFrame mScreen;
308 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(
309 screenFormat, GLFrame.EXISTING_FBO_BINDING, 0);
455 // and GLFrame members

Completed in 213 milliseconds