/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
ProgramVariable.java | 25 private Program mProgram; 29 mProgram = program; 34 return mProgram; 42 if (mProgram == null) { 46 mProgram.setHostValue(mVarName, value); 50 if (mProgram == null) { 54 return mProgram.getHostValue(mVarName);
|
/development/ndk/platforms/android-18/samples/gles3jni/jni/ |
RendererES2.cpp | 54 GLuint mProgram; 76 mProgram(0), 85 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER); 86 if (!mProgram) 88 mPosAttrib = glGetAttribLocation(mProgram, "pos"); 89 mColorAttrib = glGetAttribLocation(mProgram, "color"); 90 mScaleRotUniform = glGetUniformLocation(mProgram, "scaleRot"); 91 mOffsetUniform = glGetUniformLocation(mProgram, "offset"); 111 glDeleteProgram(mProgram); 129 glUseProgram(mProgram); [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererFiveShaderTest.java | 35 mProgram = GLES20.glCreateProgram(); 38 GLES20.glAttachShader(mProgram, shaderOne); 39 GLES20.glAttachShader(mProgram, shaderTwo); 42 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0);
|
RendererSixShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, shaderOne); 37 GLES20.glAttachShader(mProgram, shaderTwo); 40 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0);
|
RendererThreeShaderTest.java | 47 GLES20.glUseProgram(mProgram); 55 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); 65 mProgram = GLES20.glCreateProgram(); 67 GLES20.glAttachShader(mProgram, vertexShaderOne); 68 GLES20.glAttachShader(mProgram, vertexShaderTwo); 70 GLES20.glAttachShader(mProgram, fragmentShader); 71 GLES20.glLinkProgram(mProgram); 73 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0);
|
RendererOneShaderTest.java | 48 GLES20.glUseProgram(mProgram); 56 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); 65 mProgram = GLES20.glCreateProgram(); 66 GLES20.glAttachShader(mProgram, vertexShaderOne); 67 GLES20.glAttachShader(mProgram, fragmentShader); 68 GLES20.glLinkProgram(mProgram); 70 GLES20.glGetProgramiv(mProgram, GLES20.GL_LINK_STATUS, linkStatus, 0);
|
RendererElevenShaderTest.java | 35 mProgram = GLES20.glCreateProgram(); 37 GLES20.glAttachShader(mProgram, fragmentShader); 38 GLES20.glLinkProgram(mProgram);
|
RendererFourShaderTest.java | 35 mProgram = GLES20.glCreateProgram(); 39 GLES20.glGetAttachedShaders(mProgram, 10, mShaderCount, 0, shaders, 0); 44 GLES20.glLinkProgram(mProgram);
|
RendererSevenShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, shaderOne); 37 GLES20.glAttachShader(mProgram, shaderTwo);
|
RendererTenShaderTest.java | 34 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, fragmentShader); 37 GLES20.glLinkProgram(mProgram);
|
RendererTwelveShaderTest.java | 36 mProgram = 0; 38 GLES20.glAttachShader(mProgram, fragmentShader); 39 GLES20.glLinkProgram(mProgram);
|
RendererEightShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, shaderOne);
|
RendererNineShaderTest.java | 33 mProgram = GLES20.glCreateProgram(); 37 GLES20.glAttachShader(mProgram, shaderOne);
|
RendererOneProgramTest.java | 34 mProgram = GLES20.glCreateProgram(); 36 GLES20.glAttachShader(mProgram, mProgramTwo);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
LomoishFilter.java | 39 private Program mProgram; 144 mProgram = shaderProgram; 155 if (mProgram !=null) { 166 mProgram.setHostValue("scale", scale); 167 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist); 169 mProgram.setHostValue("stepsize", 1.0f / 255.0f); 170 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); 171 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); 174 mProgram.setHostValue("seed", seed); 185 if (mProgram == null || inputFormat.getTarget() != mTarget) [all...] |
VignetteFilter.java | 39 private Program mProgram; 85 mProgram = shaderProgram; 96 if (mProgram != null) { 106 mProgram.setHostValue("scale", scale); 107 mProgram.setHostValue("inv_max_dist", 1f / max_dist); 108 mProgram.setHostValue("shade", mShade); 118 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); 123 if (mProgram != null) { 135 if (mProgram == null || inputFormat.getTarget() != mTarget) { 150 mProgram.process(input, output) [all...] |
SimpleImageFilter.java | 41 protected Program mProgram; 53 Field programField = SimpleImageFilter.class.getDeclaredField("mProgram"); 56 throw new RuntimeException("Internal Error: mProgram field not found!"); 81 mProgram.process(input, output); 94 mProgram = getNativeProgram(context); 98 mProgram = getShaderProgram(context); 102 mProgram = null; 105 if (mProgram == null) { 108 initProgramInputs(mProgram, context);
|
BlackWhiteFilter.java | 45 private Program mProgram; 109 mProgram = shaderProgram; 123 mProgram.setHostValue("black", mBlack); 124 mProgram.setHostValue("scale", scale); 125 mProgram.setHostValue("stepsize", stepsize); 128 mProgram.setHostValue("seed", seed); 133 if (mProgram != null) { 145 if (mProgram == null || inputFormat.getTarget() != mTarget) { 153 mProgram.process(input, output);
|
DocumentaryFilter.java | 39 private Program mProgram; 104 mProgram = shaderProgram; 121 if (mProgram == null || inputFormat.getTarget() != mTarget) { 136 mProgram.process(input, output); 146 if (mProgram != null) { 157 mProgram.setHostValue("scale", scale); 158 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist); 159 mProgram.setHostValue("stepsize", 1.0f / 255.0f); 162 mProgram.setHostValue("seed", seed);
|
SharpenFilter.java | 41 private Program mProgram; 93 mProgram = shaderProgram; 113 if (mProgram == null || inputFormat.getTarget() != mTarget) { 123 mProgram.process(input, output); 136 if (mProgram != null) { 137 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); 138 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); 144 mProgram.setHostValue("scale", mScale); 149 if (mProgram != null) {
|
ColorTemperatureFilter.java | 40 private Program mProgram; 83 mProgram = shaderProgram; 100 if (mProgram == null || inputFormat.getTarget() != mTarget) { 109 mProgram.process(input, output); 119 mProgram.setHostValue("scale", 2.0f * mScale - 1.0f); 124 if (mProgram != null) {
|
CropFilter.java | 43 private Program mProgram; 97 mProgram = null; 101 mProgram = new ShaderProgram(context, mFragShader); 103 mProgram = ShaderProgram.createIdentity(context); 107 if (mProgram == null) { 132 if (mProgram instanceof ShaderProgram) { 133 ShaderProgram shaderProgram = (ShaderProgram)mProgram; 137 mProgram.process(imageFrame, output);
|
FillLightFilter.java | 42 private Program mProgram; 86 mProgram = shaderProgram; 107 if (mProgram == null || inputFormat.getTarget() != mTarget) { 113 mProgram.process(input, output); 125 if (mProgram != null) { 137 mProgram.setHostValue("mult", mult); 138 mProgram.setHostValue("igamma", igamma);
|
ImageCombineFilter.java | 40 protected Program mProgram; 60 Field programField = ImageCombineFilter.class.getDeclaredField("mProgram"); 63 throw new RuntimeException("Internal Error: mProgram field not found!"); 103 mProgram.process(inputs, output); 116 mProgram = getNativeProgram(context); 120 mProgram = getShaderProgram(context); 124 mProgram = null; 127 if (mProgram == null) { 131 initProgramInputs(mProgram, context);
|
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
ProgramNode.cpp | 18 mProgram(program) { 30 SceneGraphNode::draw(mProgram, model, view, projection);
|