Searched defs:mime (Results 51 - 75 of 91) sorted by relevance

1234

/frameworks/av/media/libstagefright/
H A DMediaCodecSource.cpp85 const char *mime; local
86 CHECK(meta->findCString(kKeyMIMEType, &mime));
88 mIsAudio = !strncasecmp(mime, "audio/", 6);
345 AString mime; local
346 CHECK(mOutputFormat->findString("mime", &mime));
348 if (!strncasecmp("video/", mime.c_str(), 6)) {
391 CHECK(mOutputFormat->findString("mime", &outputMIME));
H A DNuMediaExtractor.cpp110 // at the container mime type.
192 const char *mime; local
193 CHECK(meta->findCString(kKeyMIMEType, &mime));
194 ALOGV("track of type '%s' does not publish bitrate", mime);
244 const char *mime; local
245 CHECK(meta->findCString(kKeyMIMEType, &mime));
247 (*format)->setString("mime", mime);
295 const char *mime; local
296 CHECK(source->getFormat()->findCString(kKeyMIMEType, &mime));
[all...]
H A DStagefrightMetadataRetriever.cpp124 const char *mime; local
125 CHECK(trackMeta->findCString(kKeyMIMEType, &mime));
128 if (QueryCodecs(client->interface(), mime,
245 const char *mime; local
246 CHECK(trackMeta->findCString(kKeyMIMEType, &mime));
248 ALOGV("thumbNailTime = %" PRId64 " us, timeUs = %" PRId64 " us, mime = %s",
249 thumbNailTime, timeUs, mime);
356 const char *mime; local
357 CHECK(meta->findCString(kKeyMIMEType, &mime));
359 if (!strncasecmp(mime, "vide
542 const char *mime; local
[all...]
H A DMP3Extractor.cpp639 String8 mime; local
640 const void *data = id3.getAlbumArt(&dataSize, &mime);
644 meta->setCString(kKeyAlbumArtMIME, mime.string());
H A DMPEG2TSWriter.cpp105 const char *mime; local
106 CHECK(meta->findCString(kKeyMIMEType, &mime));
108 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) {
110 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
151 const char *mime; local
152 CHECK(meta->findCString(kKeyMIMEType, &mime));
154 if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC)) {
181 if (strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
543 const char *mime; local
544 CHECK(meta->findCString(kKeyMIMEType, &mime));
[all...]
H A DMediaCodecList.cpp138 AString mime = info.mCaps.keyAt(type_ix); local
141 ALOGV("%s codec info for %s: %s", info.mName.c_str(), mime.c_str(),
582 // fail. Handle this gracefully (by not reporting such mime).
H A DNuCachedSource2.cpp662 sp<DecryptHandle> NuCachedSource2::DrmInitialization(const char* mime) { argument
663 return mSource->DrmInitialization(mime);
H A DUtils.cpp77 const char *mime; local
78 CHECK(meta->findCString(kKeyMIMEType, &mime));
81 msg->setString("mime", mime);
98 if (!strncasecmp("video/", mime, 6)) {
131 } else if (!strncasecmp("audio/", mime, 6)) {
464 AString mime; local
465 if (msg->findString("mime", &mime)) {
466 meta->setCString(kKeyMIMEType, mime
632 const char* mime; member in struct:android::mime_conv_t
697 const char *mime; local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DARTPWriter.cpp133 const char *mime; local
134 CHECK(mSource->getFormat()->findCString(kKeyMIMEType, &mime));
137 if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
139 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_H263)) {
141 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_NB)) {
143 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_WB)) {
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp381 const char *mime; local
382 source->getFormat()->findCString(kKeyMIMEType, &mime);
387 if (!strncasecmp(mime, vp8, strlen(vp8))) {
389 } else if (!strncasecmp(mime, vorbis, strlen(vorbis))) {
392 ALOGE("Track (%s) other than %s or %s is not supported", mime, vp8, vorbis);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp65 AString mime; local
66 CHECK(mOutputFormat->findString("mime", &mime));
68 if (!strncasecmp("video/", mime.c_str(), 6)) {
71 mIsH264 = !strcasecmp(mime.c_str(), MEDIA_MIMETYPE_VIDEO_AVC);
72 } else if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime.c_str())) {
144 CHECK(mOutputFormat->findString("mime", &outputMIME));
424 AString mime; local
425 CHECK(mOutputFormat->findString("mime", &mime));
[all...]
H A DTSPacketizer.cpp97 CHECK(format->findString("mime", &mMIME));
383 AString mime; local
384 CHECK(format->findString("mime", &mime));
387 bool isVideo = !strncasecmp("video/", mime.c_str(), 6);
388 bool isAudio = !strncasecmp("audio/", mime.c_str(), 6);
402 if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_VIDEO_AVC)) {
406 } else if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_AUDIO_AAC)) {
410 } else if (!strcasecmp(mime.c_str(), MEDIA_MIMETYPE_AUDIO_RAW)) {
/frameworks/wilhelm/src/android/
H A Dandroid_AudioSfDecoder.cpp241 const char *mime; local
242 CHECK(meta->findCString(kKeyMIMEType, &mime));
244 if (!strncasecmp("audio/", mime, 6)) {
245 if (isSupportedCodec(mime)) {
248 if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_RAW, mime)) {
792 bool AudioSfDecoder::isSupportedCodec(const char* mime) { argument
795 if (!strcasecmp(mime, kPlaybackOnlyCodecs[i])) {
/frameworks/av/cmds/stagefright/
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)) {
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 Dstagefright.cpp167 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...]
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp604 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 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
/frameworks/av/drm/libdrmframework/
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.cpp188 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/libmediaplayerservice/nuplayer/
H A DNuPlayerDecoder.cpp127 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 DGenericSource.cpp146 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)) {
501 // be, remember this mime typ
789 const char *mime; local
1086 const char *mime; local
1235 const char *mime; local
1408 const char *mime; local
[all...]
H A DNuPlayerRenderer.cpp1429 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);
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp83 const char *mime, OMX_U32 minCompressionRatio) {
136 def.format.video.cMIMEType = const_cast<char *>(mime);
81 initPorts( OMX_U32 numInputBuffers, OMX_U32 numOutputBuffers, OMX_U32 outputBufferSize, const char *mime, OMX_U32 minCompressionRatio) argument
/frameworks/av/media/libstagefright/omx/tests/
H A DOMXHarness.cpp480 static const char *GetURLForMime(const char *mime) { argument
508 if (!strcasecmp(kMimeToURL[i].mMime, mime)) {
516 static sp<MediaSource> CreateSourceForMime(const char *mime) { argument
517 const char *url = GetURLForMime(mime);
536 if (!strcasecmp(mime, trackMime)) {
574 const char *mime = GetMimeFromComponentRole(componentRole); local
576 if (!mime) {
583 sp<MediaSource> source = CreateSourceForMime(mime);
588 mime, componentRole);
593 sp<MediaSource> seekSource = CreateSourceForMime(mime);
[all...]
/frameworks/base/media/java/android/media/
H A DMediaFormat.java127 * A key describing the mime type of the MediaFormat.
130 public static final String KEY_MIME = "mime";
640 * @param mime The mime type of the content.
645 String mime,
649 format.setString(KEY_MIME, mime);
658 * @param mime The mime type of the content.
665 String mime,
668 format.setString(KEY_MIME, mime);
644 createAudioFormat( String mime, int sampleRate, int channelCount) argument
664 createSubtitleFormat( String mime, String language) argument
680 createVideoFormat( String mime, int width, int height) argument
[all...]

Completed in 2794 milliseconds

1234