Home
last modified time | relevance | path

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

12345

/frameworks/av/media/libstagefright/
DMediaExtractor.cpp54 const sp<DataSource> &source, const char *mime) { in Create() argument
58 if (mime == NULL) { in Create()
66 mime = tmp.string(); in Create()
68 mime, confidence); in Create()
75 if (!strncmp(mime, "drm+", 4)) { in Create()
76 const char *originalMime = strchr(mime+4, '+'); in Create()
82 if (!strncmp(mime, "drm+es_based+", 13)) { in Create()
85 } else if (!strncmp(mime, "drm+container_based+", 20)) { in Create()
86 mime = originalMime; in Create()
94 if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG4) in Create()
[all …]
DDRMExtractor.cpp81 const char *mime; in DRMSource() local
82 bool success = getFormat()->findCString(kKeyMIMEType, &mime); in DRMSource()
85 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { in DRMSource()
155 const char *mime; in read() local
156 CHECK(getFormat()->findCString(kKeyMIMEType, &mime)); in read()
158 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC) && !mWantsNALFragments) { in read()
231 DRMExtractor::DRMExtractor(const sp<DataSource> &source, const char* mime) in DRMExtractor() argument
235 mOriginalExtractor = MediaExtractor::Create(source, mime); in DRMExtractor()
DStagefrightMetadataRetriever.cpp117 const char *mime; in isYUV420PlanarSupported() local
118 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); in isYUV420PlanarSupported()
121 if (QueryCodecs(client->interface(), mime, in isYUV420PlanarSupported()
238 const char *mime; in extractVideoFrameWithCodecFlags() local
239 CHECK(trackMeta->findCString(kKeyMIMEType, &mime)); in extractVideoFrameWithCodecFlags()
242 thumbNailTime, timeUs, mime); in extractVideoFrameWithCodecFlags()
349 const char *mime; in getFrameAtTime() local
350 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getFrameAtTime()
352 if (!strncasecmp(mime, "video/", 6)) { in getFrameAtTime()
515 const char *mime; in parseMetaData() local
[all …]
DUtils.cpp70 const char *mime; in convertMetaDataToMessage() local
71 CHECK(meta->findCString(kKeyMIMEType, &mime)); in convertMetaDataToMessage()
74 msg->setString("mime", mime); in convertMetaDataToMessage()
86 if (!strncasecmp("video/", mime, 6)) { in convertMetaDataToMessage()
100 } else if (!strncasecmp("audio/", mime, 6)) { in convertMetaDataToMessage()
366 AString mime; in convertMessageToMetaData() local
367 if (msg->findString("mime", &mime)) { in convertMessageToMetaData()
368 meta->setCString(kKeyMIMEType, mime.c_str()); in convertMessageToMetaData()
383 if (mime.startsWith("video/")) { in convertMessageToMetaData()
399 } else if (mime.startsWith("audio/")) { in convertMessageToMetaData()
[all …]
DMPEG4Writer.cpp442 const char *mime; in addSource() local
443 source->getFormat()->findCString(kKeyMIMEType, &mime); in addSource()
444 bool isAudio = !strncasecmp(mime, "audio/", 6); in addSource()
445 bool isVideo = !strncasecmp(mime, "video/", 6); in addSource()
448 mime); in addSource()
1360 const char *mime; in Track() local
1361 mMeta->findCString(kKeyMIMEType, &mime); in Track()
1362 mIsAvc = !strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC); in Track()
1363 mIsAudio = !strncasecmp(mime, "audio/", 6); in Track()
1364 mIsMPEG4 = !strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4) || in Track()
[all …]
DNuMediaExtractor.cpp190 const char *mime; in updateDurationAndBitrate() local
191 CHECK(meta->findCString(kKeyMIMEType, &mime)); in updateDurationAndBitrate()
192 ALOGV("track of type '%s' does not publish bitrate", mime); in updateDurationAndBitrate()
242 const char *mime; in getFileFormat() local
243 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getFileFormat()
245 (*format)->setString("mime", mime); in getFileFormat()
293 const char *mime; in selectTrack() local
294 CHECK(source->getFormat()->findCString(kKeyMIMEType, &mime)); in selectTrack()
296 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in selectTrack()
DAVIExtractor.cpp112 const char *mime; in start() local
113 CHECK(mTrack.mMeta->findCString(kKeyMIMEType, &mime)); in start()
115 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG)) { in start()
618 const char *mime = NULL; in parseStreamHeader() local
622 mime = GetMIMETypeForHandler(handler); in parseStreamHeader()
624 if (mime && strncasecmp(mime, "video/", 6)) { in parseStreamHeader()
628 if (mime == NULL) { in parseStreamHeader()
638 if (mime && strncasecmp(mime, "audio/", 6)) { in parseStreamHeader()
645 if (!mime) { in parseStreamHeader()
646 mime = "application/octet-stream"; in parseStreamHeader()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMimeTest.java116 private ResolveInfo resolveMime(String mime) { in resolveMime() argument
120 viewIntent.setDataAndType(uri, mime); in resolveMime()
127 private void assertMediaPlaybackActivityHandles(String mime) throws Exception { in assertMediaPlaybackActivityHandles() argument
128 ResolveInfo ri = resolveMime(mime); in assertMediaPlaybackActivityHandles()
135 private void assertNoActivityHandles(String mime) throws Exception { in assertNoActivityHandles() argument
136 assertNull(resolveMime(mime)); in assertNoActivityHandles()
/frameworks/av/media/libstagefright/timedtext/
DTimedText3GPPSource.cpp71 const char *mime; in extractAndAppendLocalDescriptions() local
72 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in extractAndAppendLocalDescriptions()
73 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0); in extractAndAppendLocalDescriptions()
95 const char *mime; in extractGlobalDescriptions() local
96 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in extractGlobalDescriptions()
97 CHECK(strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0); in extractGlobalDescriptions()
DTimedTextSource.cpp37 const char *mime; in CreateTimedTextSource() local
38 CHECK(mediaSource->getFormat()->findCString(kKeyMIMEType, &mime)); in CreateTimedTextSource()
39 if (strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) == 0) { in CreateTimedTextSource()
42 ALOGE("Unsupported mime type for subtitle. : %s", mime); in CreateTimedTextSource()
/frameworks/av/drm/common/
DDrmEngineBase.cpp124 int fd, off64_t offset, off64_t length, const char* mime) { in openDecryptSession() argument
126 if (!mime || mime[0] == '\0') { in openDecryptSession()
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); in openDecryptSession()
135 const char* uri, const char* mime) { in openDecryptSession() argument
136 if (!mime || mime[0] == '\0') { in openDecryptSession()
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime); in openDecryptSession()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp168 const char *mime; in playSource() local
169 CHECK(meta->findCString(kKeyMIMEType, &mime)); in playSource()
172 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) { in playSource()
190 fprintf(stderr, "Failed to instantiate decoder for '%s'.\n", mime); in playSource()
376 if (!strncasecmp("video/", mime, 6)) { in playSource()
387 } else if (!strncasecmp("audio/", mime, 6)) { in playSource()
427 const char *mime; in DetectSyncSource() local
428 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in DetectSyncSource()
430 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { in DetectSyncSource()
432 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in DetectSyncSource()
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DMediaPuller.cpp40 const char *mime; in MediaPuller() local
41 CHECK(meta->findCString(kKeyMIMEType, &mime)); in MediaPuller()
43 mIsAudio = !strncasecmp(mime, "audio/", 6); in MediaPuller()
116 AString mime = tmp; in onMessageReceived() local
118 ALOGI("MediaPuller(%s) stopping.", mime.c_str()); in onMessageReceived()
120 ALOGI("MediaPuller(%s) stopped.", mime.c_str()); in onMessageReceived()
/frameworks/base/media/jni/
Dandroid_media_MediaCrypto.cpp102 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const { in requiresSecureDecoderComponent()
107 return mCrypto->requiresSecureDecoderComponent(mime); in requiresSecureDecoderComponent()
263 const char *mime = env->GetStringUTFChars(mimeObj, NULL); in android_media_MediaCrypto_requiresSecureDecoderComponent() local
265 if (mime == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent()
269 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
271 env->ReleaseStringUTFChars(mimeObj, mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
272 mime = NULL; in android_media_MediaCrypto_requiresSecureDecoderComponent()
/frameworks/wilhelm/tests/listening/
DseekTorture.c60 SLDataFormat_MIME mime; in main() local
65 mime.formatType = SL_DATAFORMAT_MIME; in main()
66 mime.mimeType = (SLchar *) NULL; in main()
67 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in main()
69 audiosrc.pFormat = &mime; in main()
/frameworks/wilhelm/tests/examples/
DslesTestPlayFdPath.cpp61 SLDataFormat_MIME mime; in TestPlayPathFromFD() local
120 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayPathFromFD()
123 mime.mimeType = (SLchar*)NULL; in TestPlayPathFromFD()
124 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayPathFromFD()
126 audioSource.pFormat = (void*)&mime; in TestPlayPathFromFD()
DslesTestBassBoostPath.cpp65 SLDataFormat_MIME mime; in TestBassBoostPathFromFD() local
131 mime.formatType = SL_DATAFORMAT_MIME; in TestBassBoostPathFromFD()
134 mime.mimeType = (SLchar*)NULL; in TestBassBoostPathFromFD()
135 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestBassBoostPathFromFD()
137 audioSource.pFormat = (void*)&mime; in TestBassBoostPathFromFD()
DslesTestVirtualizerPath.cpp66 SLDataFormat_MIME mime; in TestVirtualizerPathFromFD() local
132 mime.formatType = SL_DATAFORMAT_MIME; in TestVirtualizerPathFromFD()
135 mime.mimeType = (SLchar*)NULL; in TestVirtualizerPathFromFD()
136 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestVirtualizerPathFromFD()
138 audioSource.pFormat = (void*)&mime; in TestVirtualizerPathFromFD()
/frameworks/base/media/java/android/media/
DMediaFormat.java267 String mime, in createAudioFormat() argument
271 format.setString(KEY_MIME, mime); in createAudioFormat()
285 String mime, in createVideoFormat() argument
289 format.setString(KEY_MIME, mime); in createVideoFormat()
/frameworks/wilhelm/tests/mimeUri/
DslesTest_playStates.cpp59 SLDataFormat_MIME mime; in TestPlayUri() local
113 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayUri()
116 mime.mimeType = (SLchar*)NULL; in TestPlayUri()
117 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayUri()
119 audioSource.pFormat = (void*)&mime; in TestPlayUri()
DslesTestPlayStreamType.cpp59 SLDataFormat_MIME mime; in TestStreamTypeConfiguration() local
118 mime.formatType = SL_DATAFORMAT_MIME; in TestStreamTypeConfiguration()
121 mime.mimeType = (SLchar*)NULL; in TestStreamTypeConfiguration()
122 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestStreamTypeConfiguration()
124 audioSource.pFormat = (void*)&mime; in TestStreamTypeConfiguration()
/frameworks/av/libvideoeditor/lvpp/
DVideoEditorSRC.cpp52 const char *mime; in VideoEditorSRC() local
53 CHECK(format->findCString(kKeyMIMEType, &mime)); in VideoEditorSRC()
54 CHECK(!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_RAW)); in VideoEditorSRC()
298 const char *mime; in checkAndSetResampler() local
299 CHECK(format->findCString(kKeyMIMEType, &mime)); in checkAndSetResampler()
300 CHECK(!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_RAW)); in checkAndSetResampler()
/frameworks/wilhelm/tests/
DmimeUri_test.cpp110 SLDataFormat_MIME mime; in TestPlayUri() local
151 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayUri()
152 mime.mimeType = (SLchar*)NULL; in TestPlayUri()
153 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayUri()
155 audioSource.pFormat = (void *)&mime; in TestPlayUri()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp74 const char *mime; in initFromDataSource() local
75 CHECK(meta->findCString(kKeyMIMEType, &mime)); in initFromDataSource()
79 if (!strncasecmp(mime, "audio/", 6)) { in initFromDataSource()
83 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { in initFromDataSource()
89 } else if (!strncasecmp(mime, "video/", 6)) { in initFromDataSource()
DNuPlayerDecoder.cpp44 AString mime; in configure() local
45 CHECK(format->findString("mime", &mime)); in configure()
68 bool needDedicatedLooper = !strncasecmp(mime.c_str(), "video/", 6); in configure()

12345