00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "matroska.h"
00023
00024 const CodecTags ff_mkv_codec_tags[]={
00025 {"A_AAC" , AV_CODEC_ID_AAC},
00026 {"A_AC3" , AV_CODEC_ID_AC3},
00027 {"A_ALAC" , AV_CODEC_ID_ALAC},
00028 {"A_DTS" , AV_CODEC_ID_DTS},
00029 {"A_EAC3" , AV_CODEC_ID_EAC3},
00030 {"A_FLAC" , AV_CODEC_ID_FLAC},
00031 {"A_MLP" , AV_CODEC_ID_MLP},
00032 {"A_MPEG/L2" , AV_CODEC_ID_MP2},
00033 {"A_MPEG/L1" , AV_CODEC_ID_MP2},
00034 {"A_MPEG/L3" , AV_CODEC_ID_MP3},
00035 {"A_OPUS", AV_CODEC_ID_OPUS},
00036 {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F32LE},
00037 {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F64LE},
00038 {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S16BE},
00039 {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S24BE},
00040 {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S32BE},
00041 {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S16LE},
00042 {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S24LE},
00043 {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S32LE},
00044 {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_U8},
00045 {"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
00046 {"A_REAL/14_4" , AV_CODEC_ID_RA_144},
00047 {"A_REAL/28_8" , AV_CODEC_ID_RA_288},
00048 {"A_REAL/ATRC" , AV_CODEC_ID_ATRAC3},
00049 {"A_REAL/COOK" , AV_CODEC_ID_COOK},
00050 {"A_REAL/SIPR" , AV_CODEC_ID_SIPR},
00051 {"A_TRUEHD" , AV_CODEC_ID_TRUEHD},
00052 {"A_TTA1" , AV_CODEC_ID_TTA},
00053 {"A_VORBIS" , AV_CODEC_ID_VORBIS},
00054 {"A_WAVPACK4" , AV_CODEC_ID_WAVPACK},
00055
00056 {"S_TEXT/UTF8" , AV_CODEC_ID_SUBRIP},
00057 {"S_TEXT/UTF8" , AV_CODEC_ID_TEXT},
00058 {"S_TEXT/UTF8" , AV_CODEC_ID_SRT},
00059 {"S_TEXT/ASCII" , AV_CODEC_ID_TEXT},
00060 {"S_TEXT/ASS" , AV_CODEC_ID_SSA},
00061 {"S_TEXT/SSA" , AV_CODEC_ID_SSA},
00062 {"S_ASS" , AV_CODEC_ID_SSA},
00063 {"S_SSA" , AV_CODEC_ID_SSA},
00064 {"S_VOBSUB" , AV_CODEC_ID_DVD_SUBTITLE},
00065 {"S_HDMV/PGS" , AV_CODEC_ID_HDMV_PGS_SUBTITLE},
00066
00067 {"V_DIRAC" , AV_CODEC_ID_DIRAC},
00068 {"V_MJPEG" , AV_CODEC_ID_MJPEG},
00069 {"V_MPEG1" , AV_CODEC_ID_MPEG1VIDEO},
00070 {"V_MPEG2" , AV_CODEC_ID_MPEG2VIDEO},
00071 {"V_MPEG4/ISO/ASP" , AV_CODEC_ID_MPEG4},
00072 {"V_MPEG4/ISO/AP" , AV_CODEC_ID_MPEG4},
00073 {"V_MPEG4/ISO/SP" , AV_CODEC_ID_MPEG4},
00074 {"V_MPEG4/ISO/AVC" , AV_CODEC_ID_H264},
00075 {"V_MPEG4/MS/V3" , AV_CODEC_ID_MSMPEG4V3},
00076 {"V_PRORES" , AV_CODEC_ID_PRORES},
00077 {"V_REAL/RV10" , AV_CODEC_ID_RV10},
00078 {"V_REAL/RV20" , AV_CODEC_ID_RV20},
00079 {"V_REAL/RV30" , AV_CODEC_ID_RV30},
00080 {"V_REAL/RV40" , AV_CODEC_ID_RV40},
00081 {"V_SNOW" , AV_CODEC_ID_SNOW},
00082 {"V_THEORA" , AV_CODEC_ID_THEORA},
00083 {"V_UNCOMPRESSED" , AV_CODEC_ID_RAWVIDEO},
00084 {"V_VP8" , AV_CODEC_ID_VP8},
00085
00086 {"" , AV_CODEC_ID_NONE}
00087 };
00088
00089 const CodecMime ff_mkv_mime_tags[] = {
00090 {"text/plain" , AV_CODEC_ID_TEXT},
00091 {"image/gif" , AV_CODEC_ID_GIF},
00092 {"image/jpeg" , AV_CODEC_ID_MJPEG},
00093 {"image/png" , AV_CODEC_ID_PNG},
00094 {"image/tiff" , AV_CODEC_ID_TIFF},
00095 {"application/x-truetype-font", AV_CODEC_ID_TTF},
00096 {"application/x-font" , AV_CODEC_ID_TTF},
00097 {"application/vnd.ms-opentype", AV_CODEC_ID_OTF},
00098
00099 {"" , AV_CODEC_ID_NONE}
00100 };
00101
00102 const AVMetadataConv ff_mkv_metadata_conv[] = {
00103 { "LEAD_PERFORMER", "performer" },
00104 { "PART_NUMBER" , "track" },
00105 { 0 }
00106 };
00107
00108 const char * const ff_matroska_video_stereo_mode[MATROSKA_VIDEO_STEREO_MODE_COUNT] = {
00109 "mono",
00110 "left_right",
00111 "bottom_top",
00112 "top_bottom",
00113 "checkerboard_rl",
00114 "checkerboard_lr"
00115 "row_interleaved_rl",
00116 "row_interleaved_lr",
00117 "col_interleaved_rl",
00118 "col_interleaved_lr",
00119 "anaglyph_cyan_red",
00120 "right_left",
00121 "anaglyph_green_magenta",
00122 "block_lr",
00123 "block_rl",
00124 };
00125
00126 const char * const ff_matroska_video_stereo_plane[MATROSKA_VIDEO_STEREO_PLANE_COUNT] = {
00127 "left",
00128 "right",
00129 "background",
00130 };