1 /*
2 * RIFF common functions and data
3 * Copyright (c) 2000 Fabrice Bellard
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #include <stddef.h>
23 #include "config.h"
24 #include "config_components.h"
30
31 /* Note: When encoding, the first matching tag is used, so order is
32 * important if multiple tags are possible for a given codec.
33 * Note also that this list is used for more than just riff, other
34 * files use it as well.
35 */
70 /* some broken AVIs use this */
72 /* some broken AVIs use this */
82 /* WaWv MPEG-4 Video Codec */
94 /* flipped video */
96 /* flipped video */
102 /* Ephv MPEG-4 */
105 /* Divio MPEG-4 */
111 /* Samsung SHR-6040 */
145 /* Canopus DV */
147 /* Canopus DV */
149 /* Canopus DV */
170 /* Lead MPEG-2 in AVI */
174 /* Matrox MPEG-2 intra-only */
190 /* Pegasus lossless JPEG */
192 /* JPEG-LS custom FOURCC for AVI - encoder */
195 /* JPEG-LS custom FOURCC for AVI - decoder */
202 /* SL M-JPEG */
204 /* Creative Webcam JPEG */
206 /* Intel JPEG Library Video Codec */
208 /* Midvid JPEG Video Codec */
213 /* Paradigm Matrix M-JPEG Codec */
245 /* SoftLab-NSK VideoTizer */
406 /* Ut Video version 13.0.1 BT.709 codecs */
510 };
511
516 };
517
520 /* must come after s16le in this list */
527 /* must come after f32le in this list */
534 /* must come after adpcm_ima_wav in this list */
550 /* rogue format number */
552 /* rogue format number */
582 /* ADTS AAC */
586 /* There is no Microsoft Format Tag for E-AC3, the GUID has to be used */
603 /* DFPWM does not have an assigned format tag; it uses a GUID in WAVEFORMATEX instead */
606 /* HACK/FIXME: Does Vorbis in WAV/AVI have an (in)official ID? */
609 };
610
611 #if CONFIG_AVI_MUXER || CONFIG_WTV_MUXER
614 };
615 #endif
616
617 #if CONFIG_WAV_DEMUXER || CONFIG_WAV_MUXER || CONFIG_W64_DEMUXER || CONFIG_W64_MUXER
619 #endif
620
622 { "IART", "artist" },
623 { "ICMT", "comment" },
624 { "ICOP", "copyright" },
625 { "ICRD", "date" },
626 { "IGNR", "genre" },
627 { "ILNG", "language" },
628 { "INAM", "title" },
629 { "IPRD", "album" },
630 { "IPRT", "track" },
631 { "ITRK", "track" },
632 { "ISFT", "encoder" },
633 { "ISMP", "timecode" },
634 { "ITCH", "encoded_by" },
635 { 0 },
636 };
637
639 {
641 }
642
644 {
646 }
647
649 {
AV_CODEC_ID_AC3, { 0x2C, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
650 {
AV_CODEC_ID_ATRAC3P, { 0xBF, 0xAA, 0x23, 0xE9, 0x58, 0xCB, 0x71, 0x44, 0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62 } },
651 {
AV_CODEC_ID_ATRAC9, { 0xD2, 0x42, 0xE1, 0x47, 0xBA, 0x36, 0x8D, 0x4D, 0x88, 0xFC, 0x61, 0x65, 0x4F, 0x8C, 0x83, 0x6C } },
652 {
AV_CODEC_ID_EAC3, { 0xAF, 0x87, 0xFB, 0xA7, 0x02, 0x2D, 0xFB, 0x42, 0xA4, 0xD4, 0x05, 0xCD, 0x93, 0x84, 0x3B, 0xDD } },
653 {
AV_CODEC_ID_MP2, { 0x2B, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
654 {
AV_CODEC_ID_ADPCM_AGM,{ 0x82, 0xEC, 0x1F, 0x6A, 0xCA, 0xDB, 0x19, 0x45, 0xBD, 0xE7, 0x56, 0xD3, 0xB3, 0xEF, 0x98, 0x1D } },
655 {
AV_CODEC_ID_DFPWM, { 0x3A, 0xC1, 0xFA, 0x38, 0x81, 0x1D, 0x43, 0x61, 0xA4, 0x0D, 0xCE, 0x53, 0xCA, 0x60, 0x7C, 0xD1 } },
657 };