Home
last modified time | relevance | path

Searched refs:mProgram (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DProgramVariable.java25 private Program mProgram; field in ProgramVariable
29 mProgram = program; in ProgramVariable()
34 return mProgram; in getProgram()
42 if (mProgram == null) { in setValue()
46 mProgram.setHostValue(mVarName, value); in setValue()
50 if (mProgram == null) { in getValue()
54 return mProgram.getHostValue(mVarName); in getValue()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DLomoishFilter.java39 private Program mProgram; field in LomoishFilter
144 mProgram = shaderProgram; in initProgram()
155 if (mProgram !=null) { in initParameters()
166 mProgram.setHostValue("scale", scale); in initParameters()
167 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist); in initParameters()
169 mProgram.setHostValue("stepsize", 1.0f / 255.0f); in initParameters()
170 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); in initParameters()
171 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); in initParameters()
174 mProgram.setHostValue("seed", seed); in initParameters()
185 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
[all …]
DVignetteFilter.java39 private Program mProgram; field in VignetteFilter
85 mProgram = shaderProgram; in initProgram()
96 if (mProgram != null) { in initParameters()
106 mProgram.setHostValue("scale", scale); in initParameters()
107 mProgram.setHostValue("inv_max_dist", 1f / max_dist); in initParameters()
108 mProgram.setHostValue("shade", mShade); in initParameters()
118 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); in updateParameters()
123 if (mProgram != null) { in fieldPortValueUpdated()
135 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
150 mProgram.process(input, output); in process()
DBlackWhiteFilter.java45 private Program mProgram; field in BlackWhiteFilter
109 mProgram = shaderProgram; in initProgram()
123 mProgram.setHostValue("black", mBlack); in updateParameters()
124 mProgram.setHostValue("scale", scale); in updateParameters()
125 mProgram.setHostValue("stepsize", stepsize); in updateParameters()
128 mProgram.setHostValue("seed", seed); in updateParameters()
133 if (mProgram != null) { in fieldPortValueUpdated()
145 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
153 mProgram.process(input, output); in process()
DSharpenFilter.java41 private Program mProgram; field in SharpenFilter
93 mProgram = shaderProgram; in initProgram()
113 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
123 mProgram.process(input, output); in process()
136 if (mProgram != null) { in updateFrameSize()
137 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); in updateFrameSize()
138 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); in updateFrameSize()
144 mProgram.setHostValue("scale", mScale); in updateParameters()
149 if (mProgram != null) { in fieldPortValueUpdated()
DDocumentaryFilter.java39 private Program mProgram; field in DocumentaryFilter
104 mProgram = shaderProgram; in initProgram()
121 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
136 mProgram.process(input, output); in process()
146 if (mProgram != null) { in initParameters()
157 mProgram.setHostValue("scale", scale); in initParameters()
158 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist); in initParameters()
159 mProgram.setHostValue("stepsize", 1.0f / 255.0f); in initParameters()
162 mProgram.setHostValue("seed", seed); in initParameters()
DFisheyeFilter.java52 private Program mProgram; field in FisheyeFilter
96 mProgram = shaderProgram; in initProgram()
116 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
126 mProgram.process(input, output); in process()
137 if (mProgram != null) { in fieldPortValueUpdated()
168 mProgram.setHostValue("scale", scale); in updateProgramParams()
169 mProgram.setHostValue("radius2",radius2); in updateProgramParams()
170 mProgram.setHostValue("factor", factor); in updateProgramParams()
171 mProgram.setHostValue("alpha", alpha); in updateProgramParams()
DSimpleImageFilter.java41 protected Program mProgram; field in SimpleImageFilter
81 mProgram.process(input, output); in process()
94 mProgram = getNativeProgram(context); in updateProgramWithTarget()
98 mProgram = getShaderProgram(context); in updateProgramWithTarget()
102 mProgram = null; in updateProgramWithTarget()
105 if (mProgram == null) { in updateProgramWithTarget()
108 initProgramInputs(mProgram, context); in updateProgramWithTarget()
DCropFilter.java43 private Program mProgram; field in CropFilter
97 mProgram = null; in createProgram()
101 mProgram = new ShaderProgram(context, mFragShader); in createProgram()
103 mProgram = ShaderProgram.createIdentity(context); in createProgram()
107 if (mProgram == null) { in createProgram()
132 if (mProgram instanceof ShaderProgram) { in process()
133 ShaderProgram shaderProgram = (ShaderProgram)mProgram; in process()
137 mProgram.process(imageFrame, output); in process()
DTintFilter.java40 private Program mProgram; field in TintFilter
76 mProgram = shaderProgram; in initProgram()
88 if (mProgram != null) { in fieldPortValueUpdated()
100 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
109 mProgram.process(input, output); in process()
120 mProgram.setHostValue("color_ratio", color_ratio); in initParameters()
130 mProgram.setHostValue("tint", tint_color); in updateParameters()
DFillLightFilter.java42 private Program mProgram; field in FillLightFilter
86 mProgram = shaderProgram; in initProgram()
107 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
113 mProgram.process(input, output); in process()
125 if (mProgram != null) { in fieldPortValueUpdated()
137 mProgram.setHostValue("mult", mult); in updateParameters()
138 mProgram.setHostValue("igamma", igamma); in updateParameters()
DImageCombineFilter.java40 protected Program mProgram; field in ImageCombineFilter
103 mProgram.process(inputs, output); in process()
116 mProgram = getNativeProgram(context); in updateProgramWithTarget()
120 mProgram = getShaderProgram(context); in updateProgramWithTarget()
124 mProgram = null; in updateProgramWithTarget()
127 if (mProgram == null) { in updateProgramWithTarget()
131 initProgramInputs(mProgram, context); in updateProgramWithTarget()
DColorTemperatureFilter.java40 private Program mProgram; field in ColorTemperatureFilter
83 mProgram = shaderProgram; in initProgram()
100 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
109 mProgram.process(input, output); in process()
119 mProgram.setHostValue("scale", 2.0f * mScale - 1.0f); in updateParameters()
124 if (mProgram != null) { in fieldPortValueUpdated()
DDuotoneFilter.java43 private Program mProgram; field in DuotoneFilter
79 mProgram = shaderProgram; in initProgram()
99 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
105 mProgram.process(input, output); in process()
122 mProgram.setHostValue("first", first); in updateParameters()
123 mProgram.setHostValue("second", second); in updateParameters()
DFlipFilter.java46 private Program mProgram; field in FlipFilter
69 mProgram = shaderProgram; in initProgram()
82 if (mProgram != null) { in fieldPortValueUpdated()
94 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
102 mProgram.process(input, output); in process()
118 ((ShaderProgram) mProgram).setSourceRect(x_origin, y_origin, width, height); in updateParameters()
DCropRectFilter.java53 private Program mProgram; field in CropRectFilter
75 mProgram = shaderProgram; in initProgram()
87 if (mProgram != null) { in fieldPortValueUpdated()
105 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
115 mProgram.process(input, output); in process()
136 ((ShaderProgram) mProgram).setSourceRect((float) mXorigin / mWidth, in updateSourceRect()
DDrawRectFilter.java63 private ShaderProgram mProgram; field in DrawRectFilter
85 mProgram = new ShaderProgram(context, mVertexShader, mFixedColorFragmentShader); in prepare()
123 mProgram.setHostValue("color", color); in renderBox()
124 mProgram.setAttributeValues("aPosition", vertexValues, 2); in renderBox()
125 mProgram.setVertexCount(4); in renderBox()
128 mProgram.beginDrawing(); in renderBox()
DSepiaFilter.java36 private Program mProgram; field in SepiaFilter
70 mProgram = shaderProgram; in initProgram()
90 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
96 mProgram.process(input, output); in process()
109 mProgram.setHostValue("matrix", weights); in initParameters()
DImageStitcher.java44 private Program mProgram; field in ImageStitcher
109 if (mProgram == null) { in process()
110 mProgram = ShaderProgram.createIdentity(context); in process()
124 ((ShaderProgram) mProgram).setSourceRect(x0, y0, in process()
128 ((ShaderProgram) mProgram).setTargetRect(((float) outputOffsetX)/ mImageWidth, in process()
134 mProgram.process(input, mOutputFrame); in process()
DRotateFilter.java47 private Program mProgram; field in RotateFilter
72 mProgram = shaderProgram; in initProgram()
84 if (mProgram != null) { in fieldPortValueUpdated()
96 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
117 mProgram.process(input, output); in process()
154 ((ShaderProgram) mProgram).setTargetRegion(quad); in updateParameters()
DFixedRotationFilter.java41 private ShaderProgram mProgram = null; field in FixedRotationFilter
69 if (mProgram == null) { in process()
70 mProgram = ShaderProgram.createIdentity(context); in process()
101 mProgram.setSourceRegion(sourceRegion); in process()
104 mProgram.process(input, output); in process()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java79 private ShaderProgram mProgram; field in SurfaceTargetFilter
128 mProgram = ShaderProgram.createIdentity(context); in prepare()
129 mProgram.setSourceRect(0, 1, 1, -1); in prepare()
130 mProgram.setClearsOutput(true); in prepare()
131 mProgram.setClearColor(0.0f, 0.0f, 0.0f); in prepare()
181 mProgram.process(gpuFrame, mScreen); in process()
210 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { in updateTargetRect()
216 mProgram.setTargetRect(0, 0, 1, 1); in updateTargetRect()
221 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f, in updateTargetRect()
225 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio, in updateTargetRect()
[all …]
DSurfaceRenderFilter.java73 private ShaderProgram mProgram; field in SurfaceRenderFilter
120 mProgram = ShaderProgram.createIdentity(context); in prepare()
121 mProgram.setSourceRect(0, 1, 1, -1); in prepare()
122 mProgram.setClearsOutput(true); in prepare()
123 mProgram.setClearColor(0.0f, 0.0f, 0.0f); in prepare()
189 mProgram.process(gpuFrame, mScreen); in process()
242 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { in updateTargetRect()
248 mProgram.setTargetRect(0, 0, 1, 1); in updateTargetRect()
253 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f, in updateTargetRect()
257 mProgram.setTargetRect(0.0f, 0.5f - 0.5f * relativeAspectRatio, in updateTargetRect()
[all …]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
DSurfaceTextureTarget.java98 private ShaderProgram mProgram; field in SurfaceTextureTarget
146 mProgram = ShaderProgram.createIdentity(context); in prepare()
147 mProgram.setSourceRect(0, 1, 1, -1); in prepare()
148 mProgram.setClearColor(0.0f, 0.0f, 0.0f); in prepare()
251 mProgram.process(gpuFrame, mScreen); in process()
278 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { in updateTargetRect()
288 mProgram.setTargetRect(0, 0, 1, 1); in updateTargetRect()
289 mProgram.setClearsOutput(false); in updateTargetRect()
297 mProgram.setClearsOutput(false); in updateTargetRect()
314 mProgram.setClearsOutput(true); in updateTargetRect()
[all …]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DVertexShader.java30 ProgramVertex mProgram; field in VertexShader
74 mShader.mProgram = mBuilder.create(); in create()
80 return mProgram; in getProgram()
95 item.program = mProgram; in getRSData()
101 mProgram.bindConstants(item.shaderConst, 0); in getRSData()

123