Searched defs:mime (Results 1 - 25 of 96) sorted by path

1234

/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp296 AString mime; local
297 CHECK(format->findString("mime", &mime));
299 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6);
301 if (!haveAudio && !strncasecmp(mime.c_str(), "audio/", 6)) {
318 mCodecLooper, mime.c_str(), false /* encoder */);
577 AString mime; local
578 CHECK(format->findString("mime", &mime));
580 if (!strncasecmp(mime
[all...]
H A Dcodec.cpp97 AString mime; local
98 CHECK(format->findString("mime", &mime));
100 bool isAudio = !strncasecmp(mime.c_str(), "audio/", 6);
101 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6);
124 looper, mime.c_str(), false /* encoder */);
H A Dmediafilter.cpp336 AString mime; local
337 CHECK(format->findString("mime", &mime));
338 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6);
356 looper, mime.c_str(), false /* encoder */);
H A Dmuxer.cpp107 AString mime; local
108 CHECK(format->findString("mime", &mime));
110 bool isAudio = !strncasecmp(mime.c_str(), "audio/", 6);
111 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6);
H A Dsf2.cpp127 const char *mime; local
128 CHECK(meta->findCString(kKeyMIMEType, &mime));
131 mime, 6)) {
134 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) {
291 const char *mime; local
292 CHECK(meta->findCString(kKeyMIMEType, &mime));
295 msg->setString("mime", mime);
297 if (!strncasecmp("video/", mime, 6)) {
305 CHECK(!strncasecmp("audio/", mime,
[all...]
H A Dstagefright.cpp177 const char *mime; local
178 CHECK(meta->findCString(kKeyMIMEType, &mime));
181 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) {
381 if (!strncasecmp("video/", mime, 6)) {
392 } else if (!strncasecmp("audio/", mime, 6)) {
432 const char *mime; local
433 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime));
435 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
437 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG4)) {
440 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_H26
1022 const char *mime; local
1041 const char *mime; local
1072 const char *mime; local
[all...]
H A Dstream.cpp177 const char *mime; local
178 CHECK(meta->findCString(kKeyMIMEType, &mime));
180 if (strncasecmp("video/", mime, 6) && strncasecmp("audio/", mime, 6)) {
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp124 int fd, off64_t offset, off64_t length, const char* mime) {
126 if (!mime || mime[0] == '\0') {
130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime);
135 const char* uri, const char* mime) {
136 if (!mime || mime[0] == '\0') {
139 return onOpenDecryptSession(uniqueId, decryptHandle, uri, mime);
122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
133 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri, const char* mime) argument
H A DIDrmManagerService.cpp607 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
617 if (mime) {
618 mimeType = mime;
633 int uniqueId, const char* uri, const char* mime) {
635 ALOGV("Entering BpDrmManagerService::openDecryptSession: mime=%s", mime? mime: "NULL");
642 if (mime) {
643 mimeType = mime;
1330 const String8 mime local
606 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
632 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
1350 const String8 mime = data.readString8(); local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp405 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
418 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
434 int uniqueId, const char* uri, const char* mime) {
446 result = rDrmEngine.openDecryptSession(uniqueId, handle, uri, mime);
404 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
433 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
H A DDrmManagerService.cpp266 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) {
269 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime);
276 int uniqueId, const char* uri, const char* mime) {
279 return mDrmManager->openDecryptSession(uniqueId, uri, mime);
265 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
275 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp120 int fd, off64_t offset, off64_t length, const char* mime) {
123 mUniqueId, fd, offset, length, mime);
127 const char* uri, const char* mime) {
130 mUniqueId, uri, mime);
119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument
126 openDecryptSession( const char* uri, const char* mime) argument
H A DDrmManagerClientImpl.cpp261 off64_t length, const char* mime) {
264 uniqueId, fd, offset, length, mime);
268 int uniqueId, const char* uri, const char* mime) {
272 handle = getDrmManagerService()->openDecryptSession(uniqueId, uri, mime);
259 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument
267 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp190 bool FwdLockEngine::IsMimeTypeSupported(const String8& mime) { argument
191 String8 tmp(mime);
349 * 1. path and mime type both are not empty strings (meaning unavailable) else content is unknown
/frameworks/av/include/media/stagefright/
H A DCodecBase.h76 const AString &name, const AString &mime, bool isEncoder,
75 queryCapabilities( const AString &name, const AString &mime, bool isEncoder, sp<MediaCodecInfo::Capabilities> *caps ) argument
/frameworks/av/media/libmedia/
H A DICrypto.cpp88 const char *mime) const {
91 data.writeCString(mime);
269 const char *mime = data.readCString(); local
270 if (mime == NULL) {
273 reply->writeInt32(requiresSecureDecoderComponent(mime));
H A DIDataSource.cpp90 virtual sp<DecryptHandle> DrmInitialization(const char *mime) { argument
93 if (mime == NULL) {
97 data.writeCString(mime);
174 const char *mime = NULL; local
177 mime = data.readCString();
179 sp<DecryptHandle> handle = DrmInitialization(mime);
H A DIMediaExtractor.cpp184 String8 mime; member in struct:android::__anon273
196 str.append(" for mime ");
197 str.append(mime);
243 const char *mime) {
245 ex.mime = mime == NULL ? "NULL" : mime;
240 registerMediaExtractor( const sp<IMediaExtractor> &extractor, const sp<DataSource> &source, const char *mime) argument
H A DIMediaExtractorService.cpp41 virtual sp<IMediaExtractor> makeExtractor(const sp<IDataSource> &source, const char *mime) { argument
45 if (mime != NULL) {
46 data.writeCString(mime);
75 const char *mime = data.readCString(); local
76 sp<IMediaExtractor> ex = makeExtractor(source, mime);
H A DMediaCodecInfo.cpp140 MediaCodecInfo::getCapabilitiesFor(const char *mime) const {
141 ssize_t ix = getCapabilityIndex(mime);
166 AString mime = AString::FromParcel(parcel); local
171 info->mCaps.add(mime, caps);
192 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mime) const {
194 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) {
201 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument
205 if (mime != NULL) {
206 addMime(mime);
211 status_t MediaCodecInfo::addMime(const char *mime) { argument
226 updateMime(const char *mime) argument
237 removeMime(const char *mime) argument
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp157 ALOGE("unsupported widevine mime: %s", mimeType.string());
199 // Check mime to see if we actually have a widevine source.
229 const char *mime; local
230 CHECK(meta->findCString(kKeyMIMEType, &mime));
232 // Do the string compare immediately with "mime",
233 // we can't assume "mime" would stay valid after another
236 if (!strncasecmp(mime, "audio/", 6)) {
243 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) {
249 } else if (!strncasecmp(mime, "video/", 6)) {
638 const char *mime; local
975 const char *mime; local
1123 const char *mime; local
1302 const char *mime; local
[all...]
H A DNuPlayer.cpp442 AString mime; local
443 if (!format->findString("mime", &mime)) {
446 // the mimetype on the Java end. We still write a placeholder mime to keep the
449 mime = "audio/";
451 mime = "video/";
466 reply->writeString16(String16(mime.c_str()));
1597 AString mime; local
1598 CHECK(format->findString("mime", &mime));
2387 AString mime; local
[all...]
H A DNuPlayerDecoder.cpp243 AString mime; local
244 CHECK(format->findString("mime", &mime));
246 mIsAudio = !strncasecmp("audio/", mime.c_str(), 6);
247 mIsVideoAVC = !strcasecmp(MEDIA_MIMETYPE_VIDEO_AVC, mime.c_str());
249 mComponentName = mime;
254 mCodecLooper, mime.c_str(), false /* encoder */, NULL /* err */, mPid);
268 (secure ? "secure " : ""), mime.c_str());
301 mStats->setString("mime", mime
973 AString mime; local
[all...]
H A DNuPlayerDriver.cpp663 AString mime; local
664 if (stats->findString("mime", &mime)) {
665 snprintf(buf, sizeof(buf), " mime(%s)\n", mime.c_str());
675 if (mime.startsWith("video/")) {
H A DNuPlayerRenderer.cpp1769 AString mime; local
1770 CHECK(format->findString("mime", &mime));
1771 status_t err = mapMimeToAudioFormat(audioFormat, mime.c_str());
1774 ALOGE("Couldn't map mime \"%s\" to a valid "
1775 "audio_format", mime.c_str());
1779 mime.c_str(), audioFormat);

Completed in 726 milliseconds

1234