Home
last modified time | relevance | path

Searched refs:ShaderProgram (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/media/mca/filterfw/jni/
Djni_shader_program.cpp35 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/
Dshader_program.cpp56 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 …]
Dgl_env.h40 class ShaderProgram; variable
180 void AttachShader(int key, ShaderProgram* shader);
188 ShaderProgram* ShaderWithKey(int key);
256 std::map<int, ShaderProgram*> attached_shaders_;
Dshader_program.h67 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/
DCropFilter.java27 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()
DFlipFilter.java25 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()
DToGrayFilter.java25 import android.filterfw.core.ShaderProgram;
74 ShaderProgram program = new ShaderProgram(context, mColorToGray4Shader); in getShaderProgram()
DSaturateFilter.java25 import android.filterfw.core.ShaderProgram;
88 ShaderProgram shaderProgram = new ShaderProgram(context, mBenSaturateShader); in initProgram()
92 shaderProgram = new ShaderProgram(context, mHerfSaturateShader); in initProgram()
DImageStitcher.java26 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()
DCrossProcessFilter.java25 import android.filterfw.core.ShaderProgram;
89 ShaderProgram shaderProgram = new ShaderProgram(context, mCrossProcessShader); in initProgram()
DDrawOverlayFilter.java24 import android.filterfw.core.ShaderProgram;
34 private ShaderProgram mProgram;
57 mProgram = ShaderProgram.createIdentity(context); in prepare()
DNegativeFilter.java25 import android.filterfw.core.ShaderProgram;
64 ShaderProgram shaderProgram = new ShaderProgram(context, mNegativeShader); in initProgram()
DPosterizeFilter.java25 import android.filterfw.core.ShaderProgram;
67 ShaderProgram shaderProgram = new ShaderProgram(context, mPosterizeShader); in initProgram()
DRotateFilter.java26 import android.filterfw.core.ShaderProgram;
64 ShaderProgram shaderProgram = ShaderProgram.createIdentity(context); in initProgram()
149 ((ShaderProgram) mProgram).setTargetRegion(quad); in updateParameters()
DSepiaFilter.java25 import android.filterfw.core.ShaderProgram;
65 ShaderProgram shaderProgram = new ShaderProgram(context, mSepiaShader); in initProgram()
DGrainFilter.java25 import android.filterfw.core.ShaderProgram;
110 ShaderProgram shaderProgram = new ShaderProgram(context, mNoiseShader); in initProgram()
114 shaderProgram = new ShaderProgram(context, mGrainShader); in initProgram()
DColorTemperatureFilter.java25 import android.filterfw.core.ShaderProgram;
77 ShaderProgram shaderProgram = new ShaderProgram(context, mColorTemperatureShader); in initProgram()
DAlphaBlendFilter.java22 import android.filterfw.core.ShaderProgram;
54 return new ShaderProgram(context, mAlphaBlendShader); in getShaderProgram()
DBlendFilter.java21 import android.filterfw.core.ShaderProgram;
54 return new ShaderProgram(context, mBlendShader); in getShaderProgram()
DBrightnessFilter.java23 import android.filterfw.core.ShaderProgram;
51 return new ShaderProgram(context, mBrightnessShader); in getShaderProgram()
DContrastFilter.java23 import android.filterfw.core.ShaderProgram;
54 return new ShaderProgram(context, mContrastShader); in getShaderProgram()
DInvert.java23 import android.filterfw.core.ShaderProgram;
53 return new ShaderProgram(context, mInvertShader); in getShaderProgram()
DDuotoneFilter.java25 import android.filterfw.core.ShaderProgram;
74 ShaderProgram shaderProgram = new ShaderProgram(context, mDuotoneShader); in initProgram()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
DBackDropperFilter.java27 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/
DShaderProgram.java27 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()

123