Mercurial > libavcodec.hg
comparison avcodec.h @ 345:e05b357a398a libavcodec
export mbskip_table for direct rendering
add hurry_up support
author | michaelni |
---|---|
date | Sat, 27 Apr 2002 13:12:57 +0000 |
parents | bf26081c373c |
children | 34f6c77ff01a |
comparison
equal
deleted
inserted
replaced
344:9f6071a87e17 | 345:e05b357a398a |
---|---|
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 4603 | 8 #define LIBAVCODEC_BUILD 4604 |
9 #define LIBAVCODEC_BUILD_STR "4603" | 9 #define LIBAVCODEC_BUILD_STR "4604" |
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, |
139 int frame_size; /* in samples, initialized when calling 'init' */ | 139 int frame_size; /* in samples, initialized when calling 'init' */ |
140 int frame_number; /* audio or video frame number */ | 140 int frame_number; /* audio or video frame number */ |
141 int key_frame; /* true if the previous compressed frame was | 141 int key_frame; /* true if the previous compressed frame was |
142 a key frame (intra, or seekable) */ | 142 a key frame (intra, or seekable) */ |
143 int delay; /* number of frames the decoded output will be delayed relative to the encoded input */ | 143 int delay; /* number of frames the decoded output will be delayed relative to the encoded input */ |
144 uint8_t *mbskip_table; /* =1 if MB didnt change, is only valid for I/P frames | |
145 stride= mb_width = (width+15)>>4 */ | |
144 | 146 |
145 /* encoding parameters */ | 147 /* encoding parameters */ |
146 int quality; /* quality of the previous encoded frame | 148 int quality; /* quality of the previous encoded frame |
147 (between 1 (good) and 31 (bad)) | 149 (between 1 (good) and 31 (bad)) |
148 this is allso used to set the quality in vbr mode | 150 this is allso used to set the quality in vbr mode |
155 int max_b_frames; /* maximum b frames, the output will be delayed by max_b_frames+1 relative to the input */ | 157 int max_b_frames; /* maximum b frames, the output will be delayed by max_b_frames+1 relative to the input */ |
156 float b_quant_factor;/* qscale factor between ips and b frames */ | 158 float b_quant_factor;/* qscale factor between ips and b frames */ |
157 int rc_strategy; | 159 int rc_strategy; |
158 int b_frame_strategy; | 160 int b_frame_strategy; |
159 | 161 |
162 int hurry_up; /* when set to 1 during decoding, b frames will be skiped | |
163 when set to 2 idct/dequant will be skipped too */ | |
164 | |
160 struct AVCodec *codec; | 165 struct AVCodec *codec; |
161 void *priv_data; | 166 void *priv_data; |
162 | 167 |
163 /* The following data is for RTP friendly coding */ | 168 /* The following data is for RTP friendly coding */ |
164 /* By now only H.263/H.263+ coder honours this */ | 169 /* By now only H.263/H.263+ coder honours this */ |