From 456a70aeb826b7b84d30cc3cc279fa7c65fc7d4e Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sun, 26 Dec 2010 01:23:44 +0000 Subject: add ff_get_bmp_header Originally committed as revision 26091 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/riff.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/riff.h') diff --git a/libavformat/riff.h b/libavformat/riff.h index 64d9eb6e3d..5045abcd31 100644 --- a/libavformat/riff.h +++ b/libavformat/riff.h @@ -35,6 +35,13 @@ int64_t ff_start_tag(ByteIOContext *pb, const char *tag); void ff_end_tag(ByteIOContext *pb, int64_t start); +/** + * Read BITMAPINFOHEADER structure and set AVStream codec width, height and + * bits_per_encoded_sample fields. Does not read extradata. + * @return codec tag + */ +int ff_get_bmp_header(ByteIOContext *pb, AVStream *st); + void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf); int ff_put_wav_header(ByteIOContext *pb, AVCodecContext *enc); enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps); -- cgit v1.2.3