X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Ffourcc.c;h=e8f216f2616d10131b9df6ac497b70302e301a6e;hb=1dd2da6d0c9399c46ed2f9df969b98b45c12452e;hp=cd020b28b763b2f2bd927197c3f62584241cef39;hpb=1c8e72ee2c2ea0711b5c94ec6aaa39bc523d56e1;p=vlc diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c index cd020b28b7..e8f216f261 100644 --- a/src/misc/fourcc.c +++ b/src/misc/fourcc.c @@ -1,24 +1,24 @@ /***************************************************************************** * fourcc.c: fourcc helpers functions ***************************************************************************** - * Copyright (C) 2009 Laurent Aimar - * $Id$ + * Copyright © 2009-2011 Laurent Aimar * * Authors: Laurent Aimar + * Jean-Baptiste Kempf * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** @@ -68,6 +68,7 @@ static const entry_t p_list_video[] = { A("MPEG"), A("mpg2"), A("MPG2"), + A("H262"), E("PIM1", "Pinnacle DC1000 (MPEG-1 Video)"), @@ -79,42 +80,45 @@ static const entry_t p_list_video[] = { E("hdv6", "HDV 1080p24 (MPEG-2 Video)"), E("hdv7", "HDV 1080p25 (MPEG-2 Video)"), E("hdv8", "HDV 1080p30 (MPEG-2 Video)"), - E("hdv9", "JVC HDV (MPEG-2 Video)"), - - E("mx5n", "MPEG2 IMX NTSC 525/60 50mb/s (FCP)"), - E("mx5p", "MPEG2 IMX PAL 625/60 50mb/s (FCP)"), - E("mx4n", "MPEG2 IMX NTSC 525/60 40mb/s (FCP)"), - E("mx4p", "MPEG2 IMX PAL 625/50 40mb/s (FCP)"), - E("mx3n", "MPEG2 IMX NTSC 525/60 30mb/s (FCP)"), - E("mx3p", "MPEG2 IMX NTSC 625/50 30mb/s (FCP)"), - - E("xdv1", "XDCAM HD"), - E("xdv2", "XDCAM HD 1080i60 35mb/s"), - E("xdv3", "XDCAM HD 1080i50 35mb/s"), - E("xdv4", "XDCAM HD"), - E("xdv5", "XDCAM HD"), - E("xdv6", "XDCAM HD 1080p24 35mb/s"), - E("xdv7", "XDCAM HD 1080p25 35mb/s"), - E("xdv8", "XDCAM HD 1080p30 35mb/s"), - E("xdv9", "XDCAM HD"), - - E("xdva", "XDCAM"), - E("xdvb", "XDCAM"), - E("xdvc", "XDCAM"), - E("xdvd", "XDCAM"), - E("xdve", "XDCAM"), - E("xdvf", "XDCAM"), - - E("xd54", "XDCAM HD422 720p24 CBR"), - E("xd55", "XDCAM HD422 720p25 CBR"), - E("xd59", "XDCAM HD422 720p60 CBR"), - E("xd5a", "XDCAM HD422 720p50 CBR"), - E("xd5b", "XDCAM HD422 1080i60 CBR"), - E("xd5c", "XDCAM"), - E("xd5d", "XDCAM"), - E("xd5e", "XDCAM"), - E("xd5f", "XDCAM"), - E("xd59", "XDCAM"), + E("hdv9", "HDV 720p60 JVC (MPEG-2 Video)"), + E("hdva", "HDV 720p50 (MPEG-2 Video)"), + + E("mx5n", "MPEG2 IMX NTSC 525/60 50Mb/s (FCP)"), + E("mx5p", "MPEG2 IMX PAL 625/60 50Mb/s (FCP)"), + E("mx4n", "MPEG2 IMX NTSC 525/60 40Mb/s (FCP)"), + E("mx4p", "MPEG2 IMX PAL 625/50 40Mb/s (FCP)"), + E("mx3n", "MPEG2 IMX NTSC 525/60 30Mb/s (FCP)"), + E("mx3p", "MPEG2 IMX NTSC 625/50 30Mb/s (FCP)"), + + E("xdv1", "XDCAM HD 720p30 35Mb/s"), + E("xdv2", "XDCAM HD 1080i60 35Mb/s"), + E("xdv3", "XDCAM HD 1080i50 35Mb/s"), + E("xdv4", "XDCAM HD 720p24 35Mb/s"), + E("xdv5", "XDCAM HD 720p25 35Mb/s"), + E("xdv6", "XDCAM HD 1080p24 35Mb/s"), + E("xdv7", "XDCAM HD 1080p25 35Mb/s"), + E("xdv8", "XDCAM HD 1080p30 35Mb/s"), + E("xdv9", "XDCAM HD 720p60 35Mb/s"), + E("xdva", "XDCAM HD 720p50 35Mb/s"), + + E("xdvb", "XDCAM EX 1080i60 50Mb/s CBR"), + E("xdvc", "XDCAM EX 1080i50 50Mb/s CBR"), + E("xdvd", "XDCAM EX 1080p24 50Mb/s CBR"), + E("xdve", "XDCAM EX 1080p25 50Mb/s CBR"), + E("xdvf", "XDCAM EX 1080p30 50Mb/s CBR"), + + E("xd54", "XDCAM HD422 720p24 50Mb/s CBR"), + E("xd55", "XDCAM HD422 720p25 50Mb/s CBR"), + E("xd59", "XDCAM HD422 720p60 50Mb/s CBR"), + E("xd5a", "XDCAM HD422 720p50 50Mb/s CBR"), + E("xd5b", "XDCAM HD422 1080i60 50Mb/s CBR"), + E("xd5c", "XDCAM HD422 1080i50 50Mb/s CBR"), + E("xd5d", "XDCAM HD422 1080p24 50Mb/s CBR"), + E("xd5e", "XDCAM HD422 1080p25 50Mb/s CBR"), + E("xd5f", "XDCAM HD422 1080p30 50Mb/s CBR"), + + E("xdhd", "XDCAM HD 540p"), + E("xdh2", "XDCAM HD422 540p"), E("AVmp", "AVID IMX PAL"), E("MMES", "Matrox MPEG-2"), @@ -150,6 +154,8 @@ static const entry_t p_list_video[] = { A("INMC"), A("SN40"), A("EPHV"), + A("DM4V"), + A("SM4V"), /* XVID flavours */ E("xvid", "Xvid MPEG-4 Video"), E("XVID", "Xvid MPEG-4 Video"), @@ -169,6 +175,7 @@ static const entry_t p_list_video[] = { E("UMP4", "UB MPEG-4 Video"), E("SEDG", "Samsung MPEG-4 Video"), E("RMP4", "REALmagic MPEG-4 Video"), + E("LMP4", "Lead MPEG-4 Video"), E("HDX4", "Jomigo HDX4 (MPEG-4 Video)"), E("hdx4", "Jomigo HDX4 (MPEG-4 Video)"), E("SMP4", "Samsung SMP4 (MPEG-4 Video)"), @@ -177,6 +184,9 @@ static const entry_t p_list_video[] = { E("FVFW", "FFmpeg MPEG-4"), E("FFDS", "FFDShow MPEG-4"), E("VIDM", "vidm 4.01 codec"), + E("DP02", "DynaPel MPEG-4 codec"), + E("PLV1", "Pelco DVR MPEG-4"), + E("QMP4", "QNAP Systems MPEG-4"), /* 3ivx delta 3.5 Unsupported * putting it here gives extreme distorted images */ //E("3IV1", "3ivx delta 3.5 MPEG-4 Video"), @@ -227,6 +237,7 @@ static const entry_t p_list_video[] = { /* who knows? */ A("3VID"), A("3vid"), + A("DVX1"), A("DVX3"), /* Sorenson v1 */ @@ -248,6 +259,18 @@ static const entry_t p_list_video[] = { /* avc1: special case h264 */ A("avc1"), A("AVC1"), + E("ai5p", "AVC-Intra 50M 720p24/30/60"), + E("ai5q", "AVC-Intra 50M 720p25/50"), + E("ai52", "AVC-Intra 50M 1080p25/50"), + E("ai53", "AVC-Intra 50M 1080p24/30/60"), + E("ai55", "AVC-Intra 50M 1080i50"), + E("ai56", "AVC-Intra 50M 1080i60"), + E("ai1p", "AVC-Intra 100M 720p24/30/60"), + E("ai1q", "AVC-Intra 100M 720p25/50"), + E("ai12", "AVC-Intra 100M 1080p25/50"), + E("ai13", "AVC-Intra 100M 1080p24/30/60"), + E("ai15", "AVC-Intra 100M 1080i50"), + E("ai16", "AVC-Intra 100M 1080i60"), E("VSSH", "Vanguard VSS H264"), E("VSSW", "Vanguard VSS H264"), E("vssh", "Vanguard VSS H264"), @@ -268,6 +291,7 @@ static const entry_t p_list_video[] = { A("U263"), A("u263"), E("D263", "DEC H263"), + E("d263", "DEC H263"), E("L263", "LEAD H263"), E("M263", "Microsoft H263"), E("X263", "Xirlink H263"), @@ -285,6 +309,7 @@ static const entry_t p_list_video[] = { E("viv1", "H263+"), E("vivO", "H263+"), E("viv2", "H263+"), + E("VIVO", "H263+"), E("U263", "UB H263+"), /* Flash (H263) variant */ @@ -303,7 +328,9 @@ static const entry_t p_list_video[] = { /* MJPEG */ B(VLC_CODEC_MJPG, "Motion JPEG Video"), A("MJPG"), + A("MJPx"), A("mjpg"), + A("mJPG"), A("mjpa"), A("jpeg"), A("JPEG"), @@ -311,12 +338,15 @@ static const entry_t p_list_video[] = { A("JPGL"), A("AVDJ"), A("MMJP"), + A("FLJP"), + A("FMJP"), + A("SJPG"), A("QIVG"), - /* AVID MJPEG */ E("AVRn", "Avid Motion JPEG"), E("AVDJ", "Avid Motion JPEG"), E("ADJV", "Avid Motion JPEG"), E("dmb1", "Motion JPEG OpenDML Video"), + E("DMB1", "Motion JPEG OpenDML Video"), E("ijpg", "Intergraph JPEG Video"), E("IJPG", "Intergraph JPEG Video"), E("ACDV", "ACD Systems Digital"), @@ -327,6 +357,7 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_LJPG, "Lead Motion JPEG Video"), A("LJPG"), + E("Ljpg", "Lead Motion JPEG"), // ? from avcodec/fourcc.c but makes not sense. //{ VLC_FOURCC( 'L','J','P','G' ), CODEC_ID_MJPEG, VIDEO_ES, "Lead Motion JPEG Video" }, @@ -350,23 +381,32 @@ static const entry_t p_list_video[] = { A("DVCS"), A("dvcs"), A("dvhd"), - A("dvhp"), A("dvhq"), - A("dvh3"), - A("dvh5"), - A("dvh6"), - A("dv1n"), - A("dv1p"), - A("dvc "), - A("dv25"), A("dvh1"), + E("dvh2", "DV Video 720p24"), + E("dvh3", "DV Video 720p25"), + E("dvh4", "DV Video 720p30"), + A("dv25"), + A("dc25"), A("dvs1"), + A("dvis"), + A("CDV2"), + A("CDVP"), + A("PDVC"), + A("IPDV"), + A("ipdv"), E("dvcp", "DV Video PAL"), + E("dvc ", "DV Video NTSC" ), E("dvp ", "DV Video Pro"), E("dvpp", "DV Video Pro PAL"), E("dv50", "DV Video C Pro 50"), E("dv5p", "DV Video C Pro 50 PAL"), E("dv5n", "DV Video C Pro 50 NTSC"), + E("dv1p", "DV Video C Pro 100 PAL" ), + E("dv1n", "DV Video C Pro 100 NTSC" ), + E("dvhp", "DV Video C Pro HD 720p" ), + E("dvh5", "DV Video C Pro HD 1080i50" ), + E("dvh6", "DV Video C Pro HD 1080i60" ), E("AVdv", "AVID DV"), E("AVd1", "AVID DV"), E("CDVC", "Canopus DV Video"), @@ -374,6 +414,7 @@ static const entry_t p_list_video[] = { E("CDVH", "Canopus DV Video"), E("cdvh", "Canopus DV Video"), E("CDV5", "Canopus DV Video"), + E("SLDV", "SoftLab DVCAM codec"), /* Windows Media Video */ B(VLC_CODEC_WMV1, "Windows Media Video 7"), @@ -393,8 +434,6 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_WMVA, "Windows Media Video Advanced Profile"), A("WMVA"), A("wmva"), - A("WVP2"), - A("wvp2"), B(VLC_CODEC_VC1, "Windows Media Video VC1"), A("WVC1"), @@ -406,6 +445,10 @@ static const entry_t p_list_video[] = { A("WMVP"), A("wmvp"), + B(VLC_CODEC_WMVP2, "Windows Media Video Presentation, v2"), + A("WVP2"), + A("wvp2"), + /* Microsoft Video 1 */ B(VLC_CODEC_MSVIDEO1, "Microsoft Video 1"), A("MSVC"), @@ -494,23 +537,23 @@ static const entry_t p_list_video[] = { A("CLJR"), /* Real Video */ - B(VLC_CODEC_RV10, "Real Video 1.0"), + B(VLC_CODEC_RV10, "RealVideo 1.0"), A("RV10"), A("rv10"), - B(VLC_CODEC_RV13, "Real Video 1.3"), + B(VLC_CODEC_RV13, "RealVideo 1.3"), A("RV13"), A("rv13"), - B(VLC_CODEC_RV20, "Real Video 2.0"), + B(VLC_CODEC_RV20, "RealVideo G2 (2.0)"), A("RV20"), A("rv20"), - B(VLC_CODEC_RV30, "Real Video 3.0"), + B(VLC_CODEC_RV30, "RealVideo 8 (3.0)"), A("RV30"), A("rv30"), - B(VLC_CODEC_RV40, "Real Video 4.0"), + B(VLC_CODEC_RV40, "RealVideo 9/10 (4.0)"), A("RV40"), A("rv40"), @@ -588,7 +631,7 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_INDEO2, "Indeo Video v2"), A("IV20"), - A("RT21"), + E("RT21", "Indeo Video 2.1" ), /* Flash Screen Video */ B(VLC_CODEC_FLASHSV, "Flash Screen Video"), @@ -630,10 +673,19 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_FRWU, "Forward Uncompressed" ), A("FRWU"), + B(VLC_CODEC_INDEO4, "Indeo Video v4"), + A("IV41"), + A("iv41"), + B(VLC_CODEC_INDEO5, "Indeo Video v5"), A("IV50"), A("iv50"), + B(VLC_CODEC_PRORES, "Apple ProRes 422"), + E("apch", "Apple ProRes 422 HQ"), + E("apcs", "Apple ProRes 422 LT"), + E("apco", "Apple ProRes 422 Proxy"), + E("ap4c", "Apple ProRes 4444"), /* */ B(VLC_CODEC_YV12, "Planar 4:2:0 YVU"), @@ -650,7 +702,7 @@ static const entry_t p_list_video[] = { A("IYUV"), B(VLC_CODEC_I422, "Planar 4:2:2 YUV"), A("I422"), - B(VLC_CODEC_I444, "Planar 4:4:0 YUV"), + B(VLC_CODEC_I440, "Planar 4:4:0 YUV"), A("I440"), B(VLC_CODEC_I444, "Planar 4:4:4 YUV"), A("I444"), @@ -728,8 +780,14 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_V210, "10-bit 4:2:2 Component YCbCr"), A("v210"), - B(VLC_CODEC_NV12, "Planar Y, Packet UV (420)"), + B(VLC_CODEC_NV12, "Biplanar 4:2:0 Y/UV"), A("NV12"), + B(VLC_CODEC_NV21, "Biplanar 4:2:0 Y/VU"), + A("NV21"), + B(VLC_CODEC_NV16, "Biplanar 4:2:2 Y/UV"), + A("NV16"), + B(VLC_CODEC_NV61, "Biplanar 4:2:2 Y/VU"), + A("NV61"), B(VLC_CODEC_I420_9L, "Planar 4:2:0 YUV 9-bit LE"), A("I09L"), @@ -805,7 +863,7 @@ static const entry_t p_list_video[] = { B(VLC_CODEC_PAM, "PAM Image"), A("pam "), - B(VLC_CODEC_JPEGLS, "Lossless JPEG"), + B(VLC_CODEC_JPEGLS, "JPEG-LS"), A("MJLS"), B(VLC_CODEC_JPEG, "JPEG"), @@ -841,10 +899,51 @@ static const entry_t p_list_video[] = { A("mjp2"), A("MJP2"), A("MJ2C"), + A("LJ2C"), + A("LJ2K"), B(VLC_CODEC_LAGARITH, "Lagarith Lossless"), A("LAGS"), + B(VLC_CODEC_MXPEG, "Mxpeg"), + A("MXPG"), + + B(VLC_CODEC_CDXL, "Commodore CDXL video format"), + A("CDXL"), + + B(VLC_CODEC_BMVVIDEO, "Discworld II BMV video"), + A("BMVV"), + + B(VLC_CODEC_UTVIDEO, "Ut Video"), + A("ULRA"), + A("ULRG"), + A("ULY0"), + A("ULY2"), + + B(VLC_CODEC_VBLE, "VBLE Lossless"), + A("VBLE"), + + B(VLC_CODEC_DXTORY, "Dxtory capture format"), + A("xtor"), + + B(VLC_CODEC_MSS1, "Windows Media Video 7 Screen"), + A("MSS1"), + A("mss1"), + + B(VLC_CODEC_MSS2, "Windows Media Video 9 Screen"), + A("MSS2"), + A("mss2"), + + B(VLC_CODEC_MSA1, "Microsoft Application Screen Decoder 1"), + A("MSA1"), + + B(VLC_CODEC_TSC2, "TechSmith Screen Codec 2"), + A("MSA1"), + A("tsc2"), + + B(VLC_CODEC_MTS2, "Microsoft Expression Encoder Screen"), + A("MTS2"), + B(0, "") }; static const entry_t p_list_audio[] = { @@ -914,6 +1013,9 @@ static const entry_t p_list_audio[] = { /* MPEG Audio layer 1/2/3 */ B(VLC_CODEC_MPGA, "MPEG Audio layer 1/2/3"), A("mpga"), + A("mp2a"), + A(".mp1"), + A(".mp2"), A("mp3 "), A(".mp3"), A("MP3 "), @@ -926,6 +1028,7 @@ static const entry_t p_list_audio[] = { A("a52 "), A("a52b"), A("ac-3"), + A("sac3"), A("ms\x20\x00"), B(VLC_CODEC_EAC3, "A/52 B Audio (aka E-AC3)"), @@ -936,6 +1039,10 @@ static const entry_t p_list_audio[] = { A("dts "), A("DTS "), A("dtsb"), + A("dtsc"), + E("dtse", "DTS Express"), + E("dtsh", "DTS-HD High Resolution Audio"), + E("dtsl", "DTS-HD Lossless"), A("ms\x20\x01"), /* AAC audio */ @@ -1005,6 +1112,12 @@ static const entry_t p_list_audio[] = { B(VLC_CODEC_ADPCM_IMA_AMV, "IMA AMV ADPCM Audio"), A("imav"), + B(VLC_CODEC_ADPCM_IMA_QT, "IMA QT ADPCM Audio"), + A("ima4"), + + B(VLC_CODEC_ADPCM_YAMAHA, "Yamaha ADPCM Audio" ), + A("ms\x00\x20"), + /* AMR */ B(VLC_CODEC_AMR_NB, "AMR narrow band"), A("samr"), @@ -1065,6 +1178,7 @@ static const entry_t p_list_audio[] = { B(VLC_CODEC_NELLYMOSER, "NellyMoser ASAO"), A("NELL"), + A("nmos"), B(VLC_CODEC_APE, "Monkey's Audio"), A("APE "), @@ -1077,6 +1191,8 @@ static const entry_t p_list_audio[] = { B(VLC_CODEC_QCELP, "QCELP Audio"), A("Qclp"), + A("Qclq"), + A("sqcp"), B(VLC_CODEC_SPEEX, "Speex Audio"), A("spx "), @@ -1104,6 +1220,9 @@ static const entry_t p_list_audio[] = { B(VLC_CODEC_MIDI, "MIDI Audio"), A("MIDI"), + B(VLC_CODEC_RALF, "RealAudio Lossless"), + A("LSD:"), + /* PCM */ B(VLC_CODEC_S8, "PCM S8"), A("s8 "), @@ -1184,6 +1303,17 @@ static const entry_t p_list_audio[] = { B(VLC_CODEC_TWINVQ, "TwinVQ"), A("TWIN"), + B(VLC_CODEC_BMVAUDIO, "Discworld II BMV audio"), + A("BMVA"), + + B(VLC_CODEC_ULEAD_DV_AUDIO_NTSC, "Ulead DV audio NTSC"), + A("ms\x02\x15"), + B(VLC_CODEC_ULEAD_DV_AUDIO_PAL, "Ulead DV audio PAL"), + A("ms\x02\x16"), + + B(VLC_CODEC_INDEO_AUDIO, "Indeo Audio Coder"), + A("ms\x04\x02"), + B(0, "") }; static const entry_t p_list_spu[] = { @@ -1746,6 +1876,7 @@ static const struct { { VLC_CODEC_I411, 0 }, PLANAR_8(3, 4, 1) }, { { VLC_CODEC_YUV_PLANAR_410, 0 }, PLANAR_8(3, 4, 4) }, { { VLC_CODEC_YUV_PLANAR_420, 0 }, PLANAR_8(3, 2, 2) }, + { { VLC_CODEC_NV12, VLC_CODEC_NV21, 0 }, PLANAR_8(2, 1, 2) }, { { VLC_CODEC_YUV_PLANAR_422, 0 }, PLANAR_8(3, 2, 1) }, { { VLC_CODEC_YUV_PLANAR_440, 0 }, PLANAR_8(3, 1, 2) }, { { VLC_CODEC_YUV_PLANAR_444, 0 }, PLANAR_8(3, 1, 1) },