Home
last modified time | relevance | path

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

1234567

/frameworks/av/media/libstagefright/
DMediaExtractor.cpp91 virtual sp<DecryptHandle> DrmInitialization(const char *mime);
138 sp<DecryptHandle> RemoteDataSource::DrmInitialization(const char *mime) { in DrmInitialization() argument
139 return mSource->DrmInitialization(mime); in DrmInitialization()
144 const sp<DataSource> &source, const char *mime) { in Create() argument
145 ALOGV("MediaExtractor::Create %s", mime); in Create()
152 return CreateFromService(source, mime); in Create()
181 … sp<IMediaExtractor> ex = mediaExService->makeExtractor(RemoteDataSource::wrap(source), mime); in Create()
192 const sp<DataSource> &source, const char *mime) { in CreateFromService() argument
194 ALOGV("MediaExtractor::CreateFromService %s", mime); in CreateFromService()
200 if (mime == NULL) { in CreateFromService()
[all …]
DMediaCodecListOverrides.cpp93 bool isEncoder, AString mime, sp<MediaCodecInfo::Capabilities> caps) { in getMeasureFormat() argument
95 format->setString("mime", mime); in getMeasureFormat()
104 if (mime.startsWith("video/")) { in getMeasureFormat()
131 AString name, AString mime, sp<MediaCodecInfo::Capabilities> caps) { in doProfileEncoderInputBuffers() argument
132 ALOGV("doProfileEncoderInputBuffers: name %s, mime %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
134 sp<AMessage> format = getMeasureFormat(true /* isEncoder */, mime, caps); in doProfileEncoderInputBuffers()
156 ALOGE("Failed to configure codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
164 ALOGE("Failed to create surface: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
179 ALOGW("Failed to release codec: %s with mime: %s", name.c_str(), mime.c_str()); in doProfileEncoderInputBuffers()
186 bool isEncoder, AString name, AString mime, sp<MediaCodecInfo::Capabilities> caps) { in doProfileCodecs() argument
[all …]
DStagefrightMetadataRetriever.cpp247 const char *mime; in extractVideoFrame() local
248 bool success = format->findCString(kKeyMIMEType, &mime); in extractVideoFrame()
254 bool isAvcOrHevc = !strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC) in extractVideoFrame()
255 || !strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_HEVC); in extractVideoFrame()
366 AString mime; in extractVideoFrame() local
367 CHECK(outputFormat->findString("mime", &mime)); in extractVideoFrame()
370 (long long)thumbNailTime, (long long)timeUs, mime.c_str()); in extractVideoFrame()
469 const char *mime; in getFrameAtTime() local
470 CHECK(meta->findCString(kKeyMIMEType, &mime)); in getFrameAtTime()
472 if (!strncasecmp(mime, "video/", 6)) { in getFrameAtTime()
[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()
242 DRMExtractor::DRMExtractor(const sp<DataSource> &source, const char* mime) in DRMExtractor() argument
246 mOriginalExtractor = MediaExtractor::Create(source, mime); in DRMExtractor()
DUtils.cpp605 const char *mime; in convertMetaDataToMessage() local
606 if (!meta->findCString(kKeyMIMEType, &mime)) { in convertMetaDataToMessage()
611 msg->setString("mime", mime); in convertMetaDataToMessage()
640 if (!strncasecmp("video/", mime, 6)) { in convertMetaDataToMessage()
685 } else if (!strncasecmp("audio/", mime, 6)) { in convertMetaDataToMessage()
949 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in convertMetaDataToMessage()
951 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG2)) { in convertMetaDataToMessage()
956 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) { in convertMetaDataToMessage()
1250 AString mime; in convertMessageToMetaData() local
1251 if (msg->findString("mime", &mime)) { in convertMessageToMetaData()
[all …]
DMPEG4Writer.cpp118 static const char *getFourCCForMime(const char *mime);
493 const char *MPEG4Writer::Track::getFourCCForMime(const char *mime) { in getFourCCForMime() argument
494 if (mime == NULL) { in getFourCCForMime()
497 if (!strncasecmp(mime, "audio/", 6)) { in getFourCCForMime()
498 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_AMR_NB, mime)) { in getFourCCForMime()
500 } else if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_AMR_WB, mime)) { in getFourCCForMime()
502 } else if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_AAC, mime)) { in getFourCCForMime()
505 } else if (!strncasecmp(mime, "video/", 6)) { in getFourCCForMime()
506 if (!strcasecmp(MEDIA_MIMETYPE_VIDEO_MPEG4, mime)) { in getFourCCForMime()
508 } else if (!strcasecmp(MEDIA_MIMETYPE_VIDEO_H263, mime)) { in getFourCCForMime()
[all …]
DCallbackDataSource.cpp112 sp<DecryptHandle> CallbackDataSource::DrmInitialization(const char *mime) { in DrmInitialization() argument
113 return mIDataSource->DrmInitialization(mime); in DrmInitialization()
186 sp<DecryptHandle> TinyCacheSource::DrmInitialization(const char *mime) { in DrmInitialization() argument
191 return mSource->DrmInitialization(mime); in DrmInitialization()
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp140 MediaCodecInfo::getCapabilitiesFor(const char *mime) const { in getCapabilitiesFor()
141 ssize_t ix = getCapabilityIndex(mime); in getCapabilitiesFor()
166 AString mime = AString::FromParcel(parcel); in FromParcel() local
171 info->mCaps.add(mime, caps); in FromParcel()
192 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mime) const { in getCapabilityIndex()
194 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) { in getCapabilityIndex()
201 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) in MediaCodecInfo() argument
205 if (mime != NULL) { in MediaCodecInfo()
206 addMime(mime); in MediaCodecInfo()
211 status_t MediaCodecInfo::addMime(const char *mime) { in addMime() argument
[all …]
DIMediaExtractorService.cpp41 virtual sp<IMediaExtractor> makeExtractor(const sp<IDataSource> &source, const char *mime) { in makeExtractor() argument
45 if (mime != NULL) { in makeExtractor()
46 data.writeCString(mime); in makeExtractor()
78 const char *mime = data.readCString(); in onTransact() local
79 sp<IMediaExtractor> ex = makeExtractor(source, mime); in onTransact()
DIDataSource.cpp90 virtual sp<DecryptHandle> DrmInitialization(const char *mime) { in DrmInitialization()
93 if (mime == NULL) { in DrmInitialization()
97 data.writeCString(mime); in DrmInitialization()
174 const char *mime = NULL; in onTransact() local
177 mime = data.readCString(); in onTransact()
179 sp<DecryptHandle> handle = DrmInitialization(mime); in onTransact()
DIMediaExtractor.cpp184 String8 mime; member
197 str.append(mime); in toString()
243 const char *mime) { in registerMediaExtractor() argument
245 ex.mime = mime == NULL ? "NULL" : mime; in registerMediaExtractor()
/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/include/media/
DMediaCodecInfo.h91 const sp<Capabilities> getCapabilitiesFor(const char *mime) const;
112 ssize_t getCapabilityIndex(const char *mime) const;
125 MediaCodecInfo(AString name, bool encoder, const char *mime);
127 status_t addMime(const char *mime);
128 status_t updateMime(const char *mime);
134 void removeMime(const char *mime);
/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/services/mediaextractor/
DMediaExtractorService.cpp30 const sp<IDataSource> &remoteSource, const char *mime) { in makeExtractor() argument
31 ALOGV("@@@ MediaExtractorService::makeExtractor for %s", mime); in makeExtractor()
35 sp<IMediaExtractor> ret = MediaExtractor::CreateFromService(localSource, mime); in makeExtractor()
42 registerMediaExtractor(ret, localSource, mime); in makeExtractor()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp177 const char *mime; in playSource() local
178 CHECK(meta->findCString(kKeyMIMEType, &mime)); in playSource()
181 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) { in playSource()
381 if (!strncasecmp("video/", mime, 6)) { in playSource()
392 } else if (!strncasecmp("audio/", mime, 6)) { in playSource()
432 const char *mime; in DetectSyncSource() local
433 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); in DetectSyncSource()
435 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { in DetectSyncSource()
437 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) { in DetectSyncSource()
440 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_H263)) { 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()
119 AString mime = tmp; in onMessageReceived() local
121 ALOGI("MediaPuller(%s) stopping.", mime.c_str()); in onMessageReceived()
123 ALOGI("MediaPuller(%s) stopped.", mime.c_str()); in onMessageReceived()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java618 final String mime = (String)map.get(MediaFormat.KEY_MIME); in isFormatSupported() local
621 if (mime != null && !mMime.equalsIgnoreCase(mime)) { in isFormatSupported()
845 String mime, int profile, int level) { in createFromProfileLevel() argument
850 defaultFormat.setString(MediaFormat.KEY_MIME, mime); in createFromProfileLevel()
1065 String mime = mParent.getMimeType(); in applyLevelLimits() local
1067 if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_MPEG)) { in applyLevelLimits()
1074 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in applyLevelLimits()
1078 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AMR_WB)) { in applyLevelLimits()
1082 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_AAC)) { in applyLevelLimits()
1091 } else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_VORBIS)) { in applyLevelLimits()
[all …]
DMediaFormat.java917 String mime, in createAudioFormat() argument
921 format.setString(KEY_MIME, mime); in createAudioFormat()
937 String mime, in createSubtitleFormat() argument
940 format.setString(KEY_MIME, mime); in createSubtitleFormat()
953 String mime, in createVideoFormat() argument
957 format.setString(KEY_MIME, mime); in createVideoFormat()
/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/base/media/jni/
Dandroid_media_MediaCrypto.cpp98 bool JCrypto::requiresSecureDecoderComponent(const char *mime) const { in requiresSecureDecoderComponent()
103 return mCrypto->requiresSecureDecoderComponent(mime); in requiresSecureDecoderComponent()
268 const char *mime = env->GetStringUTFChars(mimeObj, NULL); in android_media_MediaCrypto_requiresSecureDecoderComponent() local
270 if (mime == NULL) { in android_media_MediaCrypto_requiresSecureDecoderComponent()
274 bool result = crypto->requiresSecureDecoderComponent(mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
276 env->ReleaseStringUTFChars(mimeObj, mime); in android_media_MediaCrypto_requiresSecureDecoderComponent()
277 mime = NULL; in android_media_MediaCrypto_requiresSecureDecoderComponent()
/frameworks/wilhelm/tests/mimeUri/
DslesTest_playStates.cpp58 SLDataFormat_MIME mime; in TestPlayUri() local
112 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayUri()
115 mime.mimeType = (SLchar*)NULL; in TestPlayUri()
116 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayUri()
118 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/wilhelm/tests/examples/
DslesTestPlayFdPath.cpp82 SLDataFormat_MIME mime; in TestPlayPathFromFD() local
141 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayPathFromFD()
144 mime.mimeType = (SLchar*)NULL; in TestPlayPathFromFD()
145 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayPathFromFD()
147 audioSource.pFormat = (void*)&mime; in TestPlayPathFromFD()
/frameworks/wilhelm/tests/
DmimeUri_test.cpp107 SLDataFormat_MIME mime; in TestPlayUri() local
148 mime.formatType = SL_DATAFORMAT_MIME; in TestPlayUri()
149 mime.mimeType = (SLchar*)NULL; in TestPlayUri()
150 mime.containerType = SL_CONTAINERTYPE_UNSPECIFIED; in TestPlayUri()
152 audioSource.pFormat = (void *)&mime; in TestPlayUri()

1234567