/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.cpp | 31 // 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 D | gl_frame.h | 32 // 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 D | shader_program.h | 34 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 D | shader_program.cpp | 217 bool ShaderProgram::Process(const std::vector<const GLFrame*>& input, GLFrame* output) {
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_gl_frame.cpp | 27 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 D | jni_init.cpp | 37 ObjectPool<GLFrame>::Setup("android/filterfw/core/GLFrame", "glFrameId");
|
H A D | jni_shader_program.cpp | 31 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 D | jni_native_frame.cpp | 28 using android::filterfw::GLFrame; 289 GLFrame* other_frame = ConvertFromJava<GLFrame>(env, frame);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | SimpleFrameManager.java | 23 import android.filterfw.core.GLFrame; 46 GLFrame glFrame = new GLFrame(format, this, bindingType, bindingId); 71 GLFrame glFrame = new GLFrame(format, this);
|
H A D | ShaderProgram.java | 97 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 D | NativeFrame.java | 23 import android.filterfw.core.GLFrame; 213 } else if (frame instanceof GLFrame) { 214 nativeCopyFromGL((GLFrame)frame); 262 private native boolean nativeCopyFromGL(GLFrame frame);
|
H A D | GLFrame.java | 47 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 D | FilterEffect.java | 21 import android.filterfw.core.GLFrame; 91 GLFrame.EXISTING_TEXTURE_BINDING,
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
H A D | GLTextureSource.java | 25 import android.filterfw.core.GLFrame; 82 GLFrame.EXISTING_TEXTURE_BINDING,
|
H A D | GLTextureTarget.java | 25 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 D | DrawRectFilter.java | 25 import android.filterfw.core.GLFrame; 96 GLFrame output = (GLFrame)env.getFrameManager().duplicateFrame(imageFrame);
|
H A D | ResizeFilter.java | 25 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 D | SurfaceTargetFilter.java | 27 import android.filterfw.core.GLFrame; 73 private GLFrame mScreen; 129 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat, 130 GLFrame.EXISTING_FBO_BINDING,
|
H A D | SurfaceRenderFilter.java | 28 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 D | SurfaceTextureSource.java | 25 import android.filterfw.core.GLFrame; 103 private GLFrame mMediaFrame; 160 mMediaFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat, 161 GLFrame.EXTERNAL_TEXTURE,
|
H A D | CameraSource.java | 26 import android.filterfw.core.GLFrame; 71 private GLFrame mCameraFrame; 146 mCameraFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat, 147 GLFrame.EXTERNAL_TEXTURE,
|
H A D | SurfaceTextureTarget.java | 27 import android.filterfw.core.GLFrame; 89 private GLFrame mScreen; 147 mScreen = (GLFrame)context.getFrameManager().newBoundFrame(screenFormat, 148 GLFrame.EXISTING_FBO_BINDING,
|
H A D | MediaSource.java | 28 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 D | BackDropperFilter.java | 24 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 D | MediaEncoderFilter.java | 25 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
|