Lines Matching refs:MediaFormat

34 import android.media.MediaFormat;
175 {MediaFormat.MIMETYPE_AUDIO_MPEG, "bbb_1ch_8kHz_lame_cbr.mp3", in input()
178 {MediaFormat.MIMETYPE_AUDIO_MPEG, "bbb_2ch_44kHz_lame_cbr.mp3", in input()
181 {MediaFormat.MIMETYPE_AUDIO_AMR_WB, "bbb_1ch_16kHz_16kbps_amrwb.3gp", in input()
184 {MediaFormat.MIMETYPE_AUDIO_AMR_NB, "bbb_1ch_8kHz_10kbps_amrnb.3gp", in input()
187 {MediaFormat.MIMETYPE_AUDIO_FLAC, "bbb_1ch_16kHz_flac.mka", in input()
189 {MediaFormat.MIMETYPE_AUDIO_FLAC, "bbb_2ch_44kHz_flac.mka", in input()
191 {MediaFormat.MIMETYPE_AUDIO_RAW, "bbb_1ch_16kHz.wav", "bbb_1ch_16kHz_s16le.raw", in input()
193 {MediaFormat.MIMETYPE_AUDIO_RAW, "bbb_2ch_44kHz.wav", "bbb_2ch_44kHz_s16le.raw", in input()
195 {MediaFormat.MIMETYPE_AUDIO_G711_ALAW, "bbb_1ch_8kHz_alaw.wav", in input()
198 {MediaFormat.MIMETYPE_AUDIO_G711_MLAW, "bbb_1ch_8kHz_mulaw.wav", in input()
201 {MediaFormat.MIMETYPE_AUDIO_MSGSM, "bbb_1ch_8kHz_gsm.wav", in input()
204 {MediaFormat.MIMETYPE_AUDIO_VORBIS, "bbb_1ch_16kHz_vorbis.mka", in input()
207 {MediaFormat.MIMETYPE_AUDIO_OPUS, "bbb_2ch_48kHz_opus.mka", in input()
209 {MediaFormat.MIMETYPE_AUDIO_AAC, "bbb_1ch_16kHz_aac.mp4", in input()
211 {MediaFormat.MIMETYPE_VIDEO_MPEG2, "bbb_340x280_768kbps_30fps_mpeg2.mp4", null, in input()
213 {MediaFormat.MIMETYPE_VIDEO_AVC, "bbb_340x280_768kbps_30fps_avc.mp4", null, in input()
215 {MediaFormat.MIMETYPE_VIDEO_HEVC, "bbb_520x390_1mbps_30fps_hevc.mp4", null, in input()
217 {MediaFormat.MIMETYPE_VIDEO_MPEG4, "bbb_128x96_64kbps_12fps_mpeg4.mp4", in input()
219 {MediaFormat.MIMETYPE_VIDEO_H263, "bbb_176x144_128kbps_15fps_h263.3gp", in input()
221 {MediaFormat.MIMETYPE_VIDEO_VP8, "bbb_340x280_768kbps_30fps_vp8.webm", null, in input()
223 {MediaFormat.MIMETYPE_VIDEO_VP9, "bbb_340x280_768kbps_30fps_vp9.webm", null, in input()
225 {MediaFormat.MIMETYPE_VIDEO_AV1, "bbb_340x280_768kbps_30fps_av1.mp4", null, in input()
232 {MediaFormat.MIMETYPE_VIDEO_AVC, "cosmat_340x280_24fps_crf22_avc_10bit.mkv", in input()
235 {MediaFormat.MIMETYPE_VIDEO_HEVC, "cosmat_340x280_24fps_crf22_hevc_10bit.mkv", in input()
238 {MediaFormat.MIMETYPE_VIDEO_VP9, "cosmat_340x280_24fps_crf22_vp9_10bit.mkv", in input()
241 {MediaFormat.MIMETYPE_VIDEO_AV1, "cosmat_340x280_24fps_512kbps_av1_10bit.mkv", in input()
244 {MediaFormat.MIMETYPE_VIDEO_AVC, "cosmat_340x280_24fps_crf22_avc_10bit.mkv", in input()
247 {MediaFormat.MIMETYPE_VIDEO_HEVC, "cosmat_340x280_24fps_crf22_hevc_10bit.mkv", in input()
250 {MediaFormat.MIMETYPE_VIDEO_VP9, "cosmat_340x280_24fps_crf22_vp9_10bit.mkv", in input()
253 {MediaFormat.MIMETYPE_VIDEO_AV1, "cosmat_340x280_24fps_512kbps_av1_10bit.mkv", in input()
256 {MediaFormat.MIMETYPE_VIDEO_AVC, "cosmat_520x390_24fps_crf22_avc_10bit.mkv", in input()
259 {MediaFormat.MIMETYPE_VIDEO_HEVC, "cosmat_520x390_24fps_crf22_hevc_10bit.mkv" in input()
262 {MediaFormat.MIMETYPE_VIDEO_VP9, "cosmat_520x390_24fps_crf22_vp9_10bit.mkv", in input()
265 {MediaFormat.MIMETYPE_VIDEO_AV1, "cosmat_520x390_24fps_768kbps_av1_10bit.mkv", in input()
323 void doOutputFormatChecks(MediaFormat defaultFormat, MediaFormat configuredFormat) { in doOutputFormatChecks()
331 MediaFormat outputFormat = in doOutputFormatChecks()
341 MediaFormat format = setUpSource(mTestFile); in setUp()
343 ArrayList<MediaFormat> formatList = new ArrayList<>(); in setUp()
374 MediaFormat format = setUpSource(mTestFile); in testSimpleDecode()
394 MediaFormat defFormat = mCodec.getOutputFormat(); in testSimpleDecode()
432 int colorFormat = mIsAudio ? 0 : format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testSimpleDecode()
437 int audioEncoding = mIsAudio ? format.getInteger(MediaFormat.KEY_PCM_ENCODING, in testSimpleDecode()
472 MediaFormat format = setUpSource(mTestFile); in testFlush()
495 MediaFormat defFormat = mCodec.getOutputFormat(); in testFlush()
575 MediaFormat format = setUpSource(mTestFile); in testFlushNative()
577 colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testFlushNative()
620 MediaFormat format = setUpSource(mTestFile); in testReconfigure()
622 MediaFormat newFormat = setUpSource(mReconfigFile); in testReconfigure()
624 ArrayList<MediaFormat> formatList = new ArrayList<>(); in testReconfigure()
644 MediaFormat defFormat = mCodec.getOutputFormat(); in testReconfigure()
746 MediaFormat format = setUpSource(mTestFile); in testOnlyEos()
785 MediaFormat format = setUpSource(mTestFile); in testOnlyEosNative()
787 colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testOnlyEosNative()
803 MediaFormat format = setUpSource(mTestFile); in testSimpleDecodeQueueCSD()
808 ArrayList<MediaFormat> formats = new ArrayList<>(); in testSimpleDecodeQueueCSD()
810 formats.add(new MediaFormat(format)); in testSimpleDecodeQueueCSD()
826 MediaFormat fmt = formats.get(i); in testSimpleDecodeQueueCSD()
834 MediaFormat defFormat = mCodec.getOutputFormat(); in testSimpleDecodeQueueCSD()
875 MediaFormat format = setUpSource(mTestFile); in testSimpleDecodeQueueCSDNative()
881 int colorFormat = mIsAudio ? 0 : format.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testSimpleDecodeQueueCSDNative()
900 MediaFormat format = setUpSource(mTestFile); in testDecodePartialFrame()
951 MediaFormat format = setUpSource(mTestFile); in testDefaultOutputColorFormat()
952 format.removeKey(MediaFormat.KEY_COLOR_FORMAT); in testDefaultOutputColorFormat()
962 MediaFormat outputFormat = mCodec.getOutputFormat(); in testDefaultOutputColorFormat()
967 + mTestEnv, outputFormat.containsKey(MediaFormat.KEY_COLOR_FORMAT)); in testDefaultOutputColorFormat()
972 int outputColorFormat = outputFormat.getInteger(MediaFormat.KEY_COLOR_FORMAT); in testDefaultOutputColorFormat()