comparison 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
comparison
equal deleted inserted replaced
348:ae9e9af0b627 349:34f6c77ff01a
3 3
4 #include "common.h" 4 #include "common.h"
5 5
6 #define LIBAVCODEC_VERSION_INT 0x000406 6 #define LIBAVCODEC_VERSION_INT 0x000406
7 #define LIBAVCODEC_VERSION "0.4.6" 7 #define LIBAVCODEC_VERSION "0.4.6"
8 #define LIBAVCODEC_BUILD 4604 8 #define LIBAVCODEC_BUILD 4605
9 #define LIBAVCODEC_BUILD_STR "4604" 9 #define LIBAVCODEC_BUILD_STR "4605"
10 10
11 enum CodecID { 11 enum CodecID {
12 CODEC_ID_NONE, 12 CODEC_ID_NONE,
13 CODEC_ID_MPEG1VIDEO, 13 CODEC_ID_MPEG1VIDEO,
14 CODEC_ID_H263, 14 CODEC_ID_H263,
91 /* parent program gurantees that the input for b-frame containing streams is not written to 91 /* parent program gurantees that the input for b-frame containing streams is not written to
92 for at least s->max_b_frames+1 frames, if this is not set than the input will be copied */ 92 for at least s->max_b_frames+1 frames, if this is not set than the input will be copied */
93 #define CODEC_FLAG_INPUT_PRESERVED 0x0100 93 #define CODEC_FLAG_INPUT_PRESERVED 0x0100
94 #define CODEC_FLAG_PASS1 0x0200 /* use internal 2pass ratecontrol in first pass mode */ 94 #define CODEC_FLAG_PASS1 0x0200 /* use internal 2pass ratecontrol in first pass mode */
95 #define CODEC_FLAG_PASS2 0x0400 /* use internal 2pass ratecontrol in second pass mode */ 95 #define CODEC_FLAG_PASS2 0x0400 /* use internal 2pass ratecontrol in second pass mode */
96 #define CODEC_FLAG_EXTERN_HUFF 0x1000 /* use external huffman table (for mjpeg) */
96 97
97 /* codec capabilities */ 98 /* codec capabilities */
98 99
99 /* decoder can use draw_horiz_band callback */ 100 /* decoder can use draw_horiz_band callback */
100 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 101 #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001
107 int flags; 108 int flags;
108 int sub_id; /* some codecs needs additionnal format info. It is 109 int sub_id; /* some codecs needs additionnal format info. It is
109 stored there */ 110 stored there */
110 111
111 int me_method; /* ME algorithm used for video coding */ 112 int me_method; /* ME algorithm used for video coding */
113
114 /* extra data from parent application to codec, e.g. huffman table
115 for mjpeg */
116 /* the parent should allocate and free this buffer */
117 void *extradata;
118 int extradata_size;
112 119
113 /* video only */ 120 /* video only */
114 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */ 121 int frame_rate; /* frames per sec multiplied by FRAME_RATE_BASE */
115 int width, height; 122 int width, height;
116 int aspect_ratio_info; 123 int aspect_ratio_info;