Home | History | Annotate | Download | only in foundation
      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 
     24 const char *MEDIA_MIMETYPE_VIDEO_VP8 = "video/x-vnd.on2.vp8";
     25 const char *MEDIA_MIMETYPE_VIDEO_VP9 = "video/x-vnd.on2.vp9";
     26 const char *MEDIA_MIMETYPE_VIDEO_AV1 = "video/av01";
     27 const char *MEDIA_MIMETYPE_VIDEO_AVC = "video/avc";
     28 const char *MEDIA_MIMETYPE_VIDEO_HEVC = "video/hevc";
     29 const char *MEDIA_MIMETYPE_VIDEO_MPEG4 = "video/mp4v-es";
     30 const char *MEDIA_MIMETYPE_VIDEO_H263 = "video/3gpp";
     31 const char *MEDIA_MIMETYPE_VIDEO_MPEG2 = "video/mpeg2";
     32 const char *MEDIA_MIMETYPE_VIDEO_RAW = "video/raw";
     33 const char *MEDIA_MIMETYPE_VIDEO_DOLBY_VISION = "video/dolby-vision";
     34 const char *MEDIA_MIMETYPE_VIDEO_SCRAMBLED = "video/scrambled";
     35 const char *MEDIA_MIMETYPE_VIDEO_DIVX = "video/divx";
     36 const char *MEDIA_MIMETYPE_VIDEO_DIVX3 = "video/divx3";
     37 const char *MEDIA_MIMETYPE_VIDEO_XVID = "video/xvid";
     38 const char *MEDIA_MIMETYPE_VIDEO_MJPEG = "video/x-motion-jpeg";
     39 
     40 const char *MEDIA_MIMETYPE_AUDIO_AMR_NB = "audio/3gpp";
     41 const char *MEDIA_MIMETYPE_AUDIO_AMR_WB = "audio/amr-wb";
     42 const char *MEDIA_MIMETYPE_AUDIO_MPEG = "audio/mpeg";
     43 const char *MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_I = "audio/mpeg-L1";
     44 const char *MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_II = "audio/mpeg-L2";
     45 const char *MEDIA_MIMETYPE_AUDIO_MIDI = "audio/midi";
     46 const char *MEDIA_MIMETYPE_AUDIO_AAC = "audio/mp4a-latm";
     47 const char *MEDIA_MIMETYPE_AUDIO_QCELP = "audio/qcelp";
     48 const char *MEDIA_MIMETYPE_AUDIO_VORBIS = "audio/vorbis";
     49 const char *MEDIA_MIMETYPE_AUDIO_OPUS = "audio/opus";
     50 const char *MEDIA_MIMETYPE_AUDIO_G711_ALAW = "audio/g711-alaw";
     51 const char *MEDIA_MIMETYPE_AUDIO_G711_MLAW = "audio/g711-mlaw";
     52 const char *MEDIA_MIMETYPE_AUDIO_RAW = "audio/raw";
     53 const char *MEDIA_MIMETYPE_AUDIO_FLAC = "audio/flac";
     54 const char *MEDIA_MIMETYPE_AUDIO_AAC_ADTS = "audio/aac-adts";
     55 const char *MEDIA_MIMETYPE_AUDIO_MSGSM = "audio/gsm";
     56 const char *MEDIA_MIMETYPE_AUDIO_AC3 = "audio/ac3";
     57 const char *MEDIA_MIMETYPE_AUDIO_EAC3 = "audio/eac3";
     58 const char *MEDIA_MIMETYPE_AUDIO_EAC3_JOC = "audio/eac3-joc";
     59 const char *MEDIA_MIMETYPE_AUDIO_AC4 = "audio/ac4";
     60 const char *MEDIA_MIMETYPE_AUDIO_SCRAMBLED = "audio/scrambled";
     61 const char *MEDIA_MIMETYPE_AUDIO_ALAC = "audio/alac";
     62 const char *MEDIA_MIMETYPE_AUDIO_WMA = "audio/x-ms-wma";
     63 const char *MEDIA_MIMETYPE_AUDIO_MS_ADPCM = "audio/x-adpcm-ms";
     64 const char *MEDIA_MIMETYPE_AUDIO_DVI_IMA_ADPCM = "audio/x-adpcm-dvi-ima";
     65 
     66 
     67 const char *MEDIA_MIMETYPE_CONTAINER_MPEG4 = "video/mp4";
     68 const char *MEDIA_MIMETYPE_CONTAINER_WAV = "audio/x-wav";
     69 const char *MEDIA_MIMETYPE_CONTAINER_OGG = "audio/ogg";
     70 const char *MEDIA_MIMETYPE_CONTAINER_MATROSKA = "video/x-matroska";
     71 const char *MEDIA_MIMETYPE_CONTAINER_MPEG2TS = "video/mp2ts";
     72 const char *MEDIA_MIMETYPE_CONTAINER_AVI = "video/avi";
     73 const char *MEDIA_MIMETYPE_CONTAINER_MPEG2PS = "video/mp2p";
     74 const char *MEDIA_MIMETYPE_CONTAINER_HEIF = "image/heif";
     75 
     76 const char *MEDIA_MIMETYPE_TEXT_3GPP = "text/3gpp-tt";
     77 const char *MEDIA_MIMETYPE_TEXT_SUBRIP = "application/x-subrip";
     78 const char *MEDIA_MIMETYPE_TEXT_VTT = "text/vtt";
     79 const char *MEDIA_MIMETYPE_TEXT_CEA_608 = "text/cea-608";
     80 const char *MEDIA_MIMETYPE_TEXT_CEA_708 = "text/cea-708";
     81 const char *MEDIA_MIMETYPE_DATA_TIMED_ID3 = "application/x-id3v4";
     82 
     83 }  // namespace android
     84