/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | ProgramVariable.java | 25 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 D | LomoishFilter.java | 36 private Program mProgram; field in class:LomoishFilter 141 mProgram = shaderProgram; 152 if (mProgram !=null) { 163 mProgram.setHostValue("scale", scale); 164 mProgram.setHostValue("inv_max_dist", 1.0f / max_dist); 166 mProgram.setHostValue("stepsize", 1.0f / 255.0f); 167 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); 168 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); 171 mProgram.setHostValue("seed", seed); 182 if (mProgram [all...] |
H A D | VignetteFilter.java | 36 private Program mProgram; field in class:VignetteFilter 82 mProgram = shaderProgram; 93 if (mProgram != null) { 103 mProgram.setHostValue("scale", scale); 104 mProgram.setHostValue("inv_max_dist", 1f / max_dist); 105 mProgram.setHostValue("shade", mShade); 115 mProgram.setHostValue("range", 1.30f - (float) Math.sqrt(mScale) * 0.7f); 120 if (mProgram != null) { 132 if (mProgram == null || inputFormat.getTarget() != mTarget) { 147 mProgram [all...] |
H A D | SimpleImageFilter.java | 35 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 D | TintFilter.java | 37 private Program mProgram; field in class:TintFilter 73 mProgram = shaderProgram; 85 if (mProgram != null) { 97 if (mProgram == null || inputFormat.getTarget() != mTarget) { 106 mProgram.process(input, output); 117 mProgram.setHostValue("color_ratio", color_ratio); 127 mProgram.setHostValue("tint", tint_color);
|
H A D | BlackWhiteFilter.java | 42 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 D | DocumentaryFilter.java | 36 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 D | FisheyeFilter.java | 46 private Program mProgram; field in class:FisheyeFilter 94 mProgram = shaderProgram; 114 if (mProgram == null || inputFormat.getTarget() != mTarget) { 124 mProgram.process(input, output); 135 if (mProgram != null) { 166 mProgram.setHostValue("scale", scale); 167 mProgram.setHostValue("radius2",radius2); 168 mProgram.setHostValue("factor", factor); 169 mProgram.setHostValue("alpha", alpha);
|
H A D | SharpenFilter.java | 36 private Program mProgram; field in class:SharpenFilter 88 mProgram = shaderProgram; 108 if (mProgram == null || inputFormat.getTarget() != mTarget) { 118 mProgram.process(input, output); 131 if (mProgram != null) { 132 mProgram.setHostValue("stepsizeX", 1.0f / mWidth); 133 mProgram.setHostValue("stepsizeY", 1.0f / mHeight); 139 mProgram.setHostValue("scale", mScale); 144 if (mProgram != null) {
|
H A D | ColorTemperatureFilter.java | 36 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 D | FlipFilter.java | 42 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 D | CropFilter.java | 37 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 D | CrossProcessFilter.java | 33 private Program mProgram; field in class:CrossProcessFilter 91 mProgram = shaderProgram; 108 if (mProgram == null || inputFormat.getTarget() != mTarget) { 116 mProgram.process(input, output);
|
H A D | DrawOverlayFilter.java | 34 private ShaderProgram mProgram; field in class:DrawOverlayFilter 57 mProgram = ShaderProgram.createIdentity(context); 71 mProgram.setTargetRegion(box); 78 mProgram.process(overlayFrame, output);
|
H A D | NegativeFilter.java | 34 private Program mProgram; field in class:NegativeFilter 66 mProgram = shaderProgram; 86 if (mProgram == null || inputFormat.getTarget() != mTarget) { 91 mProgram.process(input, output);
|
H A D | PosterizeFilter.java | 33 private Program mProgram; field in class:PosterizeFilter 69 mProgram = shaderProgram; 89 if (mProgram == null || inputFormat.getTarget() != mTarget) { 94 mProgram.process(input, output);
|
H A D | FillLightFilter.java | 38 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 D | ImageCombineFilter.java | 34 protected Program mProgram; field in class:ImageCombineFilter 54 Field programField = ImageCombineFilter.class.getDeclaredField("mProgram"); 57 throw new RuntimeException("Internal Error: mProgram field not found!"); 97 mProgram.process(inputs, output); 110 mProgram = getNativeProgram(context); 114 mProgram = getShaderProgram(context); 118 mProgram = null; 121 if (mProgram == null) { 125 initProgramInputs(mProgram, context);
|
H A D | SepiaFilter.java | 33 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 D | CropRectFilter.java | 48 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 D | DrawRectFilter.java | 60 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 D | DuotoneFilter.java | 40 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 D | ImageStitcher.java | 40 private Program mProgram; field in class:ImageStitcher 105 if (mProgram == null) { 106 mProgram = ShaderProgram.createIdentity(context); 120 ((ShaderProgram) mProgram).setSourceRect(x0, y0, 124 ((ShaderProgram) mProgram).setTargetRect(((float) outputOffsetX)/ mImageWidth, 130 mProgram.process(input, mOutputFrame);
|
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/ |
H A D | EglRectBlt.java | 53 private Texture2dProgram mProgram; field in class:EglRectBlt 75 mProgram = program; 90 if (mProgram != null) { 92 mProgram.release(); 94 mProgram = null; 102 return mProgram.createTextureObject(); 112 mProgram.draw(Texture2dProgram.IDENTITY_MATRIX, FULL_RECTANGLE_BUF, 0,
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceTargetFilter.java | 71 private ShaderProgram mProgram; field in class:SurfaceTargetFilter 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); 173 mProgram.process(gpuFrame, mScreen); 202 if (mScreenWidth > 0 && mScreenHeight > 0 && mProgram != null) { 208 mProgram.setTargetRect(0, 0, 1, 1); 213 mProgram.setTargetRect(0.5f - 0.5f / relativeAspectRatio, 0.0f, 217 mProgram [all...] |