/frameworks/base/media/mca/filterfw/jni/ |
D | jni_shader_program.cpp | 35 using android::filterfw::ShaderProgram; 50 std::unique_ptr<ShaderProgram> shader; in Java_android_filterfw_core_ShaderProgram_allocate() 52 shader.reset(new ShaderProgram(gl_env_ptr, ToCppString(env, fragment_shader))); in Java_android_filterfw_core_ShaderProgram_allocate() 54 shader.reset(new ShaderProgram(gl_env_ptr, ToCppString(env, vertex_shader), in Java_android_filterfw_core_ShaderProgram_allocate() 60 return ToJBool(DeleteNativeObject<ShaderProgram>(env, thiz)); in Java_android_filterfw_core_ShaderProgram_deallocate() 64 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_compileAndLink() 72 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_setUniformValue() 86 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_getUniformValue() 95 ShaderProgram* program = ConvertFromJava<ShaderProgram>(env, thiz); in Java_android_filterfw_core_ShaderProgram_shaderProcess() 132 ShaderProgram* program = gl_env_ptr ? ShaderProgram::CreateIdentity(gl_env_ptr) : NULL; in Java_android_filterfw_core_ShaderProgram_nativeCreateIdentity() [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | shader_program.cpp | 56 ShaderProgram::VertexAttrib::VertexAttrib() in VertexAttrib() 70 ShaderProgram::ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader) in ShaderProgram() function in android::filterfw::ShaderProgram 92 ShaderProgram::ShaderProgram(GLEnv* gl_env, in ShaderProgram() function in android::filterfw::ShaderProgram 116 ShaderProgram::~ShaderProgram() { in ~ShaderProgram() 130 void ShaderProgram::SetDefaultCoords() { in SetDefaultCoords() 156 ShaderProgram* ShaderProgram::CreateIdentity(GLEnv* gl_env) { in CreateIdentity() 164 ShaderProgram* result = new ShaderProgram(gl_env, s_id_fragment_shader); in CreateIdentity() 169 bool ShaderProgram::IsVarValid(ProgramVar var) { in IsVarValid() 173 bool ShaderProgram::Process(const std::vector<const GLTextureHandle*>& input, in Process() 217 bool ShaderProgram::Process(const std::vector<const GLFrame*>& input, GLFrame* output) { in Process() [all …]
|
D | gl_env.h | 40 class ShaderProgram; variable 180 void AttachShader(int key, ShaderProgram* shader); 188 ShaderProgram* ShaderWithKey(int key); 256 std::map<int, ShaderProgram*> attached_shaders_;
|
D | shader_program.h | 67 class ShaderProgram { 80 explicit ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader); 88 ShaderProgram(GLEnv* gl_env, 93 ~ShaderProgram(); 123 static ShaderProgram* CreateIdentity(GLEnv* env);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | CropFilter.java | 27 import android.filterfw.core.ShaderProgram; 95 mProgram = new ShaderProgram(context, mFragShader); in createProgram() 97 mProgram = ShaderProgram.createIdentity(context); in createProgram() 126 if (mProgram instanceof ShaderProgram) { in process() 127 ShaderProgram shaderProgram = (ShaderProgram)mProgram; in process()
|
D | FlipFilter.java | 25 import android.filterfw.core.ShaderProgram; 63 ShaderProgram shaderProgram = ShaderProgram.createIdentity(context); in initProgram() 114 ((ShaderProgram) mProgram).setSourceRect(x_origin, y_origin, width, height); in updateParameters()
|
D | ToGrayFilter.java | 25 import android.filterfw.core.ShaderProgram; 74 ShaderProgram program = new ShaderProgram(context, mColorToGray4Shader); in getShaderProgram()
|
D | SaturateFilter.java | 25 import android.filterfw.core.ShaderProgram; 88 ShaderProgram shaderProgram = new ShaderProgram(context, mBenSaturateShader); in initProgram() 92 shaderProgram = new ShaderProgram(context, mHerfSaturateShader); in initProgram()
|
D | ImageStitcher.java | 26 import android.filterfw.core.ShaderProgram; 106 mProgram = ShaderProgram.createIdentity(context); in process() 120 ((ShaderProgram) mProgram).setSourceRect(x0, y0, in process() 124 ((ShaderProgram) mProgram).setTargetRect(((float) outputOffsetX)/ mImageWidth, in process()
|
D | CrossProcessFilter.java | 25 import android.filterfw.core.ShaderProgram; 89 ShaderProgram shaderProgram = new ShaderProgram(context, mCrossProcessShader); in initProgram()
|
D | DrawOverlayFilter.java | 24 import android.filterfw.core.ShaderProgram; 34 private ShaderProgram mProgram; 57 mProgram = ShaderProgram.createIdentity(context); in prepare()
|
D | NegativeFilter.java | 25 import android.filterfw.core.ShaderProgram; 64 ShaderProgram shaderProgram = new ShaderProgram(context, mNegativeShader); in initProgram()
|
D | PosterizeFilter.java | 25 import android.filterfw.core.ShaderProgram; 67 ShaderProgram shaderProgram = new ShaderProgram(context, mPosterizeShader); in initProgram()
|
D | RotateFilter.java | 26 import android.filterfw.core.ShaderProgram; 64 ShaderProgram shaderProgram = ShaderProgram.createIdentity(context); in initProgram() 149 ((ShaderProgram) mProgram).setTargetRegion(quad); in updateParameters()
|
D | SepiaFilter.java | 25 import android.filterfw.core.ShaderProgram; 65 ShaderProgram shaderProgram = new ShaderProgram(context, mSepiaShader); in initProgram()
|
D | GrainFilter.java | 25 import android.filterfw.core.ShaderProgram; 110 ShaderProgram shaderProgram = new ShaderProgram(context, mNoiseShader); in initProgram() 114 shaderProgram = new ShaderProgram(context, mGrainShader); in initProgram()
|
D | ColorTemperatureFilter.java | 25 import android.filterfw.core.ShaderProgram; 77 ShaderProgram shaderProgram = new ShaderProgram(context, mColorTemperatureShader); in initProgram()
|
D | AlphaBlendFilter.java | 22 import android.filterfw.core.ShaderProgram; 54 return new ShaderProgram(context, mAlphaBlendShader); in getShaderProgram()
|
D | BlendFilter.java | 21 import android.filterfw.core.ShaderProgram; 54 return new ShaderProgram(context, mBlendShader); in getShaderProgram()
|
D | BrightnessFilter.java | 23 import android.filterfw.core.ShaderProgram; 51 return new ShaderProgram(context, mBrightnessShader); in getShaderProgram()
|
D | ContrastFilter.java | 23 import android.filterfw.core.ShaderProgram; 54 return new ShaderProgram(context, mContrastShader); in getShaderProgram()
|
D | Invert.java | 23 import android.filterfw.core.ShaderProgram; 53 return new ShaderProgram(context, mInvertShader); in getShaderProgram()
|
D | DuotoneFilter.java | 25 import android.filterfw.core.ShaderProgram; 74 ShaderProgram shaderProgram = new ShaderProgram(context, mDuotoneShader); in initProgram()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/ |
D | BackDropperFilter.java | 27 import android.filterfw.core.ShaderProgram; 467 private ShaderProgram mBgDistProgram; 468 private ShaderProgram mBgMaskProgram; 469 private ShaderProgram mBgSubtractProgram; 470 private ShaderProgram mBgUpdateMeanProgram; 471 private ShaderProgram mBgUpdateVarianceProgram; 472 private ShaderProgram mCopyOutProgram; 473 private ShaderProgram mAutomaticWhiteBalanceProgram; 474 private ShaderProgram mMaskVerifyProgram; 475 private ShaderProgram copyShaderProgram; [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | ShaderProgram.java | 27 public class ShaderProgram extends Program { class 44 private ShaderProgram() { in ShaderProgram() method in ShaderProgram 47 private ShaderProgram(NativeAllocatorTag tag) { in ShaderProgram() method in ShaderProgram 51 public ShaderProgram(FilterContext context, String fragmentShader) { in ShaderProgram() method in ShaderProgram 60 public ShaderProgram(FilterContext context, String vertexShader, String fragmentShader) { in ShaderProgram() method in ShaderProgram 70 public static ShaderProgram createIdentity(FilterContext context) { in createIdentity() 71 ShaderProgram program = nativeCreateIdentity(getGLEnvironment(context)); in createIdentity() 274 private static native ShaderProgram nativeCreateIdentity(GLEnvironment glEnv); in nativeCreateIdentity()
|