comparison avcodec.h @ 1668:30746f429df6 libavcodec

move motion_val & mb_type to AVFrame patch by (Wolfgang Hesseler <qv at multimediaware dot com>) cleanups & fixes by me
author michael
date Tue, 09 Dec 2003 01:49:56 +0000
parents 4c9fd29f1606
children cb09cf265a87
comparison
equal deleted inserted replaced
1667:720c073661a1 1668:30746f429df6
15 #include "rational.h" 15 #include "rational.h"
16 #include <sys/types.h> /* size_t */ 16 #include <sys/types.h> /* size_t */
17 17
18 #define FFMPEG_VERSION_INT 0x000408 18 #define FFMPEG_VERSION_INT 0x000408
19 #define FFMPEG_VERSION "0.4.8" 19 #define FFMPEG_VERSION "0.4.8"
20 #define LIBAVCODEC_BUILD 4694 20 #define LIBAVCODEC_BUILD 4695
21 21
22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT 22 #define LIBAVCODEC_VERSION_INT FFMPEG_VERSION_INT
23 #define LIBAVCODEC_VERSION FFMPEG_VERSION 23 #define LIBAVCODEC_VERSION FFMPEG_VERSION
24 24
25 #define AV_STRINGIFY(s) AV_TOSTRING(s) 25 #define AV_STRINGIFY(s) AV_TOSTRING(s)
280 /* if 'parse_only' field is true, then avcodec_parse_frame() can be 280 /* if 'parse_only' field is true, then avcodec_parse_frame() can be
281 used */ 281 used */
282 #define CODEC_CAP_PARSE_ONLY 0x0004 282 #define CODEC_CAP_PARSE_ONLY 0x0004
283 #define CODEC_CAP_TRUNCATED 0x0008 283 #define CODEC_CAP_TRUNCATED 0x0008
284 284
285 //the following defines might change, so dont expect compatibility if u use them
286 #define MB_TYPE_INTRA4x4 0x0001
287 #define MB_TYPE_INTRA16x16 0x0002 //FIXME h264 specific
288 #define MB_TYPE_INTRA_PCM 0x0004 //FIXME h264 specific
289 #define MB_TYPE_16x16 0x0008
290 #define MB_TYPE_16x8 0x0010
291 #define MB_TYPE_8x16 0x0020
292 #define MB_TYPE_8x8 0x0040
293 #define MB_TYPE_INTERLACED 0x0080
294 #define MB_TYPE_DIRECT2 0x0100 //FIXME
295 #define MB_TYPE_ACPRED 0x0200
296 #define MB_TYPE_GMC 0x0400
297 #define MB_TYPE_SKIP 0x0800
298 #define MB_TYPE_P0L0 0x1000
299 #define MB_TYPE_P1L0 0x2000
300 #define MB_TYPE_P0L1 0x4000
301 #define MB_TYPE_P1L1 0x8000
302 #define MB_TYPE_L0 (MB_TYPE_P0L0 | MB_TYPE_P1L0)
303 #define MB_TYPE_L1 (MB_TYPE_P0L1 | MB_TYPE_P1L1)
304 #define MB_TYPE_L0L1 (MB_TYPE_L0 | MB_TYPE_L1)
305 #define MB_TYPE_QUANT 0x00010000
306 #define MB_TYPE_CBP 0x00020000
307 //Note bits 24-31 are reserved for codec specific use (h264 ref0, mpeg1 0mv, ...)
308
285 /** 309 /**
286 * Pan Scan area. 310 * Pan Scan area.
287 * this specifies the area which should be displayed. Note there may be multiple such areas for one frame 311 * this specifies the area which should be displayed. Note there may be multiple such areas for one frame
288 */ 312 */
289 typedef struct AVPanScan{ 313 typedef struct AVPanScan{
401 * stride= mb_width = (width+15)>>4\ 425 * stride= mb_width = (width+15)>>4\
402 * - encoding: unused\ 426 * - encoding: unused\
403 * - decoding: set by lavc\ 427 * - decoding: set by lavc\
404 */\ 428 */\
405 uint8_t *mbskip_table;\ 429 uint8_t *mbskip_table;\
430 \
431 /**\
432 * Motion vector table\
433 * - encoding: unused\
434 * - decoding: set by lavc\
435 */\
436 int16_t (*motion_val[2])[2];\
437 \
438 /**\
439 * Macroblock type table\
440 * mb_type_base + mb_width + 2\
441 * - encoding: unused\
442 * - decoding: set by lavc\
443 */\
444 uint32_t *mb_type;\
445 \
446 /**\
447 * Macroblock size: (0->16x16, 1->8x8, 2-> 4x4, 3-> 2x2)\
448 * - encoding: unused\
449 * - decoding: set by lavc\
450 */\
451 uint8_t motion_subsample_log2;\
406 \ 452 \
407 /**\ 453 /**\
408 * for some private data of the user\ 454 * for some private data of the user\
409 * - encoding: unused\ 455 * - encoding: unused\
410 * - decoding: set by user\ 456 * - decoding: set by user\