Mercurial > libavcodec.hg
diff avcodec.h @ 349:34f6c77ff01a libavcodec
Support for external huffman table and various fixes by Alex Beregszaszi <alex@naxine.org>
author | arpi_esp |
---|---|
date | Wed, 01 May 2002 18:12:04 +0000 |
parents | e05b357a398a |
children | 1ee4ba4ca783 |
line wrap: on
line diff
--- a/avcodec.h Wed May 01 13:27:40 2002 +0000 +++ b/avcodec.h Wed May 01 18:12:04 2002 +0000 @@ -5,8 +5,8 @@ #define LIBAVCODEC_VERSION_INT 0x000406 #define LIBAVCODEC_VERSION "0.4.6" -#define LIBAVCODEC_BUILD 4604 -#define LIBAVCODEC_BUILD_STR "4604" +#define LIBAVCODEC_BUILD 4605 +#define LIBAVCODEC_BUILD_STR "4605" enum CodecID { CODEC_ID_NONE, @@ -93,6 +93,7 @@ #define CODEC_FLAG_INPUT_PRESERVED 0x0100 #define CODEC_FLAG_PASS1 0x0200 /* use internal 2pass ratecontrol in first pass mode */ #define CODEC_FLAG_PASS2 0x0400 /* use internal 2pass ratecontrol in second pass mode */ +#define CODEC_FLAG_EXTERN_HUFF 0x1000 /* use external huffman table (for mjpeg) */ /* codec capabilities */ @@ -110,6 +111,12 @@ int me_method; /* ME algorithm used for video coding */ + /* extra data from parent application to codec, e.g. huffman table + for mjpeg */ + /* the parent should allocate and free this buffer */ + void *extradata; + int extradata_size; + /* video only */ int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */ int width, height;