Home
last modified time | relevance | path

Searched refs:MediaFormat (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/media/src/android/media/cts/
DEncoderTest.java25 import android.media.MediaFormat;
71 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRNBEncoders()
77 MediaFormat format = new MediaFormat(); in testAMRNBEncoders()
78 format.setString(MediaFormat.KEY_MIME, MediaFormat.MIMETYPE_AUDIO_AMR_NB); in testAMRNBEncoders()
79 format.setInteger(MediaFormat.KEY_SAMPLE_RATE, 8000); in testAMRNBEncoders()
80 format.setInteger(MediaFormat.KEY_CHANNEL_COUNT, 1); in testAMRNBEncoders()
81 format.setInteger(MediaFormat.KEY_BIT_RATE, kBitRates[j]); in testAMRNBEncoders()
85 testEncoderWithFormats(MediaFormat.MIMETYPE_AUDIO_AMR_NB, formats); in testAMRNBEncoders()
89 LinkedList<MediaFormat> formats = new LinkedList<MediaFormat>(); in testAMRWBEncoders()
95 MediaFormat format = new MediaFormat(); in testAMRWBEncoders()
[all …]
DMediaCodecCapabilitiesTest.java27 import android.media.MediaFormat;
28 import static android.media.MediaFormat.MIMETYPE_VIDEO_AVC;
29 import static android.media.MediaFormat.MIMETYPE_VIDEO_H263;
30 import static android.media.MediaFormat.MIMETYPE_VIDEO_HEVC;
31 import static android.media.MediaFormat.MIMETYPE_VIDEO_MPEG4;
32 import static android.media.MediaFormat.MIMETYPE_VIDEO_VP8;
33 import static android.media.MediaFormat.MIMETYPE_VIDEO_VP9;
385 adaptiveFormats.add(MediaFormat.MIMETYPE_VIDEO_AVC); in requiredAdaptiveFormats()
386 adaptiveFormats.add(MediaFormat.MIMETYPE_VIDEO_HEVC); in requiredAdaptiveFormats()
387 adaptiveFormats.add(MediaFormat.MIMETYPE_VIDEO_VP8); in requiredAdaptiveFormats()
[all …]
DMediaCodecListTest.java28 import android.media.MediaFormat;
59 CodecType(String type, boolean isEncoder, MediaFormat sampleFormat) { in CodecType()
81 private MediaFormat mSampleFormat;
86 super(mime, isEncoder, MediaFormat.createAudioFormat( in AudioCodec()
94 super(mime, isEncoder, MediaFormat.createVideoFormat( in VideoCodec()
310 private boolean codecCanBeFound(boolean isEncoder, MediaFormat format) { in codecCanBeFound()
367 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 8000)); // mp3 in getRequiredCodecTypes()
368 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_MPEG, false, 48000)); // mp3 in getRequiredCodecTypes()
369 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 8000)); in getRequiredCodecTypes()
370 list.add(new AudioCodec(MediaFormat.MIMETYPE_AUDIO_VORBIS, false, 48000)); in getRequiredCodecTypes()
[all …]
DMediaMuxerTest.java24 import android.media.MediaFormat;
150 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions()
163 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions()
166 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions()
175 muxer.addTrack(MediaFormat.createAudioFormat(MediaFormat.MIMETYPE_AUDIO_AAC, 48000, 1)); in testIllegalStateExceptions()
177 muxer.addTrack(MediaFormat.createAudioFormat(MediaFormat.MIMETYPE_AUDIO_AAC, 48000, 1)); in testIllegalStateExceptions()
186 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions()
187 muxer.addTrack(MediaFormat.createAudioFormat(MediaFormat.MIMETYPE_AUDIO_AAC, 48000, 1)); in testIllegalStateExceptions()
189 muxer.addTrack(MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, 480, 320)); in testIllegalStateExceptions()
210 muxer.addTrack(MediaFormat.createVideoFormat("vidoe/mp4", 480, 320)); in testIllegalStateExceptions()
[all …]
DMediaCodecTunneledPlayer.java22 import android.media.MediaFormat;
123 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio()
124 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio()
131 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio()
132 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio()
134 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio()
142 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio()
143 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio()
157 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo()
158 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo()
[all …]
DMediaCodecTest.java32 import android.media.MediaFormat;
76 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC;
83 private static final String MIME_TYPE_AUDIO = MediaFormat.MIMETYPE_AUDIO_AAC;
114 MediaFormat format = MediaFormat.createAudioFormat( in testException()
115 MediaFormat.MIMETYPE_AUDIO_MPEG, 44100 /* sampleRate */, 2 /* channelCount */); in testException()
119 format = MediaFormat.createAudioFormat( in testException()
120 MediaFormat.MIMETYPE_AUDIO_AMR_WB, 16000 /* sampleRate */, 1 /* channelCount */); in testException()
121 format.setInteger(MediaFormat.KEY_BIT_RATE, 19850); in testException()
156 private static boolean verifyException(MediaFormat format, boolean isEncoder) in verifyException()
158 String mimeType = format.getString(MediaFormat.KEY_MIME); in verifyException()
[all …]
DNdkMediaCodec.java22 import android.media.MediaFormat;
104 public void configure(MediaFormat format, int flags) { in configure()
106 int width = format.getInteger(MediaFormat.KEY_WIDTH, -1); in configure()
107 int height = format.getInteger(MediaFormat.KEY_HEIGHT, -1); in configure()
108 int colorFormat = format.getInteger(MediaFormat.KEY_COLOR_FORMAT, -1); in configure()
109 int bitRate = format.getInteger(MediaFormat.KEY_BIT_RATE, -1); in configure()
110 int frameRate = format.getInteger(MediaFormat.KEY_FRAME_RATE, -1); in configure()
111 int iFrameInterval = format.getInteger(MediaFormat.KEY_I_FRAME_INTERVAL, -1); in configure()
123 format.getString(MediaFormat.KEY_MIME), in configure()
DResourceManagerTestActivityBase.java25 import android.media.MediaFormat;
39 private static final String MIME = MediaFormat.MIMETYPE_VIDEO_AVC;
61 public void onOutputFormatChanged(MediaCodec codec, MediaFormat format) { in onOutputFormatChanged()
68 private MediaFormat getTestFormat(CodecCapabilities caps, boolean securePlayback) { in getTestFormat()
74 MediaFormat format = MediaFormat.createVideoFormat(MIME, width, height); in getTestFormat()
75 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, caps.colorFormats[0]); in getTestFormat()
76 format.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in getTestFormat()
77 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); in getTestFormat()
78 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in getTestFormat()
160 MediaFormat format = getTestFormat(caps, securePlayback); in allocateCodecs()
DDecodeEditEncodeTest.java22 import android.media.MediaFormat;
57 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC;
196 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); in generateVideoFile()
208 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, in generateVideoFile()
210 format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate); in generateVideoFile()
211 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); in generateVideoFile()
212 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in generateVideoFile()
244 private static String selectCodec(MediaFormat format) { in selectCodec()
308 MediaFormat newFormat = encoder.getOutputFormat(); in generateVideoData()
395 MediaFormat inputFormat = inputData.getMediaFormat(); in editVideoFile()
[all …]
DMediaCodecClearKeyPlayer.java32 import android.media.MediaFormat;
199 MediaFormat format = mAudioExtractor.getTrackFormat(i); in prepareAudio()
200 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio()
206 " Is ADTS:" + getMediaFormatInteger(format, MediaFormat.KEY_IS_ADTS) + in prepareAudio()
207 " Sample rate:" + getMediaFormatInteger(format, MediaFormat.KEY_SAMPLE_RATE) + in prepareAudio()
209 getMediaFormatInteger(format, MediaFormat.KEY_CHANNEL_COUNT)); in prepareAudio()
216 if (format.containsKey(MediaFormat.KEY_DURATION)) { in prepareAudio()
217 long durationUs = format.getLong(MediaFormat.KEY_DURATION); in prepareAudio()
237 MediaFormat format = mVideoExtractor.getTrackFormat(i); in prepareVideo()
238 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo()
[all …]
DCodecState.java21 import android.media.MediaFormat;
50 private MediaFormat mFormat;
51 private MediaFormat mOutputFormat;
61 MediaFormat format, in CodecState()
84 String mime = mFormat.getString(MediaFormat.KEY_MIME); in CodecState()
275 String mime = mOutputFormat.getString(MediaFormat.KEY_MIME); in onOutputFormatChanged()
283 mOutputFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE); in onOutputFormatChanged()
286 mOutputFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in onOutputFormatChanged()
304 int width = mOutputFormat.getInteger(MediaFormat.KEY_WIDTH); in onOutputFormatChanged()
305 int height = mOutputFormat.getInteger(MediaFormat.KEY_HEIGHT); in onOutputFormatChanged()
DNativeDecoderTest.java27 import android.media.MediaFormat;
149 MediaFormat format = ex.getTrackFormat(i); in getSampleSizes()
150 String mime = format.getString(MediaFormat.KEY_MIME); in getSampleSizes()
153 foo.add(format.getInteger(MediaFormat.KEY_SAMPLE_RATE)); in getSampleSizes()
154 foo.add(format.getInteger(MediaFormat.KEY_CHANNEL_COUNT)); in getSampleSizes()
155 foo.add((int)format.getLong(MediaFormat.KEY_DURATION)); in getSampleSizes()
158 foo.add(format.getInteger(MediaFormat.KEY_WIDTH)); in getSampleSizes()
159 foo.add(format.getInteger(MediaFormat.KEY_HEIGHT)); in getSampleSizes()
160 foo.add((int)format.getLong(MediaFormat.KEY_DURATION)); in getSampleSizes()
205 MediaFormat format = ex.getTrackFormat(i); in testExtractorFileDurationNative()
[all …]
DExtractDecodeEditEncodeMuxTest.java28 import android.media.MediaFormat;
85 private static final String OUTPUT_AUDIO_MIME_TYPE = MediaFormat.MIMETYPE_AUDIO_AAC;
133 setVideoMimeType(MediaFormat.MIMETYPE_VIDEO_AVC); in testExtractDecodeEditEncodeMuxQCIF()
141 setVideoMimeType(MediaFormat.MIMETYPE_VIDEO_AVC); in testExtractDecodeEditEncodeMuxQVGA()
149 setVideoMimeType(MediaFormat.MIMETYPE_VIDEO_AVC); in testExtractDecodeEditEncodeMux720p()
157 setVideoMimeType(MediaFormat.MIMETYPE_VIDEO_HEVC); in testExtractDecodeEditEncodeMux2160pHevc()
306 MediaFormat outputVideoFormat = in extractDecodeEditEncodeMux()
307 MediaFormat.createVideoFormat(mOutputVideoMimeType, mWidth, mHeight); in extractDecodeEditEncodeMux()
312 MediaFormat.KEY_COLOR_FORMAT, OUTPUT_VIDEO_COLOR_FORMAT); in extractDecodeEditEncodeMux()
313 outputVideoFormat.setInteger(MediaFormat.KEY_BIT_RATE, OUTPUT_VIDEO_BIT_RATE); in extractDecodeEditEncodeMux()
[all …]
DVideoDecoderPerfTest.java27 import android.media.MediaFormat;
54 private static final String AVC = MediaFormat.MIMETYPE_VIDEO_AVC;
55 private static final String H263 = MediaFormat.MIMETYPE_VIDEO_H263;
56 private static final String HEVC = MediaFormat.MIMETYPE_VIDEO_HEVC;
57 private static final String MPEG2 = MediaFormat.MIMETYPE_VIDEO_MPEG2;
58 private static final String MPEG4 = MediaFormat.MIMETYPE_VIDEO_MPEG4;
59 private static final String VP8 = MediaFormat.MIMETYPE_VIDEO_VP8;
60 private static final String VP9 = MediaFormat.MIMETYPE_VIDEO_VP9;
68 private MediaFormat mDecInputFormat;
69 private MediaFormat mDecOutputFormat;
[all …]
DStreamingMediaPlayerTest.java19 import android.media.MediaFormat;
119 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1()
128 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2()
137 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1()
146 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2()
155 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1()
164 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2()
174 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS()
188 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsWithHeadersCookies()
223 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsSampleAes_bbb_audio_only_overridable()
[all …]
DEncodeVirtualDisplayTest.java23 import android.media.MediaFormat;
91 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC;
174 MediaFormat format = MediaFormat.createVideoFormat( in verifySupportForEncoderLevel()
176 format.setInteger(MediaFormat.KEY_BIT_RATE, ENCODER_PARAM_TABLE[i][2]); in verifySupportForEncoderLevel()
177 format.setInteger(MediaFormat.KEY_FRAME_RATE, ENCODER_PARAM_TABLE[i][3]); in verifySupportForEncoderLevel()
215 MediaFormat encoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, sWidth, sHeight); in encodeVirtualDisplayTest()
216 encoderFormat.setInteger(MediaFormat.KEY_COLOR_FORMAT, in encodeVirtualDisplayTest()
218 encoderFormat.setInteger(MediaFormat.KEY_BIT_RATE, sBitRate); in encodeVirtualDisplayTest()
219 encoderFormat.setInteger(MediaFormat.KEY_FRAME_RATE, sFrameRate); in encodeVirtualDisplayTest()
220 encoderFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in encodeVirtualDisplayTest()
[all …]
DStreamingMediaPlayer2Test.java20 import android.media.MediaFormat;
126 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, in testHTTP_H263_AMR_Video1()
127 MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1()
139 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, in testHTTP_H263_AMR_Video2()
140 MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2()
152 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1()
164 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2()
176 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1()
188 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2()
201 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS()
[all …]
DEncodeDecodeTest.java24 import android.media.MediaFormat;
61 private static final String MIME_TYPE_AVC = MediaFormat.MIMETYPE_VIDEO_AVC;
62 private static final String MIME_TYPE_VP8 = MediaFormat.MIMETYPE_VIDEO_VP8;
377 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in shouldSkip()
378 format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate); in shouldSkip()
379 format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE); in shouldSkip()
380 format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, IFRAME_INTERVAL); in shouldSkip()
409 MediaFormat format = MediaFormat.createVideoFormat(mMimeType, mWidth, mHeight); in encodeDecodeVideoFromBuffer()
434 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, colorFormat); in encodeDecodeVideoFromBuffer()
435 format.setInteger(MediaFormat.KEY_BIT_RATE, mBitRate); in encodeDecodeVideoFromBuffer()
[all …]
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/
DMediaPreparerAppTest.java22 import android.media.MediaFormat;
89 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions()
91 width = Math.max(width, format.getInteger(MediaFormat.KEY_WIDTH)); in testGetResolutions()
92 height = Math.max(height, format.getInteger(MediaFormat.KEY_HEIGHT)); in testGetResolutions()
102 for (MediaFormat format : stringsToFormats(config.getValues(key))) { in testGetResolutions()
124 private List<MediaFormat> stringsToFormats(List<String> formatStrings) { in stringsToFormats()
125 List<MediaFormat> formats = new ArrayList<MediaFormat>(); in stringsToFormats()
139 private static MediaFormat parseTrackFormat(String trackFormatString) { in parseTrackFormat()
140 MediaFormat format = new MediaFormat(); in parseTrackFormat()
141 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java32 import android.media.MediaFormat;
207 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames()
218 for (MediaFormat format : formats) { in getCodecNames()
219 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames()
237 public static String[] getDecoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getDecoderNames()
241 public static String[] getDecoderNames(MediaFormat... formats) { in getDecoderNames()
246 public static String[] getEncoderNames(/* Nullable */ Boolean isGoog, MediaFormat... formats) { in getEncoderNames()
250 public static String[] getEncoderNames(MediaFormat... formats) { in getEncoderNames()
255 MediaFormat format = new MediaFormat(); in getDecoderNamesForMime()
256 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime()
[all …]
DMediaPerfUtils.java18 import android.media.MediaFormat;
44 private static String formatForReport(MediaFormat format) { in formatForReport()
56 MediaFormat configFormat, MediaFormat inputFormat, MediaFormat outputFormat) { in addPerformanceHeadersToLog()
57 String mime = configFormat.getString(MediaFormat.KEY_MIME); in addPerformanceHeadersToLog()
58 int width = configFormat.getInteger(MediaFormat.KEY_WIDTH); in addPerformanceHeadersToLog()
59 int height = configFormat.getInteger(MediaFormat.KEY_HEIGHT); in addPerformanceHeadersToLog()
/cts/tests/video/src/android/video/cts/
DCodecInfo.java27 import android.media.MediaFormat;
48 private static final String VIDEO_AVC = MediaFormat.MIMETYPE_VIDEO_AVC;
84 MediaFormat format = MediaFormat.createVideoFormat(mimeType, w, h); in getSupportedFormatInfo()
86 info.mFps = format.getInteger(MediaFormat.KEY_FRAME_RATE); in getSupportedFormatInfo()
87 info.mBitRate = format.getInteger(MediaFormat.KEY_BIT_RATE); in getSupportedFormatInfo()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java25 import android.media.MediaFormat;
105 private static MediaFormat parseTrackFormat(String trackFormatString) { in parseTrackFormat()
106 MediaFormat format = new MediaFormat(); in parseTrackFormat()
107 format.setString(MediaFormat.KEY_MIME, ""); in parseTrackFormat()
127 private List<MediaFormat> getClipFormats(String mediaName) throws Exception { in getClipFormats()
128 List<MediaFormat> mediaFormats = new ArrayList<MediaFormat>(); in getClipFormats()
136 MediaFormat format = parseTrackFormat(trackFormatString); in getClipFormats()
157 for (MediaFormat format: getClipFormats(mediaName)) { in doTestVideoPlayback()
DNativeMediaTest.java20 import android.media.MediaFormat;
33 private static final String MIME_TYPE = MediaFormat.MIMETYPE_VIDEO_AVC;
59 MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, width, height); in runPlayTest()
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java26 import android.media.MediaFormat;
93 MediaFormat.KEY_WIDTH, in run()
94 MediaFormat.KEY_HEIGHT, in run()
95 MediaFormat.KEY_FRAME_RATE, in run()
96 MediaFormat.KEY_PROFILE, in run()
97 MediaFormat.KEY_LEVEL, in run()
98 MediaFormat.KEY_BIT_RATE}; in run()
118 MediaFormat format = MediaUtils.getTrackFormatForPath(null, fullPath, "video"); in run()
119 StringBuilder formatStringBuilder = new StringBuilder(MediaFormat.KEY_MIME); in run()
120 formatStringBuilder.append('=').append(format.getString(MediaFormat.KEY_MIME)); in run()
[all …]

123