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)) {
545 const char *mime;
546 CHECK(meta->findCString(kKeyMIMEType, &mime));
551 if (mapMimeToAudioFormat(info.format, mime) != OK) {
552 ALOGE(" Couldn't map mime type \"%s\" to a valid AudioSystem::audio_format !", mime);
555 ALOGV("Mime type \"%s\" mapped to audio_format %d", mime, info.format);
560 ALOGE("mime type \"%s\" not a known audio format", mime);
566 ALOGV("track of type '%s' does not publish sample rate", mime);
572 ALOGV("track of type '%s' does not publish channel mask", mime);
577 ALOGV("track of type '%s' does not publish channel count", mime);
586 ALOGV("track of type '%s' does not publish duration", mime);
592 ALOGV("track of type '%s' does not publish bitrate", mime);