Lines Matching refs:mime
54 const sp<DataSource> &source, const char *mime) {
58 if (mime == NULL) {
66 mime = tmp.string();
68 mime, confidence);
72 // DRM MIME type syntax is "drm+type+original" where
74 // original is the content's cleartext MIME type
75 if (!strncmp(mime, "drm+", 4)) {
76 const char *originalMime = strchr(mime+4, '+');
82 if (!strncmp(mime, "drm+es_based+", 13)) {
85 } else if (!strncmp(mime, "drm+container_based+", 20)) {
86 mime = originalMime;
94 if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG4)
95 || !strcasecmp(mime, "audio/mp4")) {
97 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG)) {
99 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_NB)
100 || !strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_WB)) {
102 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_FLAC)) {
104 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_WAV)) {
106 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_OGG)) {
108 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MATROSKA)) {
110 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG2TS)) {
112 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_WVM)) {
115 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AAC_ADTS)) {
117 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_CONTAINER_MPEG2PS)) {