Revision 7caf0cc6 libavformat/riff.h

View differences:

libavformat/riff.h
19 19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
 */
21 21

  
22
/**
23
 * @file riff.h
24
 * internal header for RIFF based (de)muxers
25
 * do NOT include this in end user applications
26
 */
27

  
22 28
#ifndef FF_RIFF_H
23 29
#define FF_RIFF_H
24 30

  
25 31
offset_t start_tag(ByteIOContext *pb, const char *tag);
26 32
void end_tag(ByteIOContext *pb, offset_t start);
27 33

  
28
typedef struct CodecTag {
34
typedef struct AVCodecTag {
29 35
    int id;
30 36
    unsigned int tag;
31
    unsigned int invalid_asf : 1;
32
} CodecTag;
37
} AVCodecTag;
33 38

  
34
void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf);
39
void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
35 40
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
36 41
int wav_codec_get_id(unsigned int tag, int bps);
37 42
void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
38 43

  
39
extern const CodecTag codec_bmp_tags[];
40
extern const CodecTag codec_wav_tags[];
44
extern const AVCodecTag codec_bmp_tags[];
45
extern const AVCodecTag codec_wav_tags[];
41 46

  
42
unsigned int codec_get_tag(const CodecTag *tags, int id);
43
enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
44
unsigned int codec_get_bmp_tag(int id);
45
unsigned int codec_get_wav_tag(int id);
46
enum CodecID codec_get_bmp_id(unsigned int tag);
47
enum CodecID codec_get_wav_id(unsigned int tag);
48
unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id);
47
unsigned int codec_get_tag(const AVCodecTag *tags, int id);
48
enum CodecID codec_get_id(const AVCodecTag *tags, unsigned int tag);
49
unsigned int codec_get_bmp_tag(int id) attribute_deprecated; //use av_codec_get_tag
50
unsigned int codec_get_wav_tag(int id) attribute_deprecated; //use av_codec_get_tag
51
enum CodecID codec_get_bmp_id(unsigned int tag) attribute_deprecated; //use av_codec_get_id
52
enum CodecID codec_get_wav_id(unsigned int tag) attribute_deprecated; //use av_codec_get_id
49 53
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
50 54

  
51 55
#endif

Also available in: Unified diff