[Ffmpeg-devel] [PATCH] install libavformat/riff.h

Nico Sabbi nicola_sabbi
Sat Jan 20 22:31:40 CET 2007

Michael Niedermayer wrote:

> nico, just give the ones mplayer needs an av_ prefix and move them to
> avformat.h or split riff.h into riff.h+riff_internal.h

let's see: I'd move to riff_internal.h

offset_t start_tag(ByteIOContext *pb, const char *tag);
void end_tag(ByteIOContext *pb, offset_t start);

void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const 
CodecTag *tags, int for_asf);
int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
int wav_codec_get_id(unsigned int tag, int bps);
void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);

and to riff.h (prepended by ff_):

typedef struct CodecTag {
     int id;
     unsigned int tag;
     unsigned int invalid_asf : 1;
} CodecTag;

extern const CodecTag ff_codec_bmp_tags[];
extern const CodecTag ff_codec_wav_tags[];

unsigned int ff_codec_get_tag(const CodecTag *tags, int id);
enum CodecID ff_codec_get_id(const CodecTag *tags, unsigned int tag);
unsigned int ff_codec_get_bmp_tag(int id);
unsigned int ff_codec_get_wav_tag(int id);
enum CodecID ff_codec_get_bmp_id(unsigned int tag);
enum CodecID ff_codec_get_wav_id(unsigned int tag);
unsigned int ff_codec_get_asf_tag(const CodecTag *tags, unsigned int id);
void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, 
int *au_ssize, int *au_scale);


"Without a frontend, mplayer is useless" - someone in mplayer-users

More information about the ffmpeg-devel mailing list