Home
last modified time | relevance | path

Searched refs:inputFormat (Results 1 – 25 of 95) sorted by relevance

1234

/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DGrainFilter.java103 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 …]
H A DSharpenFilter.java79 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()
H A DLomoishFilter.java132 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()
H A DVignetteFilter.java73 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()
H A DDocumentaryFilter.java92 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()
H A DFisheyeFilter.java85 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()
H A DRedEyeFilter.java91 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()
H A DAutoFixFilter.java169 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()
H A DToPackedGrayFilter.java71 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()
H A DCropRectFilter.java91 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()
H A DNegativeFilter.java57 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()
H A DPosterizeFilter.java60 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()
H A DCrossProcessFilter.java82 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()
H A DSepiaFilter.java58 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()
H A DColorTemperatureFilter.java70 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()
H A DStraightenFilter.java89 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()
H A DRotateFilter.java88 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()
H A DFlipFilter.java56 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()
H A DDuotoneFilter.java67 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()
H A DFillLightFilter.java72 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()
H A DTintFilter.java64 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()
H A DBlackWhiteFilter.java97 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()
H A DFixedRotationFilter.java54 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()
H A DBitmapOverlayFilter.java67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { in getOutputFormat() argument
68 return inputFormat; in getOutputFormat()
98 FrameFormat inputFormat = input.getFormat(); in process() local
101 Frame output = context.getFrameManager().newFrame(inputFormat); in process()
104 if (mProgram == null || inputFormat.getTarget() != mTarget) { in process()
105 initProgram(context, inputFormat.getTarget()); in process()
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2ReprocessCaptureTest.java209 private void testBasicReprocessing(String cameraId, int inputFormat, in testBasicReprocessing() argument
225 private void testReprocessingMaxSizes(String cameraId, int inputFormat, in testReprocessingMaxSizes() argument
249 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat, in testReprocessingMaxSizes()
265 for (int inputFormat : supportedInputFormats) { in testReprocessingAllCombinations()
267 mStaticInfo.getAvailableSizesForFormatChecked(inputFormat, in testReprocessingAllCombinations()
272 mStaticInfo.getValidOutputFormatsForInput(inputFormat); in testReprocessingAllCombinations()
282 testReprocess(cameraId, inputSize, inputFormat, in testReprocessingAllCombinations()
771 if (inputFormat == ImageFormat.YUV_420_888) { in testReprocessRequestKeys()
800 if (inputFormat == ImageFormat.YUV_420_888) { in testReprocessRequestKeys()
825 if (inputFormat == reprocessOutputFormat && in setupImageReaders()
[all …]

1234