Mercurial > libavcodec.hg
comparison avcodec.h @ 376:ba9c3b8088c0 libavcodec
- pict_type exported to AVCodecContext
- Added real_pict_num to AVCodecContext, it represent the number of the
previous encoded frame, usefull when coding with B frames.
- Warning fix in motion_est.c
author | pulento |
---|---|
date | Sat, 11 May 2002 23:42:16 +0000 |
parents | 8187bb132d85 |
children | 0d73175fbded |
comparison
equal
deleted
inserted
replaced
375:749b5c16c0f7 | 376:ba9c3b8088c0 |
---|---|
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 4605 | 8 #define LIBAVCODEC_BUILD 4606 |
9 #define LIBAVCODEC_BUILD_STR "4605" | 9 #define LIBAVCODEC_BUILD_STR "4606" |
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, |
143 int sample_rate; /* samples per sec */ | 143 int sample_rate; /* samples per sec */ |
144 int channels; | 144 int channels; |
145 int sample_fmt; /* sample format, currenly unused */ | 145 int sample_fmt; /* sample format, currenly unused */ |
146 | 146 |
147 /* the following data should not be initialized */ | 147 /* the following data should not be initialized */ |
148 int frame_size; /* in samples, initialized when calling 'init' */ | 148 int frame_size; /* in samples, initialized when calling 'init' */ |
149 int frame_number; /* audio or video frame number */ | 149 int frame_number; /* audio or video frame number */ |
150 int key_frame; /* true if the previous compressed frame was | 150 int real_pict_num; /* returns the real picture number of |
151 a key frame (intra, or seekable) */ | 151 previous encoded frame */ |
152 int delay; /* number of frames the decoded output will be delayed relative to the encoded input */ | 152 int key_frame; /* true if the previous compressed frame was |
153 a key frame (intra, or seekable) */ | |
154 int pict_type; /* picture type of the previous | |
155 encoded frame */ | |
156 /* FIXME: these should have FF_ */ | |
157 #define I_TYPE 1 // Intra | |
158 #define P_TYPE 2 // Predicted | |
159 #define B_TYPE 3 // Bi-dir predicted | |
160 #define S_TYPE 4 // S(GMC)-VOP MPEG4 | |
161 | |
162 int delay; /* number of frames the decoded output | |
163 will be delayed relative to the encoded input */ | |
153 uint8_t *mbskip_table; /* =1 if MB didnt change, is only valid for I/P frames | 164 uint8_t *mbskip_table; /* =1 if MB didnt change, is only valid for I/P frames |
154 stride= mb_width = (width+15)>>4 */ | 165 stride= mb_width = (width+15)>>4 */ |
155 | 166 |
156 /* encoding parameters */ | 167 /* encoding parameters */ |
157 int quality; /* quality of the previous encoded frame | 168 int quality; /* quality of the previous encoded frame |