Mercurial > libavcodec.hg
comparison avcodec.h @ 924:3814e9115672 libavcodec
cleanup / messup?
fixes 20% speedloss bug
removes redundant variables from MpegEncContext
release buffers in avcodec_flush_buffers() (untested)
author | michaelni |
---|---|
date | Mon, 09 Dec 2002 00:29:17 +0000 |
parents | 22cec68e6f01 |
children | 7fccaa0d699d |
comparison
equal
deleted
inserted
replaced
923:3b5d9ecedc73 | 924:3814e9115672 |
---|---|
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 4643 | 8 #define LIBAVCODEC_BUILD 4644 |
9 #define LIBAVCODEC_BUILD_STR "4643" | 9 #define LIBAVCODEC_BUILD_STR "4644" |
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, |
117 /* ME algos sorted by quality */ | 117 /* ME algos sorted by quality */ |
118 static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, | 118 static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG, |
119 ME_X1, ME_EPZS, ME_FULL }; | 119 ME_X1, ME_EPZS, ME_FULL }; |
120 | 120 |
121 | 121 |
122 #define FF_MAX_B_FRAMES 4 | 122 #define FF_MAX_B_FRAMES 8 |
123 | 123 |
124 /* encoding support | 124 /* encoding support |
125 these flags can be passed in AVCodecContext.flags before initing | 125 these flags can be passed in AVCodecContext.flags before initing |
126 Note: note not everything is supported yet | 126 Note: note not everything is supported yet |
127 */ | 127 */ |
258 * error\ | 258 * error\ |
259 * encoding: set by lavc if flags&CODEC_FLAG_PSNR\ | 259 * encoding: set by lavc if flags&CODEC_FLAG_PSNR\ |
260 * decoding: unused\ | 260 * decoding: unused\ |
261 */\ | 261 */\ |
262 uint64_t error[4];\ | 262 uint64_t error[4];\ |
263 \ | |
264 /**\ | |
265 * type of the buffer (to keep track of who has to dealloc data[*])\ | |
266 * encoding: set by the one who allocs it\ | |
267 * decoding: set by the one who allocs it\ | |
268 * Note: user allocated (direct rendering) & internal buffers can not coexist currently\ | |
269 */\ | |
270 int type;\ | |
271 | |
272 #define FF_BUFFER_TYPE_INTERNAL 1 | |
273 #define FF_BUFFER_TYPE_USER 2 // Direct rendering buffers | |
274 #define FF_BUFFER_TYPE_SHARED 4 // input frame for encoding(wont be dealloced) | |
275 | |
263 | 276 |
264 #define FF_I_TYPE 1 // Intra | 277 #define FF_I_TYPE 1 // Intra |
265 #define FF_P_TYPE 2 // Predicted | 278 #define FF_P_TYPE 2 // Predicted |
266 #define FF_B_TYPE 3 // Bi-dir predicted | 279 #define FF_B_TYPE 3 // Bi-dir predicted |
267 #define FF_S_TYPE 4 // S(GMC)-VOP MPEG4 | 280 #define FF_S_TYPE 4 // S(GMC)-VOP MPEG4 |