Home
last modified time | relevance | path

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

123

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
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 …]
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2ReprocessCaptureTest.java209 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/
DThroughputFilter.java59 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()

123