Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DImageReaderDecoderTest.java259 MediaFormat mediaFormat = null; in videoDecode() local
284 mediaFormat = extractor.getTrackFormat(0); in videoDecode()
285 mediaFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in videoDecode()
292 decoder, extractor, mediaFormat, in videoDecode()
301 + mResources.getResourceEntryName(video) + ": " + mediaFormat, e); in videoDecode()
465 MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, in decodeFramesToImage() argument
472 if (VERBOSE) Log.v(TAG, "stream format: " + mediaFormat); in decodeFramesToImage()
475 decoder.configure(mediaFormat, mReaderSurface, null /* crypto */, 0 /* flags */); in decodeFramesToImage()
478 decoder.configure(mediaFormat, null /* surface */, null /* crypto */, 0 /* flags */); in decodeFramesToImage()
DMediaSyncTest.java584 MediaFormat mediaFormat = in setup() local
586 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in setup()
592 mDecoder.configure(mediaFormat, mSurface, null, 0); in setup()
639 MediaFormat mediaFormat = in getAudioTrack() local
641 int sampleRateInHz = mediaFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in getAudioTrack()
642 int channelConfig = (mediaFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT) == 1 ? in getAudioTrack()
DMediaCodecTest.java818 MediaFormat mediaFormat = in testDecodeAfterFlush()
820 if (!MediaUtils.checkDecoderForFormat(mediaFormat)) { in testDecodeAfterFlush()
823 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in testDecodeAfterFlush()
825 mediaCodec.configure(mediaFormat, outputSurface.getSurface(), in testDecodeAfterFlush()
953 MediaFormat mediaFormat = in runDecodeShortInput() local
955 String mimeType = mediaFormat.getString(MediaFormat.KEY_MIME); in runDecodeShortInput()
962 mediaCodec.configure(mediaFormat, outputSurface.getSurface(), null, 0); in runDecodeShortInput()
DVideoEncoderTest.java519 public void onOutputFormatChanged(MediaCodec mediaCodec, MediaFormat mediaFormat) { in onOutputFormatChanged() argument
520 Log.i(TAG, mediaCodec.getName() + " got new output format " + mediaFormat); in onOutputFormatChanged()
523 saveEncoderFormat(mediaFormat); in onOutputFormatChanged()
752 public void onOutputFormatChanged(MediaCodec mediaCodec, MediaFormat mediaFormat) { in onOutputFormatChanged() argument
753 Log.i(TAG, mediaCodec.getName() + " got new output format " + mediaFormat); in onOutputFormatChanged()
756 saveEncoderFormat(mediaFormat); in onOutputFormatChanged()