]> git.sesse.net Git - vlc/blob - plugins/avi/fourcc.h
* ./plugins/ac3_adec/* use _M to avoid conflict with libavcodec.a
[vlc] / plugins / avi / fourcc.h
1 /*****************************************************************************
2  * fourcc.h : AVI file Stream input module for vlc
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: fourcc.h,v 1.1 2002/04/23 23:44:36 fenrir Exp $
6  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
7  * 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23
24 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
25    ( ((u32)ch0) | ( ((u32)ch1) << 8 ) | \
26      ( ((u32)ch2) << 16 ) | ( ((u32)ch3) << 24 ) )
27
28 #define mmioTWOCC( ch0, ch1 ) \
29         ( (u32)(ch0) | ( (u32)(ch1) << 8 ) )
30         
31 #define WAVE_FORMAT_UNKNOWN         0x0000
32 #define WAVE_FORMAT_PCM             0x0001
33 #define WAVE_FORMAT_MPEG            0x0050
34 #define WAVE_FORMAT_MPEGLAYER3      0x0055
35 #define WAVE_FORMAT_AC3             0x2000
36         
37 #define FOURCC_RIFF                 mmioFOURCC( 'R', 'I', 'F', 'F' )
38 #define FOURCC_LIST                 mmioFOURCC( 'L', 'I', 'S', 'T' )
39 #define FOURCC_JUNK                 mmioFOURCC( 'J', 'U', 'N', 'K' )
40 #define FOURCC_AVI                  mmioFOURCC( 'A', 'V', 'I', ' ' )
41 #define FOURCC_WAVE                 mmioFOURCC( 'W', 'A', 'V', 'E' )
42
43 #define FOURCC_avih                 mmioFOURCC( 'a', 'v', 'i', 'h' )
44 #define FOURCC_hdrl                 mmioFOURCC( 'h', 'd', 'r', 'l' )
45 #define FOURCC_movi                 mmioFOURCC( 'm', 'o', 'v', 'i' )
46 #define FOURCC_idx1                 mmioFOURCC( 'i', 'd', 'x', '1' )
47
48 #define FOURCC_strl                 mmioFOURCC( 's', 't', 'r', 'l' )
49 #define FOURCC_strh                 mmioFOURCC( 's', 't', 'r', 'h' )
50 #define FOURCC_strf                 mmioFOURCC( 's', 't', 'r', 'f' )
51 #define FOURCC_strd                 mmioFOURCC( 's', 't', 'r', 'd' )
52
53 #define FOURCC_rec                  mmioFOURCC( 'r', 'e', 'c', ' ' )
54 #define FOURCC_auds                 mmioFOURCC( 'a', 'u', 'd', 's' )
55 #define FOURCC_vids                 mmioFOURCC( 'v', 'i', 'd', 's' )
56         
57
58 #define TWOCC_wb                    mmioTWOCC( 'w', 'b' )
59 #define TWOCC_db                    mmioTWOCC( 'd', 'b' )
60 #define TWOCC_dc                    mmioTWOCC( 'd', 'c' )
61 #define TWOCC_pc                    mmioTWOCC( 'p', 'c' )
62         
63         
64 /* definition of mpeg4 (opendivx) codec */
65 #define FOURCC_DIVX         mmioFOURCC( 'D', 'I', 'V', 'X' )
66 #define FOURCC_divx         mmioFOURCC( 'd', 'i', 'v', 'x' )
67 #define FOURCC_DX50         mmioFOURCC( 'D', 'X', '5', '0' )
68 #define FOURCC_MP4S         mmioFOURCC( 'M', 'P', '4', 'S' )
69 #define FOURCC_MPG4         mmioFOURCC( 'M', 'P', 'G', '4' )
70 #define FOURCC_mpg4         mmioFOURCC( 'm', 'p', 'g', '4' )
71 #define FOURCC_mp4v         mmioFOURCC( 'm', 'p', '4', 'v' )
72         
73 /* definition of msmepg (divx v3) codec */
74 #define FOURCC_DIV3         mmioFOURCC( 'D', 'I', 'V', '3' )
75 #define FOURCC_div3         mmioFOURCC( 'd', 'i', 'v', '3' )
76 #define FOURCC_DIV4         mmioFOURCC( 'D', 'I', 'V', '4' )
77 #define FOURCC_div4         mmioFOURCC( 'd', 'i', 'v', '4' )
78 #define FOURCC_DIV5         mmioFOURCC( 'D', 'I', 'V', '5' )
79 #define FOURCC_div5         mmioFOURCC( 'd', 'i', 'v', '5' )
80 #define FOURCC_DIV6         mmioFOURCC( 'D', 'I', 'V', '6' )
81 #define FOURCC_div6         mmioFOURCC( 'd', 'i', 'v', '6' )
82 #define FOURCC_3IV1         mmioFOURCC( '3', 'I', 'V', '1' )
83 #define FOURCC_AP41         mmioFOURCC( 'A', 'P', '4', '1' )
84 #define FOURCC_MP43         mmioFOURCC( 'M', 'P', '4', '3' )
85 #define FOURCC_mp43         mmioFOURCC( 'm', 'p', '4', '3' )
86