summaryrefslogtreecommitdiff
path: root/libavformat/riff.h
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2010-12-26 01:23:44 +0000
committerPeter Ross <pross@xvid.org>2010-12-26 01:23:44 +0000
commit456a70aeb826b7b84d30cc3cc279fa7c65fc7d4e (patch)
treeac69b659056201d3c9b68aca8c8228524c26ce77 /libavformat/riff.h
parent52654005caa343e9d17c0776d05825f1d771f448 (diff)
add ff_get_bmp_header
Originally committed as revision 26091 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/riff.h')
-rw-r--r--libavformat/riff.h7
1 files changed, 7 insertions, 0 deletions
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);