Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 42) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecCapabilitiesTest.java330 private boolean checkDecoder(String mime, int profile, int level) { in checkDecoder() argument
331 if (!hasDecoder(mime, profile, level)) { in checkDecoder()
332 MediaUtils.skipTest(TAG, "no " + mime + " decoder for profile " in checkDecoder()
339 private boolean hasDecoder(String mime, int profile, int level) { in hasDecoder() argument
340 return supports(mime, false /* isEncoder */, profile, level, false /* defaultOnly */); in hasDecoder()
343 private boolean hasEncoder(String mime, int profile, int level) { in hasEncoder() argument
344 return supports(mime, true /* isEncoder */, profile, level, false /* defaultOnly */); in hasEncoder()
349 private boolean checkDecodeWithDefaultPlayer(String mime, int profile, int level) { in checkDecodeWithDefaultPlayer() argument
350 if (!supports(mime, false /* isEncoder */, profile, level, true /* defaultOnly */)) { in checkDecodeWithDefaultPlayer()
358 String mime, boolean isEncoder, int profile, int level, in supports() argument
[all …]
DNativeEncoderTest.java76 private boolean testEncode(int res, String mime, int width, int height) { in testEncode() argument
81 mime, width, height); in testEncode()
84 String mime, int width, int height); in testEncodeSurfaceNative() argument
112 private boolean testEncodeDynamicSyncFrame(int res, String mime, int width, int height) { in testEncodeDynamicSyncFrame() argument
117 mime, width, height); in testEncodeDynamicSyncFrame()
120 String mime, int width, int height); in testEncodeSurfaceDynamicSyncFrameNative() argument
148 private boolean testEncodeDynamicBitrate(int res, String mime, int width, int height) { in testEncodeDynamicBitrate() argument
153 mime, width, height); in testEncodeDynamicBitrate()
156 String mime, int width, int height); in testEncodeSurfaceDynamicBitrateNative() argument
184 private boolean testEncodePersistentSurface(int res, String mime, int width, int height) { in testEncodePersistentSurface() argument
[all …]
DDecoderConformanceTest.java104 private List<String> readCodecTestVectors(String mime) throws Exception { in readCodecTestVectors() argument
105 String tag = MIMETYPE_TO_TAG.get(mime); in readCodecTestVectors()
110 private List<String> readVectorMD5Sums(String mime, String vectorName) throws Exception { in readVectorMD5Sums() argument
111 String tag = MIMETYPE_TO_TAG.get(mime); in readVectorMD5Sums()
134 …private Status decodeTestVector(String mime, String decoderName, String vectorName) throws Excepti… in decodeTestVector() argument
143 MediaCodecInfo.CodecCapabilities caps = codecInfo.getCapabilitiesForType(mime); in decodeTestVector()
150 frameMD5Sums = readVectorMD5Sums(mime, vectorName); in decodeTestVector()
167 void decodeTestVectors(String mime, boolean isGoog) throws Exception { in decodeTestVectors() argument
169 format.setString(MediaFormat.KEY_MIME, mime); in decodeTestVectors()
172 List<String> testVectors = readCodecTestVectors(mime); in decodeTestVectors()
[all …]
DMediaCodecClearKeyPlayer.java212 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local
213 if (!mime.startsWith("audio/")) { in prepareAudio()
217 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio()
258 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local
259 if (!mime.startsWith("video/")) { in prepareVideo()
265 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo()
319 String mime = format.getString(android.media.MediaFormat.KEY_MIME); in initCasAndDescrambler() local
320 Log.d(TAG, "track "+ trackId + ": " + mime); in initCasAndDescrambler()
321 if (MediaFormat.MIMETYPE_VIDEO_SCRAMBLED.equals(mime) || in initCasAndDescrambler()
322 MediaFormat.MIMETYPE_AUDIO_SCRAMBLED.equals(mime)) { in initCasAndDescrambler()
[all …]
DMediaCodecTunneledPlayer.java124 String mime = format.getString(MediaFormat.KEY_MIME); in prepareAudio() local
126 if (!mime.startsWith("audio/")) { in prepareAudio()
130 Log.d(TAG, "audio track #" + i + " " + format + " " + mime + in prepareAudio()
158 String mime = format.getString(MediaFormat.KEY_MIME); in prepareVideo() local
160 if (!mime.startsWith("video/")) { in prepareVideo()
166 Log.d(TAG, "video track #" + i + " " + format + " " + mime + in prepareVideo()
236 String mime = format.getString(MediaFormat.KEY_MIME); in addTrack() local
237 boolean isVideo = mime.startsWith("video/"); in addTrack()
238 boolean isAudio = mime.startsWith("audio/"); in addTrack()
248 Log.e(TAG,"addTrack - Could not find Tunneled playback codec for "+mime+ in addTrack()
[all …]
DCodecState.java84 String mime = mFormat.getString(MediaFormat.KEY_MIME); in CodecState() local
85 Log.d(TAG, "CodecState::CodecState " + mime); in CodecState()
86 mIsAudio = mime.startsWith("audio/"); in CodecState()
275 String mime = mOutputFormat.getString(MediaFormat.KEY_MIME); in onOutputFormatChanged() local
277 Log.d(TAG, "CodecState::onOutputFormatChanged " + mime); in onOutputFormatChanged()
280 if (mime.startsWith("audio/")) { in onOutputFormatChanged()
303 if (mime.startsWith("video/")) { in onOutputFormatChanged()
DMediaCodecTest.java518 for (String mime : mimes) { in testReleaseAfterFlush()
519 if (!MediaUtils.checkEncoder(mime)) { in testReleaseAfterFlush()
522 testReleaseAfterFlush(mime); in testReleaseAfterFlush()
526 private void testReleaseAfterFlush(String mime) throws IOException, InterruptedException { in testReleaseAfterFlush() argument
532 MediaCodec encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush()
533 runReleaseAfterFlush(mime, encoder, buffersExhausted, codecFlushed, numBuffers); in testReleaseAfterFlush()
536 encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush()
542 runReleaseAfterFlush(mime, encoder, buffersExhausted, codecFlushed, numBuffers); in testReleaseAfterFlush()
555 encoder = MediaCodec.createEncoderByType(mime); in testReleaseAfterFlush()
559 … new ReleaseAfterFlushCallback(mime, encoder, buffersExhausted, codecFlushed, nBuffs); in testReleaseAfterFlush()
[all …]
DNativeDecoderTest.java231 String mime = format.getString(MediaFormat.KEY_MIME); in getSampleSizes() local
232 if (mime.startsWith("audio/")) { in getSampleSizes()
237 } else if (mime.startsWith("video/")) { in getSampleSizes()
243 fail("unexpected mime type: " + mime); in getSampleSizes()
291 String mime = format.getString(MediaFormat.KEY_MIME); in testExtractorFileDurationNative() local
292 if (mime.startsWith("audio/")) { in testExtractorFileDurationNative()
294 } else if (mime.startsWith("video/")) { in testExtractorFileDurationNative()
416 String mime = format[i].getString(MediaFormat.KEY_MIME); in getDecodedData() local
417 if (mime.startsWith("audio/") || mime.startsWith("video/")) { in getDecodedData()
418 codec[i] = MediaCodec.createDecoderByType(mime); in getDecodedData()
[all …]
DMediaCodecPlayerTestBase.java153 private boolean isResolutionSupported(String mime, String[] features, in isResolutionSupported() argument
155 MediaFormat format = MediaFormat.createVideoFormat(mime, videoWidth, videoHeight); in isResolutionSupported()
DDecoderTest.java283 String mime = format.getString(MediaFormat.KEY_MIME); in testBFrames() local
284 assertTrue("not a video track. Wrong test file?", mime.startsWith("video/")); in testBFrames()
290 MediaCodec dec = MediaCodec.createDecoderByType(mime); in testBFrames()
806 String mime = format.getString(MediaFormat.KEY_MIME); in testHdrStaticMetadata() local
808 if (MediaFormat.MIMETYPE_VIDEO_HEVC.equals(mime)) { in testHdrStaticMetadata()
812 } else if (MediaFormat.MIMETYPE_VIDEO_VP9.equals(mime)) { in testHdrStaticMetadata()
817 } else if (MediaFormat.MIMETYPE_VIDEO_AV1.equals(mime)) { in testHdrStaticMetadata()
823 fail("Codec " + mime + " shouldn't be tested with this test!"); in testHdrStaticMetadata()
1597 String mime = format.getString(MediaFormat.KEY_MIME);
1598 assertTrue("not an audio file", mime.startsWith("audio/"));
[all …]
DVideoEncoderTest.java156 String mime = mFormat.getString(MediaFormat.KEY_MIME); in playAll() local
164 CodecCapabilities caps = info.getCapabilitiesForType(mime); in playAll()
235 String mime = fmt.getString(MediaFormat.KEY_MIME).toLowerCase(); in open() local
236 if (mime.startsWith("video/")) { in open()
878 Encoder(String name, String mime, CodecCapabilities caps) { in Encoder() argument
880 mMime = mime; in Encoder()
1170 private Encoder[] goog(String mime) { in goog() argument
1171 return encoders(mime, true /* goog */); in goog()
1174 private Encoder[] other(String mime) { in other() argument
1175 return encoders(mime, false /* goog */); in other()
[all …]
DAdaptivePlaybackTest.java1459 public CodecFamily(Context context, String mime, int ... resources) {
1466 assert media.getMime().equals(mime):
1468 " mime type instead of " + mime;
1491 if (type.equals(mime)) {
1494 codecInfo.getCapabilitiesForType(mime),
1510 Context context, String mime, boolean isGoogle, int ... resources) {
1511 for (Codec c: new CodecFamily(context, mime, resources)) {
1521 Context context, String mime, int ...resources) {
1522 return new CodecFamily(context, mime, resources);
1528 Context context, String mime, int ...resources) {
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java222 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() local
226 caps = info.getCapabilitiesForType(mime); in getCodecNames()
257 public static String[] getDecoderNamesForMime(String mime) { in getDecoderNamesForMime() argument
259 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime()
263 public static String[] getEncoderNamesForMime(String mime) { in getEncoderNamesForMime() argument
265 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime()
309 public static boolean supports(String codecName, String mime, int w, int h) { in supports() argument
314 VideoCapabilities vidCap = getVideoCapabilities(codecName, mime); in supports()
334 String mime = format.getString(MediaFormat.KEY_MIME); in supports() local
337 cap = codec.getCodecInfo().getCapabilitiesForType(mime); in supports()
[all …]
DMediaPerfUtils.java57 String mime = configFormat.getString(MediaFormat.KEY_MIME); in addPerformanceHeadersToLog() local
63 log.addValue("mime_type", mime, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog()
77 MediaUtils.getVideoCapabilities(codecName, mime) in addPerformanceHeadersToLog()
150 String name, String mime, int w, int h, double... measuredFps) { in verifyAchievableFrameRates() argument
152 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
153 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in verifyAchievableFrameRates()
161 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in verifyAchievableFrameRates()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java220 String mime = format.getString(MediaFormat.KEY_MIME); in getCodecNames() local
224 caps = info.getCapabilitiesForType(mime); in getCodecNames()
255 public static String[] getDecoderNamesForMime(String mime) { in getDecoderNamesForMime() argument
257 format.setString(MediaFormat.KEY_MIME, mime); in getDecoderNamesForMime()
261 public static String[] getEncoderNamesForMime(String mime) { in getEncoderNamesForMime() argument
263 format.setString(MediaFormat.KEY_MIME, mime); in getEncoderNamesForMime()
307 public static boolean supports(String codecName, String mime, int w, int h) { in supports() argument
312 VideoCapabilities vidCap = getVideoCapabilities(codecName, mime); in supports()
332 String mime = format.getString(MediaFormat.KEY_MIME); in supports() local
335 cap = codec.getCodecInfo().getCapabilitiesForType(mime); in supports()
[all …]
DMediaPerfUtils.java57 String mime = configFormat.getString(MediaFormat.KEY_MIME); in addPerformanceHeadersToLog() local
63 log.addValue("mime_type", mime, ResultType.NEUTRAL, ResultUnit.NONE); in addPerformanceHeadersToLog()
77 MediaUtils.getVideoCapabilities(codecName, mime) in addPerformanceHeadersToLog()
150 String name, String mime, int w, int h, double... measuredFps) { in verifyAchievableFrameRates() argument
152 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
153 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in verifyAchievableFrameRates()
161 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in verifyAchievableFrameRates()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreIntentsTest.java121 for (String mime : mimes) { in testViewImageFile()
125 intent.setDataAndType(uri, mime); in testViewImageFile()
140 for (String mime : mimes) { in testViewVideoFile()
144 intent.setDataAndType(uri, mime); in testViewVideoFile()
159 for (String mime : mimes) { in testViewAudioFile()
163 intent.setDataAndType(uri, mime); in testViewAudioFile()
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp111 const char *mime; in createMediaCodec() local
114 ASSERT(AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)); in createMediaCodec()
116 if (!strncmp(mime, "video/", 6)) { in createMediaCodec()
124 mCodec = AMediaCodec_createDecoderByType(mime); in createMediaCodec()
/cts/tests/tests/media/libaudiojni/
Dappendix-b-1-2-recording.cpp149 mime.formatType = SL_DATAFORMAT_MIME; in TestAudioRecording()
150 mime.mimeType = (SLchar *) "audio/x-wav"; in TestAudioRecording()
151 mime.containerType = SL_CONTAINERTYPE_WAV; in TestAudioRecording()
153 audioSink.pFormat = (void *)&mime; in TestAudioRecording()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_decoder_source.cpp93 const char *mime; in setDataSourceFd() local
100 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in setDataSourceFd()
105 } else if (!strncmp(mime, "video/", 6)) { in setDataSourceFd()
108 mMime = mime; in setDataSourceFd()
111 ALOGE("expected video mime type, got %s", mime); in setDataSourceFd()
Dnative-media-jni.cpp272 const char *mime; in testExtractor() local
273 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in testExtractor()
276 } else if (!strncmp(mime, "audio/", 6)) { in testExtractor()
286 } else if (!strncmp(mime, "video/", 6)) { in testExtractor()
297 ALOGE("expected audio or video mime type, got %s", mime); in testExtractor()
517 const char *mime; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
518 if (!AMediaFormat_getString(format, AMEDIAFORMAT_KEY_MIME, &mime)) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
521 } else if (!strncmp(mime, "audio/", 6) || !strncmp(mime, "video/", 6)) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
522 codec[i] = AMediaCodec_createDecoderByType(mime); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
537 ALOGE("expected audio or video mime type, got %s", mime); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
[all …]
Dnative_media_encoder_jni.cpp118 const char *mime; in prepare() local
119 AMediaFormat_getString(config, AMEDIAFORMAT_KEY_MIME, &mime); in prepare()
121 AMediaCodec *enc = AMediaCodec_createEncoderByType(mime); in prepare()
261 std::string mime, in createMediaFormat() argument
268 AMediaFormat_setString(config.get(), AMEDIAFORMAT_KEY_MIME, mime.c_str()); in createMediaFormat()
315 std::string mime = cmime; in runNativeEncoderTest() local
320 mime, w, h, kColorFormatSurface, in runNativeEncoderTest()
Dnative-mediadrm-jni.cpp317 static bool isVideo(const char* mime) { in isVideo() argument
318 return !strncmp(mime, "video/", 6) ? true : false; in isVideo()
321 static bool isAudio(const char* mime) { in isAudio() argument
322 return !strncmp(mime, "audio/", 6) ? true : false; in isAudio()
326 const char* mime, const AMediaCrypto* crypto, in addTrack() argument
329 *codec = AMediaCodec_createDecoderByType(mime); in addTrack()
331 ALOGE("cannot create codec for %s", mime); in addTrack()
354 const char* mime = ""; in addTracks() local
356 trackFormat, AMEDIAFORMAT_KEY_MIME, &mime)) { in addTracks()
361 } else if (isAudio(mime) || isVideo(mime)) { in addTracks()
[all …]
/cts/tools/cts-media/
Dget_achievable_rates.py138 yield ' <MediaCodec name="%s" type="%s" update="true">' % (comp.name, comp.mime)
247 for mime, encoder, goog in sorted(set(self.kind.values())):
249 if self.kind[codec] != (mime, encoder, goog):
253 xmlInfo[dev][(not encoder, goog, mime, codec)][size].append(p95)
282 mime = a['mime_type']
299 self.kind[codec] = (mime, 'decode_to' not in a, codec.lower().startswith('omx.google.'))
/cts/tests/tests/drm/src/android/drm/cts/
DDrmSupportInfoTest.java141 String mime = (String) mimes.next(); in checkAddValidMimeType() local
142 assertEquals(mime, mimeType); in checkAddValidMimeType()

12