/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | GrainFilter.java | 103 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 104 return inputFormat; in getOutputFormat() 155 FrameFormat inputFormat = input.getFormat(); in process() local 157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2, in process() 158 inputFormat.getHeight() / 2, in process() 163 Frame noiseFrame = context.getFrameManager().newFrame(inputFormat); in process() 166 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 169 if (mNoiseProgram == null || mGrainProgram == null || inputFormat.getTarget() != mTarget) { in process() 170 initProgram(context, inputFormat.getTarget()); in process() 175 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() [all …]
|
D | SharpenFilter.java | 79 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 80 return inputFormat; in getOutputFormat() 102 FrameFormat inputFormat = input.getFormat(); in process() local 105 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 108 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 109 initProgram(context, inputFormat.getTarget()); in process() 113 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 114 updateFrameSize(inputFormat.getWidth(), inputFormat.getHeight()); in process()
|
D | LomoishFilter.java | 132 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 133 return inputFormat; in getOutputFormat() 179 FrameFormat inputFormat = input.getFormat(); in process() local 182 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 183 initProgram(context, inputFormat.getTarget()); in process() 187 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 188 mWidth = inputFormat.getWidth(); in process() 189 mHeight = inputFormat.getHeight(); in process() 194 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | DocumentaryFilter.java | 92 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 93 return inputFormat; in getOutputFormat() 115 FrameFormat inputFormat = input.getFormat(); in process() local 118 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 119 initProgram(context, inputFormat.getTarget()); in process() 123 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 124 mWidth = inputFormat.getWidth(); in process() 125 mHeight = inputFormat.getHeight(); in process() 130 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | VignetteFilter.java | 73 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 74 return inputFormat; in getOutputFormat() 129 FrameFormat inputFormat = input.getFormat(); in process() local 132 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 133 initProgram(context, inputFormat.getTarget()); in process() 137 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 138 mWidth = inputFormat.getWidth(); in process() 139 mHeight = inputFormat.getHeight(); in process() 144 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | FisheyeFilter.java | 85 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 86 return inputFormat; in getOutputFormat() 108 FrameFormat inputFormat = input.getFormat(); in process() local 111 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 114 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 115 initProgram(context, inputFormat.getTarget()); in process() 119 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 120 updateFrameSize(inputFormat.getWidth(), inputFormat.getHeight()); in process()
|
D | RedEyeFilter.java | 91 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 92 return inputFormat; in getOutputFormat() 114 FrameFormat inputFormat = input.getFormat(); in process() local 117 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 120 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 121 initProgram(context, inputFormat.getTarget()); in process() 125 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 126 mWidth = inputFormat.getWidth(); in process() 127 mHeight = inputFormat.getHeight(); in process()
|
D | AutoFixFilter.java | 169 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 170 return inputFormat; in getOutputFormat() 240 FrameFormat inputFormat = input.getFormat(); in process() local 243 if (mShaderProgram == null || inputFormat.getTarget() != mTarget) { in process() 244 initProgram(context, inputFormat.getTarget()); in process() 249 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 250 mWidth = inputFormat.getWidth(); in process() 251 mHeight = inputFormat.getHeight(); in process() 256 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | ToPackedGrayFilter.java | 71 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 72 return convertInputFormat(inputFormat); in getOutputFormat() 82 private FrameFormat convertInputFormat(FrameFormat inputFormat) { in convertInputFormat() argument 85 int w = inputFormat.getWidth(); in convertInputFormat() 86 int h = inputFormat.getHeight(); in convertInputFormat() 118 FrameFormat inputFormat = input.getFormat(); in process() local 119 FrameFormat outputFormat = convertInputFormat(inputFormat); in process() 126 MutableFrameFormat tempFrameFormat = inputFormat.mutableCopy(); in process()
|
D | CropRectFilter.java | 91 FrameFormat inputFormat = input.getFormat(); in process() local 100 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 101 initProgram(context, inputFormat.getTarget()); in process() 105 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 106 updateSourceRect(inputFormat.getWidth(), inputFormat.getHeight()); in process()
|
D | NegativeFilter.java | 57 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 58 return inputFormat; in getOutputFormat() 80 FrameFormat inputFormat = input.getFormat(); in process() local 83 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 86 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 87 initProgram(context, inputFormat.getTarget()); in process()
|
D | CrossProcessFilter.java | 82 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 83 return inputFormat; in getOutputFormat() 105 FrameFormat inputFormat = input.getFormat(); in process() local 108 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 109 initProgram(context, inputFormat.getTarget()); in process() 113 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | PosterizeFilter.java | 60 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 61 return inputFormat; in getOutputFormat() 83 FrameFormat inputFormat = input.getFormat(); in process() local 86 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 89 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 90 initProgram(context, inputFormat.getTarget()); in process()
|
D | SepiaFilter.java | 58 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 59 return inputFormat; in getOutputFormat() 81 FrameFormat inputFormat = input.getFormat(); in process() local 84 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 87 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 88 initProgram(context, inputFormat.getTarget()); in process()
|
D | ColorTemperatureFilter.java | 70 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 71 return inputFormat; in getOutputFormat() 93 FrameFormat inputFormat = input.getFormat(); in process() local 96 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 97 initProgram(context, inputFormat.getTarget()); in process() 102 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | DuotoneFilter.java | 67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 68 return inputFormat; in getOutputFormat() 90 FrameFormat inputFormat = input.getFormat(); in process() local 93 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 96 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 97 initProgram(context, inputFormat.getTarget()); in process()
|
D | FlipFilter.java | 56 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 57 return inputFormat; in getOutputFormat() 87 FrameFormat inputFormat = input.getFormat(); in process() local 90 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 91 initProgram(context, inputFormat.getTarget()); in process() 95 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | TintFilter.java | 64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 65 return inputFormat; in getOutputFormat() 94 FrameFormat inputFormat = input.getFormat(); in process() local 97 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 98 initProgram(context, inputFormat.getTarget()); in process() 103 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | FillLightFilter.java | 72 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 73 return inputFormat; in getOutputFormat() 97 FrameFormat inputFormat = input.getFormat(); in process() local 100 Frame output = context.getFrameManager().newFrame(inputFormat); in process() 103 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 104 initProgram(context, inputFormat.getTarget()); in process()
|
D | RotateFilter.java | 88 FrameFormat inputFormat = input.getFormat(); in process() local 91 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 92 initProgram(context, inputFormat.getTarget()); in process() 95 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 96 mWidth = inputFormat.getWidth(); in process() 97 mHeight = inputFormat.getHeight(); in process()
|
D | StraightenFilter.java | 89 FrameFormat inputFormat = input.getFormat(); in process() local 92 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 93 initProgram(context, inputFormat.getTarget()); in process() 97 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) { in process() 98 mWidth = inputFormat.getWidth(); in process() 99 mHeight = inputFormat.getHeight(); in process() 103 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | BlackWhiteFilter.java | 97 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 98 return inputFormat; in getOutputFormat() 139 FrameFormat inputFormat = input.getFormat(); in process() local 142 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process() 143 initProgram(context, inputFormat.getTarget()); in process() 147 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
|
D | FixedRotationFilter.java | 54 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 55 return inputFormat; in getOutputFormat() 65 FrameFormat inputFormat = input.getFormat(); in process() local 71 MutableFrameFormat outputFormat = inputFormat.mutableCopy(); in process() 72 int width = inputFormat.getWidth(); in process() 73 int height = inputFormat.getHeight(); in process()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2ReprocessCaptureTest.java | 209 private void testBasicReprocessing(String cameraId, int inputFormat, in testBasicReprocessing() argument 214 testReprocessingMaxSizes(cameraId, inputFormat, reprocessOutputFormat, in testBasicReprocessing() 225 private void testReprocessingMaxSizes(String cameraId, int inputFormat, in testReprocessingMaxSizes() argument 228 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input); in testReprocessingMaxSizes() 234 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 238 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 242 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize, in testReprocessingMaxSizes() 246 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize); in testReprocessingMaxSizes() 249 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes() 265 for (int inputFormat : supportedInputFormats) { in testReprocessingAllCombinations() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/ |
D | ThroughputFilter.java | 59 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument 60 return inputFormat; in getOutputFormat() 88 FrameFormat inputFormat = input.getFormat(); in process() local 89 int pixelCount = inputFormat.getWidth() * inputFormat.getHeight(); in process()
|