Searched defs:mProgram (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DProgramVariable.java25 private Program mProgram; field in class:ProgramVariable
29 mProgram = program;
34 return mProgram;
42 if (mProgram == null) {
46 mProgram.setHostValue(mVarName, value);
50 if (mProgram == null) {
54 return mProgram.getHostValue(mVarName);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDrawOverlayFilter.java34 private ShaderProgram mProgram; field in class:DrawOverlayFilter
57 mProgram = ShaderProgram.createIdentity(context);
71 mProgram.setTargetRegion(box);
78 mProgram.process(overlayFrame, output);
H A DFixedRotationFilter.java40 private ShaderProgram mProgram = null; field in class:FixedRotationFilter
68 if (mProgram == null) {
69 mProgram = ShaderProgram.createIdentity(context);
100 mProgram.setSourceRegion(sourceRegion);
103 mProgram.process(input, output);
H A DColorTemperatureFilter.java36 private Program mProgram; field in class:ColorTemperatureFilter
79 mProgram = shaderProgram;
96 if (mProgram == null || inputFormat.getTarget() != mTarget) {
105 mProgram.process(input, output);
115 mProgram.setHostValue("scale", 2.0f * mScale - 1.0f);
120 if (mProgram != null) {
H A DCropFilter.java37 private Program mProgram; field in class:CropFilter
91 mProgram = null;
95 mProgram = new ShaderProgram(context, mFragShader);
97 mProgram = ShaderProgram.createIdentity(context);
101 if (mProgram == null) {
126 if (mProgram instanceof ShaderProgram) {
127 ShaderProgram shaderProgram = (ShaderProgram)mProgram;
131 mProgram.process(imageFrame, output);
H A DCrossProcessFilter.java33 private Program mProgram; field in class:CrossProcessFilter
91 mProgram = shaderProgram;
108 if (mProgram == null || inputFormat.getTarget() != mTarget) {
116 mProgram.process(input, output);
H A DDuotoneFilter.java40 private Program mProgram; field in class:DuotoneFilter
76 mProgram = shaderProgram;
96 if (mProgram == null || inputFormat.getTarget() != mTarget) {
102 mProgram.process(input, output);
119 mProgram.setHostValue("first", first);
120 mProgram.setHostValue("second", second);
H A DFillLightFilter.java38 private Program mProgram; field in class:FillLightFilter
82 mProgram = shaderProgram;
103 if (mProgram == null || inputFormat.getTarget() != mTarget) {
109 mProgram.process(input, output);
121 if (mProgram != null) {
133 mProgram.setHostValue("mult", mult);
134 mProgram.setHostValue("igamma", igamma);
H A DFlipFilter.java42 private Program mProgram; field in class:FlipFilter
65 mProgram = shaderProgram;
78 if (mProgram != null) {
90 if (mProgram == null || inputFormat.getTarget() != mTarget) {
98 mProgram.process(input, output);
114 ((ShaderProgram) mProgram).setSourceRect(x_origin, y_origin, width, height);
H A DNegativeFilter.java34 private Program mProgram; field in class:NegativeFilter
66 mProgram = shaderProgram;
86 if (mProgram == null || inputFormat.getTarget() != mTarget) {
91 mProgram.process(input, output);
H A DPosterizeFilter.java33 private Program mProgram; field in class:PosterizeFilter
69 mProgram = shaderProgram;
89 if (mProgram == null || inputFormat.getTarget() != mTarget) {
94 mProgram.process(input, output);
H A DRotateFilter.java42 private Program mProgram; field in class:RotateFilter
67 mProgram = shaderProgram;
79 if (mProgram != null) {
91 if (mProgram == null || inputFormat.getTarget() != mTarget) {
112 mProgram.process(input, output);
149 ((ShaderProgram) mProgram).setTargetRegion(quad);
H A DSepiaFilter.java33 private Program mProgram; field in class:SepiaFilter
67 mProgram = shaderProgram;
87 if (mProgram == null || inputFormat.getTarget() != mTarget) {
93 mProgram.process(input, output);
106 mProgram.setHostValue("matrix", weights);
H A DSimpleImageFilter.java35 protected Program mProgram; field in class:SimpleImageFilter
47 Field programField = SimpleImageFilter.class.getDeclaredField("mProgram");
50 throw new RuntimeException("Internal Error: mProgram field not found!");
75 mProgram.process(input, output);
88 mProgram = getNativeProgram(context);
92 mProgram = getShaderProgram(context);
96 mProgram = null;
99 if (mProgram == null) {
102 initProgramInputs(mProgram, context);
H A DStraightenFilter.java45 private Program mProgram; field in class:StraightenFilter
68 mProgram = shaderProgram;
80 if (mProgram != null) {
92 if (mProgram == null || inputFormat.getTarget() != mTarget) {
106 mProgram.process(input, output);
147 ((ShaderProgram) mProgram).setSourceRegion(quad);
H A DToRGBAFilter.java35 private Program mProgram; field in class:ToRGBAFilter
69 mProgram = new NativeProgram("filterpack_imageproc", "gray_to_rgba");
72 mProgram = new NativeProgram("filterpack_imageproc", "rgb_to_rgba");
89 mProgram.process(input, output);
H A DToRGBFilter.java35 private Program mProgram; field in class:ToRGBFilter
69 mProgram = new NativeProgram("filterpack_imageproc", "gray_to_rgb");
72 mProgram = new NativeProgram("filterpack_imageproc", "rgba_to_rgb");
89 mProgram.process(input, output);
H A DBitmapOverlayFilter.java40 private Program mProgram; field in class:BitmapOverlayFilter
76 mProgram = shaderProgram;
104 if (mProgram == null || inputFormat.getTarget() != mTarget) {
112 mProgram.process(inputs, output);
H A DBlackWhiteFilter.java42 private Program mProgram; field in class:BlackWhiteFilter
106 mProgram = shaderProgram;
120 mProgram.setHostValue("black", mBlack);
121 mProgram.setHostValue("scale", scale);
122 mProgram.setHostValue("stepsize", stepsize);
125 mProgram.setHostValue("seed", seed);
130 if (mProgram != null) {
142 if (mProgram == null || inputFormat.getTarget() != mTarget) {
150 mProgram.process(input, output);
H A DCropRectFilter.java48 private Program mProgram; field in class:CropRectFilter
70 mProgram = shaderProgram;
82 if (mProgram != null) {
100 if (mProgram == null || inputFormat.getTarget() != mTarget) {
110 mProgram.process(input, output);
131 ((ShaderProgram) mProgram).setSourceRect((float) mXorigin / mWidth,
H A DDocumentaryFilter.java36 private Program mProgram; field in class:DocumentaryFilter
101 mProgram = shaderProgram;
118 if (mProgram == null || inputFormat.getTarget() != mTarget) {
133 mProgram.process(input, output);
143 if (mProgram != null) {
154 mProgram.setHostValue("scale", scale);
155 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist);
156 mProgram.setHostValue("stepsize", 1.0f / 255.0f);
159 mProgram.setHostValue("seed", seed);
H A DDrawRectFilter.java60 private ShaderProgram mProgram; field in class:DrawRectFilter
82 mProgram = new ShaderProgram(context, mVertexShader, mFixedColorFragmentShader);
120 mProgram.setHostValue("color", color);
121 mProgram.setAttributeValues("aPosition", vertexValues, 2);
122 mProgram.setVertexCount(4);
125 mProgram.beginDrawing();
H A DFisheyeFilter.java46 private Program mProgram; field in class:FisheyeFilter
90 mProgram = shaderProgram;
110 if (mProgram == null || inputFormat.getTarget() != mTarget) {
120 mProgram.process(input, output);
131 if (mProgram != null) {
162 mProgram.setHostValue("scale", scale);
163 mProgram.setHostValue("radius2",radius2);
164 mProgram.setHostValue("factor", factor);
165 mProgram.setHostValue("alpha", alpha);
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DProgram.h66 GLuint mProgram; member in class:android::Program
/frameworks/av/cmds/screenrecord/
H A DProgram.h39 mProgram(0),
83 GLuint mProgram; member in class:android::Program

Completed in 237 milliseconds

123