annotate loader/wine/avifmt.h @ 9524:9821f74e041d

New translation from Zorg ( Konrad Materka )
author eyck
date Tue, 04 Mar 2003 13:42:49 +0000
parents 174e2a58b4cd
children 167342641f0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /****************************************************************************
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3 * AVIFMT - AVI file format definitions
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 ****************************************************************************/
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 #ifndef AVIFMT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 #define AVIFMT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 #ifndef NOAVIFMT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 #ifndef __WINE_WINDEF_H
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 1
diff changeset
14 #include "wine/windef.h"
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 #ifndef __WINE_MMSYSTEM_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 #ifndef __WINE_MSACM_H
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 typedef DWORD FOURCC;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 #ifdef _MSC_VER
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 #pragma warning(disable:4200)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 /* The following is a short description of the AVI file format. Please
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 * see the accompanying documentation for a full explanation.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 * An AVI file is the following RIFF form:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 * RIFF('AVI'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 * LIST('hdrl'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 * avih(<MainAVIHeader>)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 * LIST ('strl'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 * strh(<Stream header>)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 * strf(<Stream format>)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 * ... additional header data
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 * LIST('movi'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 * { LIST('rec'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 * SubChunk...
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 * )
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 * | SubChunk } ....
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 * )
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 * [ <AVIIndex> ]
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 * )
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 * The main file header specifies how many streams are present. For
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 * each one, there must be a stream header chunk and a stream format
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 * chunk, enlosed in a 'strl' LIST chunk. The 'strf' chunk contains
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 * type-specific format information; for a video stream, this should
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 * be a BITMAPINFO structure, including palette. For an audio stream,
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 * this should be a WAVEFORMAT (or PCMWAVEFORMAT) structure.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 * The actual data is contained in subchunks within the 'movi' LIST
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 * chunk. The first two characters of each data chunk are the
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 * stream number with which that data is associated.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 * Some defined chunk types:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 * Video Streams:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 * ##db: RGB DIB bits
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 * ##dc: RLE8 compressed DIB bits
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 * ##pc: Palette Change
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 * Audio Streams:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 * ##wb: waveform audio bytes
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69 * The grouping into LIST 'rec' chunks implies only that the contents of
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 * the chunk should be read into memory at the same time. This
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 * grouping is used for files specifically intended to be played from
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 * CD-ROM.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 * The index chunk at the end of the file should contain one entry for
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 * each data chunk in the file.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 * Limitations for the current software:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 * Only one video stream and one audio stream are allowed.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 * The streams must start at the beginning of the file.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 * To register codec types please obtain a copy of the Multimedia
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 * Developer Registration Kit from:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 * Microsoft Corporation
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 * Multimedia Systems Group
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 * Product Marketing
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 * One Microsoft Way
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 * Redmond, WA 98052-6399
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90 *
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 #ifndef mmioFOURCC
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
95 ( (DWORD)(BYTE)(ch0) | ( (DWORD)(BYTE)(ch1) << 8 ) | \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
96 ( (DWORD)(BYTE)(ch2) << 16 ) | ( (DWORD)(BYTE)(ch3) << 24 ) )
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
98
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
99 /* Macro to make a TWOCC out of two characters */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
100 #ifndef aviTWOCC
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
101 #define aviTWOCC(ch0, ch1) ((WORD)(BYTE)(ch0) | ((WORD)(BYTE)(ch1) << 8))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
102 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
103
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
104 typedef WORD TWOCC;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
105
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
106 /* form types, list types, and chunk types */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
107 #define formtypeAVI mmioFOURCC('A', 'V', 'I', ' ')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
108 #define listtypeAVIHEADER mmioFOURCC('h', 'd', 'r', 'l')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
109 #define ckidAVIMAINHDR mmioFOURCC('a', 'v', 'i', 'h')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
110 #define listtypeSTREAMHEADER mmioFOURCC('s', 't', 'r', 'l')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
111 #define ckidSTREAMHEADER mmioFOURCC('s', 't', 'r', 'h')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
112 #define ckidSTREAMFORMAT mmioFOURCC('s', 't', 'r', 'f')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
113 #define ckidSTREAMHANDLERDATA mmioFOURCC('s', 't', 'r', 'd')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
114 #define ckidSTREAMNAME mmioFOURCC('s', 't', 'r', 'n')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
115
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
116 #define listtypeAVIMOVIE mmioFOURCC('m', 'o', 'v', 'i')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
117 #define listtypeAVIRECORD mmioFOURCC('r', 'e', 'c', ' ')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
118
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
119 #define ckidAVINEWINDEX mmioFOURCC('i', 'd', 'x', '1')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
120
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
121 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
122 ** Stream types for the <fccType> field of the stream header.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
123 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
124 #define streamtypeVIDEO mmioFOURCC('v', 'i', 'd', 's')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
125 #define streamtypeAUDIO mmioFOURCC('a', 'u', 'd', 's')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
126 #define streamtypeMIDI mmioFOURCC('m', 'i', 'd', 's')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
127 #define streamtypeTEXT mmioFOURCC('t', 'x', 't', 's')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
128
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
129 /* Basic chunk types */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
130 #define cktypeDIBbits aviTWOCC('d', 'b')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
131 #define cktypeDIBcompressed aviTWOCC('d', 'c')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
132 #define cktypePALchange aviTWOCC('p', 'c')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
133 #define cktypeWAVEbytes aviTWOCC('w', 'b')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
134
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
135 /* Chunk id to use for extra chunks for padding. */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
136 #define ckidAVIPADDING mmioFOURCC('J', 'U', 'N', 'K')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
137
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
138 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
139 ** Useful macros
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
140 **
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
141 ** Warning: These are nasty macro, and MS C 6.0 compiles some of them
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
142 ** incorrectly if optimizations are on. Ack.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
143 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
144
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
145 /* Macro to get stream number out of a FOURCC ckid */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
146 #define FromHex(n) (((n) >= 'A') ? ((n) + 10 - 'A') : ((n) - '0'))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
147 #define StreamFromFOURCC(fcc) ((WORD) ((FromHex(LOBYTE(LOWORD(fcc))) << 4) + \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
148 (FromHex(HIBYTE(LOWORD(fcc))))))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
149
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
150 /* Macro to get TWOCC chunk type out of a FOURCC ckid */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
151 #define TWOCCFromFOURCC(fcc) HIWORD(fcc)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
152
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
153 /* Macro to make a ckid for a chunk out of a TWOCC and a stream number
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
154 ** from 0-255.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
155 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
156 #define ToHex(n) ((BYTE) (((n) > 9) ? ((n) - 10 + 'A') : ((n) + '0')))
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
157 #define MAKEAVICKID(tcc, stream) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
158 MAKELONG((ToHex((stream) & 0x0f) << 8) | \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
159 (ToHex(((stream) & 0xf0) >> 4)), tcc)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
160
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
161 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
162 ** Main AVI File Header
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
163 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
164
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
165 /* flags for use in <dwFlags> in AVIFileHdr */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
166 #define AVIF_HASINDEX 0x00000010 // Index at end of file?
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
167 #define AVIF_MUSTUSEINDEX 0x00000020
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
168 #define AVIF_ISINTERLEAVED 0x00000100
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
169 #define AVIF_TRUSTCKTYPE 0x00000800 // Use CKType to find key frames?
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
170 #define AVIF_WASCAPTUREFILE 0x00010000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
171 #define AVIF_COPYRIGHTED 0x00020000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
172
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
173 /* The AVI File Header LIST chunk should be padded to this size */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
174 #define AVI_HEADERSIZE 2048 // size of AVI header list
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
175
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
176 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
177 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
178 DWORD dwMicroSecPerFrame; // frame display rate (or 0L)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
179 DWORD dwMaxBytesPerSec; // max. transfer rate
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
180 DWORD dwPaddingGranularity; // pad to multiples of this
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
181 // size; normally 2K.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
182 DWORD dwFlags; // the ever-present flags
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
183 DWORD dwTotalFrames; // # frames in file
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
184 DWORD dwInitialFrames;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
185 DWORD dwStreams;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
186 DWORD dwSuggestedBufferSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
187
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
188 DWORD dwWidth;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
189 DWORD dwHeight;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
190
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
191 DWORD dwReserved[4];
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
192 } MainAVIHeader;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
193
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
194 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
195 ** Stream header
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
196 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
197
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
198 #define AVISF_DISABLED 0x00000001
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
199
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
200 #define AVISF_VIDEO_PALCHANGES 0x00010000
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
201
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
202
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
203 typedef struct {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
204 FOURCC fccType;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
205 FOURCC fccHandler;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
206 DWORD dwFlags; /* Contains AVITF_* flags */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
207 WORD wPriority;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
208 WORD wLanguage;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
209 DWORD dwInitialFrames;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
210 DWORD dwScale;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
211 DWORD dwRate; /* dwRate / dwScale == samples/second */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
212 DWORD dwStart;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
213 DWORD dwLength; /* In units above... */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
214 DWORD dwSuggestedBufferSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
215 DWORD dwQuality;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
216 DWORD dwSampleSize;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
217 RECT rcFrame;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
218 } AVIStreamHeader;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
219
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
220 /* Flags for index */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
221 #define AVIIF_LIST 0x00000001L // chunk is a 'LIST'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
222 #define AVIIF_KEYFRAME 0x00000010L // this frame is a key frame.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
223
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
224 #define AVIIF_NOTIME 0x00000100L // this frame doesn't take any time
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
225 #define AVIIF_COMPUSE 0x0FFF0000L // these bits are for compressor use
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
226
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
227 #define FOURCC_RIFF mmioFOURCC('R', 'I', 'F', 'F')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
228 #define FOURCC_LIST mmioFOURCC('L', 'I', 'S', 'T')
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
229
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
230 typedef struct
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
231 {
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
232 DWORD ckid;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
233 DWORD dwFlags;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
234 DWORD dwChunkOffset; // Position of chunk
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
235 DWORD dwChunkLength; // Length of chunk
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
236 } AVIINDEXENTRY;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
237
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
238 #define AVISTREAMREAD_CONVENIENT (-1L)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
239
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
240 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
241 ** Palette change chunk
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
242 **
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
243 ** Used in video streams.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
244 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
245 #endif /* NOAVIFMT */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
246 #endif