Searched defs:inputFormat (Results 26 - 45 of 45) sorted by relevance

12

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DLomoishFilter.java132 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
133 return inputFormat;
179 FrameFormat inputFormat = input.getFormat();
182 if (mProgram == null || inputFormat.getTarget() != mTarget) {
183 initProgram(context, inputFormat.getTarget());
187 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
188 mWidth = inputFormat.getWidth();
189 mHeight = inputFormat.getHeight();
194 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DResizeFilter.java64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
65 return inputFormat;
94 FrameFormat inputFormat = input.getFormat();
95 mOHeight = mOWidth * inputFormat.getHeight() / inputFormat.getWidth();
H A DSaturateFilter.java81 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
82 return inputFormat;
116 FrameFormat inputFormat = input.getFormat();
119 if (mBenProgram == null || inputFormat.getTarget() != mTarget) {
120 initProgram(context, inputFormat.getTarget());
125 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DSharpenFilter.java79 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
80 return inputFormat;
102 FrameFormat inputFormat = input.getFormat();
105 Frame output = context.getFrameManager().newFrame(inputFormat);
108 if (mProgram == null || inputFormat.getTarget() != mTarget) {
109 initProgram(context, inputFormat.getTarget());
113 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
114 updateFrameSize(inputFormat.getWidth(), inputFormat
[all...]
H A DTintFilter.java64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
65 return inputFormat;
94 FrameFormat inputFormat = input.getFormat();
97 if (mProgram == null || inputFormat.getTarget() != mTarget) {
98 initProgram(context, inputFormat.getTarget());
103 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DToPackedGrayFilter.java71 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
72 return convertInputFormat(inputFormat);
82 private FrameFormat convertInputFormat(FrameFormat inputFormat) { argument
85 int w = inputFormat.getWidth();
86 int h = inputFormat.getHeight();
118 FrameFormat inputFormat = input.getFormat();
119 FrameFormat outputFormat = convertInputFormat(inputFormat);
126 MutableFrameFormat tempFrameFormat = inputFormat.mutableCopy();
H A DVignetteFilter.java73 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
74 return inputFormat;
129 FrameFormat inputFormat = input.getFormat();
132 if (mProgram == null || inputFormat.getTarget() != mTarget) {
133 initProgram(context, inputFormat.getTarget());
137 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
138 mWidth = inputFormat.getWidth();
139 mHeight = inputFormat.getHeight();
144 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DAutoFixFilter.java169 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
170 return inputFormat;
240 FrameFormat inputFormat = input.getFormat();
243 if (mShaderProgram == null || inputFormat.getTarget() != mTarget) {
244 initProgram(context, inputFormat.getTarget());
249 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
250 mWidth = inputFormat.getWidth();
251 mHeight = inputFormat.getHeight();
256 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DGrainFilter.java103 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
104 return inputFormat;
155 FrameFormat inputFormat = input.getFormat();
157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2,
158 inputFormat.getHeight() / 2,
163 Frame noiseFrame = context.getFrameManager().newFrame(inputFormat);
166 Frame output = context.getFrameManager().newFrame(inputFormat);
169 if (mNoiseProgram == null || mGrainProgram == null || inputFormat.getTarget() != mTarget) {
170 initProgram(context, inputFormat.getTarget());
175 if (inputFormat
[all...]
H A DRedEyeFilter.java91 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
92 return inputFormat;
114 FrameFormat inputFormat = input.getFormat();
117 Frame output = context.getFrameManager().newFrame(inputFormat);
120 if (mProgram == null || inputFormat.getTarget() != mTarget) {
121 initProgram(context, inputFormat.getTarget());
125 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
126 mWidth = inputFormat.getWidth();
127 mHeight = inputFormat
[all...]
/frameworks/av/media/libaudioprocessing/
H A DBufferProviders.cpp360 audio_format_t inputFormat, audio_format_t outputFormat,
363 channelCount * audio_bytes_per_sample(inputFormat),
367 mInputFormat(inputFormat),
371 this, channelCount, inputFormat, outputFormat);
359 ReformatBufferProvider(int32_t channelCount, audio_format_t inputFormat, audio_format_t outputFormat, size_t bufferFrameCount) argument
/frameworks/av/media/libstagefright/
H A DMediaCodecSource.cpp542 sp<AMessage> inputFormat; local
545 if (mEncoder->getInputFormat(&inputFormat) == OK) {
547 if (inputFormat->findInt32("using-sw-read-often", &usingSwReadOften)
554 if (!inputFormat->findInt32("android._dataspace", &mEncoderDataSpace)) {
H A DMediaCodec.cpp268 const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat) override;
270 const sp<AMessage> &inputFormat,
275 const sp<AMessage> &inputFormat,
334 const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat) {
337 notify->setMessage("input-format", inputFormat);
343 const sp<AMessage> &inputFormat,
348 notify->setMessage("input-format", inputFormat);
362 const sp<AMessage> &inputFormat,
366 notify->setMessage("input-format", inputFormat);
333 onComponentConfigured( const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat) argument
342 onInputSurfaceCreated( const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat, const sp<BufferProducerWrapper> &inputSurface) argument
361 onInputSurfaceAccepted( const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat) argument
H A DACodec.cpp1718 sp<AMessage> inputFormat = new AMessage; local
1770 inputFormat->setInt32(
1853 inputFormat->setInt32("adaptive-playback", false);
1927 inputFormat->setInt32("max-width", maxWidth);
1928 inputFormat->setInt32("max-height", maxHeight);
1929 inputFormat->setInt32("adaptive-playback", true);
1983 inputFormat->setInt32("max-width", maxWidth);
1984 inputFormat->setInt32("max-height", maxHeight);
1985 inputFormat->setInt32("adaptive-playback", true);
1994 inputFormat
3539 setColorAspectsForVideoEncoder( const sp<AMessage> &configFormat, sp<AMessage> &outputFormat, sp<AMessage> &inputFormat) argument
3710 setupVideoEncoder( const char *mime, const sp<AMessage> &msg, sp<AMessage> &outputFormat, sp<AMessage> &inputFormat) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java235 public final int[] getValidOutputFormatsForInput(int inputFormat) { argument
239 return mInputOutputFormatsMap.getOutputs(inputFormat);
1540 for (int inputFormat : inputFormats) {
1541 sb.append(String.format("[in:%s(%d), out:", formatToString(inputFormat), inputFormat));
1542 int[] outputFormats = getValidOutputFormatsForInput(inputFormat);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2ReprocessCaptureTest.java209 private void testBasicReprocessing(String cameraId, int inputFormat, argument
214 testReprocessingMaxSizes(cameraId, inputFormat, reprocessOutputFormat,
225 private void testReprocessingMaxSizes(String cameraId, int inputFormat, argument
228 Size maxInputSize = getMaxSize(inputFormat, StaticMetadata.StreamDirection.Input);
234 testReprocess(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize,
238 testReprocessAbort(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize,
242 testReprocessTimestamps(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize,
246 testReprocessJpegExif(cameraId, maxInputSize, inputFormat, maxReprocessOutputSize);
249 testReprocessRequestKeys(cameraId, maxInputSize, inputFormat,
265 for (int inputFormat
308 testReprocessMixedBurst(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numBurst) argument
380 testReprocessBurst(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numBurst) argument
439 testReprocess(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numReprocessCaptures) argument
503 testReprocessAbort(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat) argument
593 testReprocessTimestamps(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat) argument
667 testReprocessJpegExif(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize) argument
733 testReprocessRequestKeys(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat) argument
819 setupImageReaders(Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, int maxImages) argument
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DFilter.java170 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
633 MutableFrameFormat inputFormat = ObjectFormat.fromObject(value, FrameFormat.TARGET_SIMPLE);
639 inputFormat.setObjectClass(portClass);
650 ? new SerializedFrame(inputFormat, null)
651 : new SimpleFrame(inputFormat, null);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videoproc/
H A DBackDropperFilter.java551 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
553 MutableFrameFormat format = inputFormat.mutableCopy();
561 private boolean createMemoryFormat(FrameFormat inputFormat) { argument
567 if (inputFormat.getWidth() == FrameFormat.SIZE_UNSPECIFIED ||
568 inputFormat.getHeight() == FrameFormat.SIZE_UNSPECIFIED) {
572 mMaskFormat = inputFormat.mutableCopy();
579 int widthExp = Math.max(mMaskWidthExp, pyramidLevel(inputFormat.getWidth()));
580 int heightExp = Math.max(mMaskHeightExp, pyramidLevel(inputFormat.getHeight()));
593 mAverageFormat = inputFormat.mutableCopy();
607 private void allocateFrames(FrameFormat inputFormat, FilterContex argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp1099 sp<AMessage> inputFormat = local
1103 updateVideoSize(inputFormat, format);
1870 const sp<AMessage> &inputFormat,
1872 if (inputFormat == NULL) {
1878 inputFormat->findInt32("err", &err);
1909 CHECK(inputFormat->findInt32("width", &displayWidth));
1910 CHECK(inputFormat->findInt32("height", &displayHeight));
1917 if (inputFormat->findInt32("sar-width", &sarWidth)
1918 && inputFormat->findInt32("sar-height", &sarHeight)
1927 if (inputFormat
1869 updateVideoSize( const sp<AMessage> &inputFormat, const sp<AMessage> &outputFormat) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DStaticMetadata.java1322 * @param inputFormat The input format used to produce the output images.
1326 public int[] getValidOutputFormatsForInput(int inputFormat) { argument
1335 return config.getValidOutputFormatsForInput(inputFormat);

Completed in 248 milliseconds

12