Statistics
| Branch: | Revision:

ffmpeg / libavformat / avi.h @ c04c3282

History | View | Annotate | Download (1.4 KB)

1 546031ee Zdenek Kabelac
#ifndef FFMPEG_AVI_H
2
#define FFMPEG_AVI_H
3
4
#include "avcodec.h"
5 de6d9b64 Fabrice Bellard
6 bb270c08 Diego Biurrun
#define AVIF_HASINDEX           0x00000010        // Index at end of file?
7
#define AVIF_MUSTUSEINDEX       0x00000020
8
#define AVIF_ISINTERLEAVED      0x00000100
9
#define AVIF_TRUSTCKTYPE        0x00000800        // Use CKType to find key frames?
10
#define AVIF_WASCAPTUREFILE     0x00010000
11
#define AVIF_COPYRIGHTED        0x00020000
12 de6d9b64 Fabrice Bellard
13 ce9fce63 Roman Shaposhnik
#define AVI_MAX_RIFF_SIZE       0x40000000LL
14 e738cee9 Roman Shaposhnik
#define AVI_MASTER_INDEX_SIZE   256
15 ce9fce63 Roman Shaposhnik
16 155e9ee9 Fabrice Bellard
/* index flags */
17
#define AVIIF_INDEX             0x10
18
19 c18a2692 Zdenek Kabelac
offset_t start_tag(ByteIOContext *pb, const char *tag);
20 de6d9b64 Fabrice Bellard
void end_tag(ByteIOContext *pb, offset_t start);
21
22
typedef struct CodecTag {
23
    int id;
24
    unsigned int tag;
25 2727c35e Philip Gladstone
    unsigned int invalid_asf : 1;
26 de6d9b64 Fabrice Bellard
} CodecTag;
27
28 c18a2692 Zdenek Kabelac
void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf);
29 4606ac8d Zdenek Kabelac
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
30
int wav_codec_get_id(unsigned int tag, int bps);
31 115329f1 Diego Biurrun
void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
32 4606ac8d Zdenek Kabelac
33 c18a2692 Zdenek Kabelac
extern const CodecTag codec_bmp_tags[];
34
extern const CodecTag codec_wav_tags[];
35 de6d9b64 Fabrice Bellard
36 a266644f Zdenek Kabelac
unsigned int codec_get_tag(const CodecTag *tags, int id);
37 5d234974 Zdenek Kabelac
enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
38 4358d5de Fabrice Bellard
unsigned int codec_get_bmp_tag(int id);
39
unsigned int codec_get_wav_tag(int id);
40
enum CodecID codec_get_bmp_id(unsigned int tag);
41
enum CodecID codec_get_wav_id(unsigned int tag);
42 546031ee Zdenek Kabelac
43
#endif /* FFMPEG_AVI_H */