/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 299 AString mime; local 300 CHECK(format->findString("mime", &mime)); 302 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6); 304 if (!haveAudio && !strncasecmp(mime.c_str(), "audio/", 6)) { 321 mCodecLooper, mime.c_str(), false /* encoder */); 580 AString mime; local 581 CHECK(format->findString("mime", &mime)); 583 if (!strncasecmp(mime [all...] |
H A D | codec.cpp | 94 AString mime; local 95 CHECK(format->findString("mime", &mime)); 97 bool isAudio = !strncasecmp(mime.c_str(), "audio/", 6); 98 bool isVideo = !strncasecmp(mime.c_str(), "video/", 6); 121 looper, mime.c_str(), false /* encoder */);
|
H A D | muxer.cpp | 97 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);
|
H A D | sf2.cpp | 127 const char *mime; local 128 CHECK(meta->findCString(kKeyMIMEType, &mime)); 131 mime, 6)) { 134 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { 292 const char *mime; local 293 CHECK(meta->findCString(kKeyMIMEType, &mime)); 296 msg->setString("mime", mime); 298 if (!strncasecmp("video/", mime, 6)) { 306 CHECK(!strncasecmp("audio/", mime, [all...] |
H A D | stagefright.cpp | 167 const char *mime; local 168 CHECK(meta->findCString(kKeyMIMEType, &mime)); 171 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) { 189 fprintf(stderr, "Failed to instantiate decoder for '%s'.\n", mime); 375 if (!strncasecmp("video/", mime, 6)) { 386 } else if (!strncasecmp("audio/", mime, 6)) { 426 const char *mime; local 427 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime)); 429 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) { 431 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_MPEG 1011 const char *mime; local 1027 const char *mime; local 1055 const char *mime; local [all...] |
H A D | stream.cpp | 177 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 D | DrmEngineBase.cpp | 124 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 D | IDrmManagerService.cpp | 604 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 614 if (mime) { 615 mimeType = mime; 630 int uniqueId, const char* uri, const char* mime) { 632 ALOGV("Entering BpDrmManagerService::openDecryptSession: mime=%s", mime? mime: "NULL"); 639 if (mime) { 640 mimeType = mime; 1309 const String8 mime local 603 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 629 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument 1329 const String8 mime = data.readString8(); local [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManager.cpp | 405 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 D | DrmManagerService.cpp | 209 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 212 return mDrmManager->openDecryptSession(uniqueId, fd, offset, length, mime); 219 int uniqueId, const char* uri, const char* mime) { 222 return mDrmManager->openDecryptSession(uniqueId, uri, mime); 208 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 218 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 120 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 D | DrmManagerClientImpl.cpp | 261 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
|
H A D | NoOpDrmManagerClientImpl.cpp | 111 int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) { 116 int uniqueId, const char* uri, const char* mime) { 110 openDecryptSession( int uniqueId, int fd, off64_t offset, off64_t length, const char* mime) argument 115 openDecryptSession( int uniqueId, const char* uri, const char* mime) argument
|
/frameworks/av/drm/libdrmframework/plugins/common/include/ |
H A D | DrmEngineBase.h | 84 int fd, off64_t offset, off64_t length, const char* mime); 88 const char* uri, const char* mime); 221 * Retrieves the mime type embedded inside the original content 227 * Returns mime-type of the original content, such as "video/mpeg" 395 * @param[in] mime Mime type of the protected content 396 * drm plugin may do some optimization since the mime type is known. 403 const char* mime) { 427 * @param[in] mime Mime type of the protected content. The corresponding 428 * drm plugin may do some optimization since the mime type is known. 434 const char* uri, const char* mime) { 400 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument 432 onOpenDecryptSession( int uniqueId, DecryptHandle* decryptHandle, const char* uri, const char* mime) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 188 bool FwdLockEngine::IsMimeTypeSupported(const String8& mime) { argument 189 String8 tmp(mime); 344 * 1. path and mime type both are not empty strings (meaning unavailable) else content is unknown
|
/frameworks/av/media/libmedia/ |
H A D | ICrypto.cpp | 86 const char *mime) const { 89 data.writeCString(mime); 228 const char *mime = data.readCString(); local 229 reply->writeInt32(requiresSecureDecoderComponent(mime));
|
H A D | MediaCodecInfo.cpp | 125 MediaCodecInfo::getCapabilitiesFor(const char *mime) const { 126 ssize_t ix = getCapabilityIndex(mime); 151 AString mime = AString::FromParcel(parcel); local 154 info->mCaps.add(mime, caps); 175 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mime) const { 177 if (mCaps.keyAt(ix).equalsIgnoreCase(mime)) { 184 MediaCodecInfo::MediaCodecInfo(AString name, bool encoder, const char *mime) argument 188 if (mime != NULL) { 189 addMime(mime); 194 status_t MediaCodecInfo::addMime(const char *mime) { argument 209 removeMime(const char *mime) argument [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 896 const char *mime; local 900 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_NB); 903 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AMR_WB); 906 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC); 910 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC); 914 format->setString("mime", MEDIA_MIMETYPE_AUDIO_AAC); 1456 format->setString("mime", MEDIA_MIMETYPE_VIDEO_H263); 1460 format->setString("mime", MEDIA_MIMETYPE_VIDEO_MPEG4); 1464 format->setString("mime", MEDIA_MIMETYPE_VIDEO_AVC); 1468 format->setString("mime", MEDIA_MIMETYPE_VIDEO_VP [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 146 ALOGE("unsupported widevine mime: %s", mimeType.string()); 177 // Check mime to see if we actually have a widevine source. 208 const char *mime; local 209 CHECK(meta->findCString(kKeyMIMEType, &mime)); 211 // Do the string compare immediately with "mime", 212 // we can't assume "mime" would stay valid after another 215 if (!strncasecmp(mime, "audio/", 6)) { 222 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_VORBIS)) { 228 } else if (!strncasecmp(mime, "video/", 6)) { 532 // be, remember this mime typ 820 const char *mime; local 1125 const char *mime; local 1274 const char *mime; local 1447 const char *mime; local [all...] |
H A D | NuPlayer.cpp | 356 AString mime; local 357 CHECK(format->findString("mime", &mime)); 364 reply->writeString16(String16(mime.c_str())); 1218 AString mime; local 1219 CHECK(format->findString("mime", &mime)); 1939 AString mime; local 1940 CHECK(buffer->meta()->findString("mime", &mime)); [all...] |
H A D | NuPlayerDecoder.cpp | 127 AString mime; local 128 CHECK(format->findString("mime", &mime)); 130 mIsAudio = !strncasecmp("audio/", mime.c_str(), 6); 131 mIsVideoAVC = !strcasecmp(MEDIA_MIMETYPE_VIDEO_AVC, mime.c_str()); 138 mComponentName = mime; 142 mCodec = MediaCodec::CreateByType(mCodecLooper, mime.c_str(), false /* encoder */); 156 (secure ? "secure " : ""), mime.c_str()); 816 AString mime; local 817 if (!targetFormat->findString("mime", [all...] |
H A D | NuPlayerRenderer.cpp | 1429 AString mime; local 1430 CHECK(format->findString("mime", &mime)); 1431 status_t err = mapMimeToAudioFormat(audioFormat, mime.c_str()); 1434 ALOGE("Couldn't map mime \"%s\" to a valid " 1435 "audio_format", mime.c_str()); 1439 mime.c_str(), audioFormat);
|
H A D | RTSPSource.cpp | 543 const char *mime; local 544 CHECK(format->findCString(kKeyMIMEType, &mime)); 546 if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG2TS)) { 554 bool isAudio = !strncasecmp(mime, "audio/", 6); 555 bool isVideo = !strncasecmp(mime, "video/", 6);
|
/frameworks/av/media/libstagefright/ |
H A D | AACWriter.cpp | 100 const char *mime; local 101 CHECK(meta->findCString(kKeyMIMEType, &mime)); 103 CHECK(!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC));
|
H A D | ACodec.cpp | 1072 bool isEncoder, const char *mime) { 1074 const char *mime; member in struct:android::MimeToRole 1131 if (!strcasecmp(mime, kMimeToRole[i].mime)) { 1169 const char *mime, const sp<AMessage> &msg) { 1180 status_t err = setComponentRole(encoder /* isEncoder */, mime); 1188 if (encoder && strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC) 1237 int32_t video = !strncasecmp(mime, "video/", 6); 1444 err = setupVideoEncoder(mime, msg); 1446 err = setupVideoDecoder(mime, ms 1071 setComponentRole( bool isEncoder, const char *mime) argument 1168 configureCodec( const char *mime, const sp<AMessage> &msg) argument 2297 GetVideoCodingTypeFromMime( const char *mime, OMX_VIDEO_CODINGTYPE *codingType) argument 2313 GetMimeTypeForVideoCoding( OMX_VIDEO_CODINGTYPE codingType, AString *mime) argument 2329 setupVideoDecoder( const char *mime, const sp<AMessage> &msg, bool haveNativeWindow) argument 2396 setupVideoEncoder(const char *mime, const sp<AMessage> &msg) argument 3579 AString mime; local 3794 const char *mime = NULL; local 3845 AString mime; local 4846 AString mime; local 5048 AString mime; local [all...] |