HomeSort by relevance Sort by last modified time
    Searched defs:mProgram (Results 26 - 50 of 65) sorted by null

12 3

  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DrawRectFilter.java 63 private ShaderProgram mProgram;
85 mProgram = new ShaderProgram(context, mVertexShader, mFixedColorFragmentShader);
123 mProgram.setHostValue("color", color);
124 mProgram.setAttributeValues("aPosition", vertexValues, 2);
125 mProgram.setVertexCount(4);
128 mProgram.beginDrawing();
FisheyeFilter.java 52 private Program mProgram;
96 mProgram = shaderProgram;
116 if (mProgram == null || inputFormat.getTarget() != mTarget) {
126 mProgram.process(input, output);
137 if (mProgram != null) {
168 mProgram.setHostValue("scale", scale);
169 mProgram.setHostValue("radius2",radius2);
170 mProgram.setHostValue("factor", factor);
171 mProgram.setHostValue("alpha", alpha);
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);
ImageSlicer.java 47 private Program mProgram;
106 if (mProgram == null) {
107 mProgram = ShaderProgram.createIdentity(context);
118 ((ShaderProgram) mProgram).setSourceRect(x0, y0,
123 mProgram.process(mOriginalFrame, output);
ImageStitcher.java 44 private Program mProgram;
109 if (mProgram == null) {
110 mProgram = ShaderProgram.createIdentity(context);
124 ((ShaderProgram) mProgram).setSourceRect(x0, y0,
128 ((ShaderProgram) mProgram).setTargetRect(((float) outputOffsetX)/ mImageWidth,
134 mProgram.process(input, mOutputFrame);
ResizeFilter.java 50 private Program mProgram;
81 mProgram = prog;
110 mProgram.process(mipmapped, output);
113 mProgram.process(input, output);
RotateFilter.java 47 private Program mProgram;
72 mProgram = shaderProgram;
84 if (mProgram != null) {
96 if (mProgram == null || inputFormat.getTarget() != mTarget) {
117 mProgram.process(input, output);
154 ((ShaderProgram) mProgram).setTargetRegion(quad);
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) {
StraightenFilter.java 50 private Program mProgram;
73 mProgram = shaderProgram;
85 if (mProgram != null) {
97 if (mProgram == null || inputFormat.getTarget() != mTarget) {
111 mProgram.process(input, output);
152 ((ShaderProgram) mProgram).setSourceRegion(quad);
ToPackedGrayFilter.java 45 private Program mProgram;
114 mProgram = new ShaderProgram(context, mColorToPackedGrayShader);
125 mProgram.setHostValue("pix_stride", 1.0f / ow);
131 mProgram.process(input, temp);
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...]
RedEyeFilter.java 63 private Program mProgram;
105 mProgram = shaderProgram;
106 mProgram.setHostValue("intensity", DEFAULT_RED_INTENSITY);
125 if (mProgram == null || inputFormat.getTarget() != mTarget) {
138 mProgram.process(inputs, output);
153 if (mProgram != null) {
  /cts/tests/tests/opengl/src/android/opengl/cts/
RendererBase.java 31 int mProgram;
  /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...]
RendererES3.cpp 66 GLuint mProgram;
82 mProgram(0),
90 mProgram = createProgram(VERTEX_SHADER, FRAGMENT_SHADER);
91 if (!mProgram)
136 glDeleteProgram(mProgram);
162 glUseProgram(mProgram);
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
SurfaceRenderFilter.java 73 private ShaderProgram mProgram;
120 mProgram = ShaderProgram.createIdentity(context);
121 mProgram.setSourceRect(0, 1, 1, -1);
122 mProgram.setClearsOutput(true);
123 mProgram.setClearColor(0.0f, 0.0f, 0.0f);
189 mProgram.process(gpuFrame, mScreen);
242 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) {
248 mProgram.setTargetRect(0, 0, 1, 1);
253 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f,
257 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio
    [all...]
SurfaceTargetFilter.java 79 private ShaderProgram mProgram;
128 mProgram = ShaderProgram.createIdentity(context);
129 mProgram.setSourceRect(0, 1, 1, -1);
130 mProgram.setClearsOutput(true);
131 mProgram.setClearColor(0.0f, 0.0f, 0.0f);
181 mProgram.process(gpuFrame, mScreen);
210 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) {
216 mProgram.setTargetRect(0, 0, 1, 1);
221 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f,
225 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio
    [all...]
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
SurfaceTextureTarget.java 98 private ShaderProgram mProgram;
146 mProgram = ShaderProgram.createIdentity(context);
147 mProgram.setSourceRect(0, 1, 1, -1);
148 mProgram.setClearColor(0.0f, 0.0f, 0.0f);
251 mProgram.process(gpuFrame, mScreen);
278 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) {
288 mProgram.setTargetRect(0, 0, 1, 1);
289 mProgram.setClearsOutput(false);
297 mProgram.setClearsOutput(false);
314 mProgram.setClearsOutput(true)
    [all...]
  /frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
FragmentShader.java 33 ProgramFragment mProgram;
94 mShader.mProgram = mBuilder.create();
100 return mProgram;
151 item.program = mProgram;
162 mProgram.bindConstants(item.shaderConst, 0);
  /frameworks/native/opengl/tests/gl2_java/src/com/android/gl2java/
GL2JavaView.java 67 GLES20.glUseProgram(mProgram);
84 mProgram = createProgram(mVertexShader, mFragmentShader);
85 if (mProgram == 0) {
88 mvPositionHandle = GLES20.glGetAttribLocation(mProgram, "vPosition");
165 private int mProgram;
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
MediaEncoderFilter.java 169 private ShaderProgram mProgram;
232 mProgram.setSourceRegion(flippedRegion);
285 mProgram = ShaderProgram.createIdentity(context);
414 mProgram.process(input, mScreen);
  /cts/tests/src/android/opengl/cts/
EglConfigGLSurfaceView.java 131 private int mProgram;
138 mProgram = createProgram(mVertexShader, mFragmentShader);
139 if (mProgram == 0) {
143 maPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition");
220 GLES20.glUseProgram(mProgram);
  /development/samples/HelloEffects/src/com/example/android/mediafx/
TextureRenderer.java 27 private int mProgram;
70 mProgram = GLToolbox.createProgram(VERTEX_SHADER, FRAGMENT_SHADER);
73 mTexSamplerHandle = GLES20.glGetUniformLocation(mProgram,
75 mTexCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_texcoord");
76 mPosCoordHandle = GLES20.glGetAttribLocation(mProgram, "a_position");
90 GLES20.glDeleteProgram(mProgram);
110 GLES20.glUseProgram(mProgram);
  /frameworks/av/libvideoeditor/lvpp/
NativeWindowRenderer.h 98 GLuint mProgram[NUMBER_OF_EFFECTS];
  /frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
TestLatencyView.java 96 GLES20.glUseProgram(mProgram);
153 mProgram = createProgram(mVertexShader, mFragmentShader);
154 if (mProgram == 0) {
157 mvPositionHandle = GLES20.glGetAttribLocation(mProgram, "aPosition");
162 mvColorHandle = GLES20.glGetAttribLocation(mProgram, "aColor");
261 private int mProgram;

Completed in 1674 milliseconds

12 3