Mercurial > libavcodec.hg
comparison avcodec.h @ 1085:9acf4b552047 libavcodec
move repeat_pict field from AVCodecContext -> AVFrame (closes bug #683536)
author | michaelni |
---|---|
date | Wed, 26 Feb 2003 17:26:20 +0000 |
parents | 01154fced380 |
children | d3b93dc997a3 |
comparison
equal
deleted
inserted
replaced
1084:01154fced380 | 1085:9acf4b552047 |
---|---|
14 | 14 |
15 #include "common.h" | 15 #include "common.h" |
16 | 16 |
17 #define LIBAVCODEC_VERSION_INT 0x000406 | 17 #define LIBAVCODEC_VERSION_INT 0x000406 |
18 #define LIBAVCODEC_VERSION "0.4.6" | 18 #define LIBAVCODEC_VERSION "0.4.6" |
19 #define LIBAVCODEC_BUILD 4657 | 19 #define LIBAVCODEC_BUILD 4658 |
20 #define LIBAVCODEC_BUILD_STR "4657" | 20 #define LIBAVCODEC_BUILD_STR "4658" |
21 | 21 |
22 enum CodecID { | 22 enum CodecID { |
23 CODEC_ID_NONE, | 23 CODEC_ID_NONE, |
24 CODEC_ID_MPEG1VIDEO, | 24 CODEC_ID_MPEG1VIDEO, |
25 CODEC_ID_H263, | 25 CODEC_ID_H263, |
278 * encoding: set by the one who allocs it\ | 278 * encoding: set by the one who allocs it\ |
279 * decoding: set by the one who allocs it\ | 279 * decoding: set by the one who allocs it\ |
280 * Note: user allocated (direct rendering) & internal buffers can not coexist currently\ | 280 * Note: user allocated (direct rendering) & internal buffers can not coexist currently\ |
281 */\ | 281 */\ |
282 int type;\ | 282 int type;\ |
283 \ | |
284 /**\ | |
285 * when decoding, this signal how much the picture must be delayed.\ | |
286 * extra_delay = repeat_pict / (2*fps)\ | |
287 * encoding: unused\ | |
288 * decoding: set by lavc\ | |
289 */\ | |
290 int repeat_pict; | |
291 | |
283 | 292 |
284 #define FF_BUFFER_TYPE_INTERNAL 1 | 293 #define FF_BUFFER_TYPE_INTERNAL 1 |
285 #define FF_BUFFER_TYPE_USER 2 // Direct rendering buffers | 294 #define FF_BUFFER_TYPE_USER 2 // Direct rendering buffers |
286 #define FF_BUFFER_TYPE_SHARED 4 // input frame for encoding(wont be dealloced) | 295 #define FF_BUFFER_TYPE_SHARED 4 // input frame for encoding(wont be dealloced) |
287 | 296 |
377 * pixel format, see PIX_FMT_xxx | 386 * pixel format, see PIX_FMT_xxx |
378 * encoding: unused | 387 * encoding: unused |
379 * decoding: set by lavc. | 388 * decoding: set by lavc. |
380 */ | 389 */ |
381 enum PixelFormat pix_fmt; | 390 enum PixelFormat pix_fmt; |
382 | 391 |
383 int repeat_pict; /* when decoding, this signal how much the picture */ | |
384 /* must be delayed. */ | |
385 /* extra_delay = (repeat_pict / 2) * (1/fps) */ | |
386 | |
387 /** | 392 /** |
388 * if non NULL, 'draw_horiz_band' is called by the libavcodec | 393 * if non NULL, 'draw_horiz_band' is called by the libavcodec |
389 * decoder to draw an horizontal band. It improve cache usage. Not | 394 * decoder to draw an horizontal band. It improve cache usage. Not |
390 * all codecs can do that. You must check the codec capabilities | 395 * all codecs can do that. You must check the codec capabilities |
391 * before | 396 * before |