1 /* 2 * Copyright (C) 2009 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include <media/stagefright/foundation/MediaDefs.h> 18 19 namespace android { 20 21 const char *MEDIA_MIMETYPE_IMAGE_JPEG = "image/jpeg"; 22 const char *MEDIA_MIMETYPE_IMAGE_ANDROID_HEIC = "image/vnd.android.heic"; 23 const char *MEDIA_MIMETYPE_IMAGE_AVIF = "image/avif"; 24 25 const char *MEDIA_MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8"; 26 const char *MEDIA_MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9"; 27 const char *MEDIA_MIMETYPE_VIDEO_AV1 = "video/av01"; 28 const char *MEDIA_MIMETYPE_VIDEO_AVC = "video/avc"; 29 const char *MEDIA_MIMETYPE_VIDEO_HEVC = "video/hevc"; 30 const char *MEDIA_MIMETYPE_VIDEO_MPEG4 = "video/mp4v-es"; 31 const char *MEDIA_MIMETYPE_VIDEO_H263 = "video/3gpp"; 32 const char *MEDIA_MIMETYPE_VIDEO_MPEG2 = "video/mpeg2"; 33 const char *MEDIA_MIMETYPE_VIDEO_RAW = "video/raw"; 34 const char *MEDIA_MIMETYPE_VIDEO_DOLBY_VISION = "video/dolby-vision"; 35 const char *MEDIA_MIMETYPE_VIDEO_SCRAMBLED = "video/scrambled"; 36 const char *MEDIA_MIMETYPE_VIDEO_DIVX = "video/divx"; 37 const char *MEDIA_MIMETYPE_VIDEO_DIVX3 = "video/divx3"; 38 const char *MEDIA_MIMETYPE_VIDEO_XVID = "video/xvid"; 39 const char *MEDIA_MIMETYPE_VIDEO_MJPEG = "video/x-motion-jpeg"; 40 41 const char *MEDIA_MIMETYPE_AUDIO_AMR_NB = "audio/3gpp"; 42 const char *MEDIA_MIMETYPE_AUDIO_AMR_WB = "audio/amr-wb"; 43 const char *MEDIA_MIMETYPE_AUDIO_MPEG = "audio/mpeg"; 44 const char *MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_I = "audio/mpeg-L1"; 45 const char *MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_II = "audio/mpeg-L2"; 46 const char *MEDIA_MIMETYPE_AUDIO_MIDI = "audio/midi"; 47 const char *MEDIA_MIMETYPE_AUDIO_AAC = "audio/mp4a-latm"; 48 const char *MEDIA_MIMETYPE_AUDIO_QCELP = "audio/qcelp"; 49 const char *MEDIA_MIMETYPE_AUDIO_VORBIS = "audio/vorbis"; 50 const char *MEDIA_MIMETYPE_AUDIO_OPUS = "audio/opus"; 51 const char *MEDIA_MIMETYPE_AUDIO_G711_ALAW = "audio/g711-alaw"; 52 const char *MEDIA_MIMETYPE_AUDIO_G711_MLAW = "audio/g711-mlaw"; 53 const char *MEDIA_MIMETYPE_AUDIO_RAW = "audio/raw"; 54 const char *MEDIA_MIMETYPE_AUDIO_FLAC = "audio/flac"; 55 const char *MEDIA_MIMETYPE_AUDIO_AAC_ADTS = "audio/aac-adts"; 56 const char *MEDIA_MIMETYPE_AUDIO_MSGSM = "audio/gsm"; 57 const char *MEDIA_MIMETYPE_AUDIO_AC3 = "audio/ac3"; 58 const char *MEDIA_MIMETYPE_AUDIO_EAC3 = "audio/eac3"; 59 const char *MEDIA_MIMETYPE_AUDIO_EAC3_JOC = "audio/eac3-joc"; 60 const char *MEDIA_MIMETYPE_AUDIO_AC4 = "audio/ac4"; 61 const char *MEDIA_MIMETYPE_AUDIO_MPEGH_MHA1 = "audio/mha1"; 62 const char *MEDIA_MIMETYPE_AUDIO_MPEGH_MHM1 = "audio/mhm1"; 63 const char *MEDIA_MIMETYPE_AUDIO_SCRAMBLED = "audio/scrambled"; 64 const char *MEDIA_MIMETYPE_AUDIO_ALAC = "audio/alac"; 65 const char *MEDIA_MIMETYPE_AUDIO_WMA = "audio/x-ms-wma"; 66 const char *MEDIA_MIMETYPE_AUDIO_MS_ADPCM = "audio/x-adpcm-ms"; 67 const char *MEDIA_MIMETYPE_AUDIO_DVI_IMA_ADPCM = "audio/x-adpcm-dvi-ima"; 68 69 70 const char *MEDIA_MIMETYPE_CONTAINER_MPEG4 = "video/mp4"; 71 const char *MEDIA_MIMETYPE_CONTAINER_WAV = "audio/x-wav"; 72 const char *MEDIA_MIMETYPE_CONTAINER_OGG = "audio/ogg"; 73 const char *MEDIA_MIMETYPE_CONTAINER_MATROSKA = "video/x-matroska"; 74 const char *MEDIA_MIMETYPE_CONTAINER_MPEG2TS = "video/mp2ts"; 75 const char *MEDIA_MIMETYPE_CONTAINER_AVI = "video/avi"; 76 const char *MEDIA_MIMETYPE_CONTAINER_MPEG2PS = "video/mp2p"; 77 const char *MEDIA_MIMETYPE_CONTAINER_HEIF = "image/heif"; 78 79 const char *MEDIA_MIMETYPE_TEXT_3GPP = "text/3gpp-tt"; 80 const char *MEDIA_MIMETYPE_TEXT_SUBRIP = "application/x-subrip"; 81 const char *MEDIA_MIMETYPE_TEXT_VTT = "text/vtt"; 82 const char *MEDIA_MIMETYPE_TEXT_CEA_608 = "text/cea-608"; 83 const char *MEDIA_MIMETYPE_TEXT_CEA_708 = "text/cea-708"; 84 const char *MEDIA_MIMETYPE_DATA_TIMED_ID3 = "application/x-id3v4"; 85 86 } // namespace android 87