Home
last modified time | relevance | path

Searched refs:decoderFormat (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/tests/SampleVideoEncoder/app/src/main/java/com/android/media/samplevideoencoder/
DMediaCodecSurfaceEncoder.java87 MediaFormat decoderFormat = setUpSource(); in startEncodingSurface() local
88 if (decoderFormat == null) { in startEncodingSurface()
92 String decoderMime = decoderFormat.getString(MediaFormat.KEY_MIME); in startEncodingSurface()
101 MediaFormat encoderFormat = setUpEncoderFormat(decoderFormat); in startEncodingSurface()
117 configureCodec(decoderFormat, encoderFormat); in startEncodingSurface()
165 private MediaFormat setUpEncoderFormat(MediaFormat decoderFormat) { in setUpEncoderFormat() argument
169 .setInteger(MediaFormat.KEY_WIDTH, decoderFormat.getInteger(MediaFormat.KEY_WIDTH)); in setUpEncoderFormat()
171 decoderFormat.getInteger(MediaFormat.KEY_HEIGHT)); in setUpEncoderFormat()
/frameworks/av/media/tests/benchmark/tests/
DEncoderTest.cpp93 AMediaFormat *decoderFormat = decoder->getFormat(); in TEST_P() local
121 AMediaFormat_getInt32(decoderFormat, AMEDIAFORMAT_KEY_COLOR_FORMAT, in TEST_P()
151 if (decoderFormat) { in TEST_P()
152 AMediaFormat_delete(decoderFormat); in TEST_P()
153 decoderFormat = nullptr; in TEST_P()
/frameworks/av/media/libmediatranscoding/transcoder/
DVideoTrackTranscoder.cpp321 auto decoderFormat = std::shared_ptr<AMediaFormat>(AMediaFormat_new(), &AMediaFormat_delete); in configureDestinationFormat() local
322 if (!decoderFormat || in configureDestinationFormat()
323 AMediaFormat_copy(decoderFormat.get(), mSourceFormat.get()) != AMEDIA_OK) { in configureDestinationFormat()
331 AMediaFormat_setInt32(decoderFormat.get(), in configureDestinationFormat()
337 AMediaFormat_setInt32(decoderFormat.get(), TBD_AMEDIACODEC_PARAMETER_KEY_ALLOW_FRAME_DROP, 0); in configureDestinationFormat()
345 CopyFormatEntries(mDestinationFormat.get(), decoderFormat.get(), kEncoderEntriesToCopy); in configureDestinationFormat()
347 LOG(INFO) << "Configuring decoder with: " << AMediaFormat_toString(decoderFormat.get()); in configureDestinationFormat()
348 status = AMediaCodec_configure(mDecoder, decoderFormat.get(), mSurface, NULL /* crypto */, in configureDestinationFormat()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DEncoderTest.java203 MediaFormat decoderFormat = decoder.getFormat(); in decodeFile() local
204 if (decoderFormat.containsKey(MediaFormat.KEY_COLOR_FORMAT)) { in decodeFile()
205 mColorFormat = decoderFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in decodeFile()