Home | History | Annotate | Download | only in libstagefright

Lines Matching refs:mime

75     const char *mime;
76 CHECK(meta->findCString(kKeyMIMEType, &mime));
79 msg->setString("mime", mime);
91 if (!strncasecmp("video/", mime, 6)) {
105 } else if (!strncasecmp("audio/", mime, 6)) {
371 AString mime;
372 if (msg->findString("mime", &mime)) {
373 meta->setCString(kKeyMIMEType, mime.c_str());
375 ALOGW("did not find mime type");
388 if (mime.startsWith("video/")) {
404 } else if (mime.startsWith("audio/")) {
440 if (mime.startsWith("video/")) { // do we need to be stricter than this?
447 } else if (mime.startsWith("audio/")) {
515 const char* mime;
529 status_t mapMimeToAudioFormat( audio_format_t& format, const char* mime )
532 while (p->mime != NULL) {
533 if (0 == strcasecmp(mime, p->mime)) {
546 const char *mime;
547 CHECK(meta->findCString(kKeyMIMEType, &mime));
552 if (mapMimeToAudioFormat(info.format, mime) != OK) {
553 ALOGE(" Couldn't map mime type \"%s\" to a valid AudioSystem::audio_format !", mime);
556 ALOGV("Mime type \"%s\" mapped to audio_format %d", mime, info.format);
561 ALOGE("mime type \"%s\" not a known audio format", mime);
567 ALOGV("track of type '%s' does not publish sample rate", mime);
573 ALOGV("track of type '%s' does not publish channel mask", mime);
578 ALOGV("track of type '%s' does not publish channel count", mime);
587 ALOGV("track of type '%s' does not publish duration", mime);
593 ALOGV("track of type '%s' does not publish bitrate", mime);