comparison avcodec.h @ 5590:027c48595fa1 libavcodec

prettyprinting cosmetics
author diego
date Sat, 25 Aug 2007 09:23:17 +0000
parents 1a92e129a679
children ad0ab0eebd69
comparison
equal deleted inserted replaced
5589:946c2db0a093 5590:027c48595fa1
361 #define CODEC_FLAG_PART 0x0080 ///< Use data partitioning. 361 #define CODEC_FLAG_PART 0x0080 ///< Use data partitioning.
362 /* The parent program guarantees that the input for B-frames containing 362 /* The parent program guarantees that the input for B-frames containing
363 * streams is not written to for at least s->max_b_frames+1 frames, if 363 * streams is not written to for at least s->max_b_frames+1 frames, if
364 * this is not set the input will be copied. */ 364 * this is not set the input will be copied. */
365 #define CODEC_FLAG_INPUT_PRESERVED 0x0100 365 #define CODEC_FLAG_INPUT_PRESERVED 0x0100
366 #define CODEC_FLAG_PASS1 0x0200 ///< Use internal 2pass ratecontrol in first pass mode. 366 #define CODEC_FLAG_PASS1 0x0200 ///< Use internal 2pass ratecontrol in first pass mode.
367 #define CODEC_FLAG_PASS2 0x0400 ///< Use internal 2pass ratecontrol in second pass mode. 367 #define CODEC_FLAG_PASS2 0x0400 ///< Use internal 2pass ratecontrol in second pass mode.
368 #define CODEC_FLAG_EXTERN_HUFF 0x1000 ///< Use external Huffman table (for MJPEG). 368 #define CODEC_FLAG_EXTERN_HUFF 0x1000 ///< Use external Huffman table (for MJPEG).
369 #define CODEC_FLAG_GRAY 0x2000 ///< Only decode/encode grayscale. 369 #define CODEC_FLAG_GRAY 0x2000 ///< Only decode/encode grayscale.
370 #define CODEC_FLAG_EMU_EDGE 0x4000///< Don't draw edges. 370 #define CODEC_FLAG_EMU_EDGE 0x4000 ///< Don't draw edges.
371 #define CODEC_FLAG_PSNR 0x8000 ///< error[?] variables will be set during encoding. 371 #define CODEC_FLAG_PSNR 0x8000 ///< error[?] variables will be set during encoding.
372 #define CODEC_FLAG_TRUNCATED 0x00010000 /** Input bitstream might be truncated at a random location instead 372 #define CODEC_FLAG_TRUNCATED 0x00010000 /** Input bitstream might be truncated at a random
373 of only at frame boundaries. */ 373 location instead of only at frame boundaries. */
374 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 ///< Normalize adaptive quantization. 374 #define CODEC_FLAG_NORMALIZE_AQP 0x00020000 ///< Normalize adaptive quantization.
375 #define CODEC_FLAG_INTERLACED_DCT 0x00040000 ///< Use interlaced DCT. 375 #define CODEC_FLAG_INTERLACED_DCT 0x00040000 ///< Use interlaced DCT.
376 #define CODEC_FLAG_LOW_DELAY 0x00080000 ///< Force low delay. 376 #define CODEC_FLAG_LOW_DELAY 0x00080000 ///< Force low delay.
377 #define CODEC_FLAG_ALT_SCAN 0x00100000 ///< Use alternate scan. 377 #define CODEC_FLAG_ALT_SCAN 0x00100000 ///< Use alternate scan.
378 #define CODEC_FLAG_TRELLIS_QUANT 0x00200000 ///< Use trellis quantization. 378 #define CODEC_FLAG_TRELLIS_QUANT 0x00200000 ///< Use trellis quantization.
447 #define MB_TYPE_16x16 0x0008 447 #define MB_TYPE_16x16 0x0008
448 #define MB_TYPE_16x8 0x0010 448 #define MB_TYPE_16x8 0x0010
449 #define MB_TYPE_8x16 0x0020 449 #define MB_TYPE_8x16 0x0020
450 #define MB_TYPE_8x8 0x0040 450 #define MB_TYPE_8x8 0x0040
451 #define MB_TYPE_INTERLACED 0x0080 451 #define MB_TYPE_INTERLACED 0x0080
452 #define MB_TYPE_DIRECT2 0x0100 //FIXME 452 #define MB_TYPE_DIRECT2 0x0100 //FIXME
453 #define MB_TYPE_ACPRED 0x0200 453 #define MB_TYPE_ACPRED 0x0200
454 #define MB_TYPE_GMC 0x0400 454 #define MB_TYPE_GMC 0x0400
455 #define MB_TYPE_SKIP 0x0800 455 #define MB_TYPE_SKIP 0x0800
456 #define MB_TYPE_P0L0 0x1000 456 #define MB_TYPE_P0L0 0x1000
457 #define MB_TYPE_P1L0 0x2000 457 #define MB_TYPE_P1L0 0x2000
709 #define FF_BUFFER_TYPE_USER 2 ///< direct rendering buffers (image is (de)allocated by user) 709 #define FF_BUFFER_TYPE_USER 2 ///< direct rendering buffers (image is (de)allocated by user)
710 #define FF_BUFFER_TYPE_SHARED 4 ///< Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared. 710 #define FF_BUFFER_TYPE_SHARED 4 ///< Buffer from somewhere else; don't deallocate image (data/base), all other tables are not shared.
711 #define FF_BUFFER_TYPE_COPY 8 ///< Just a (modified) copy of some other buffer, don't deallocate anything. 711 #define FF_BUFFER_TYPE_COPY 8 ///< Just a (modified) copy of some other buffer, don't deallocate anything.
712 712
713 713
714 #define FF_I_TYPE 1 // Intra 714 #define FF_I_TYPE 1 // Intra
715 #define FF_P_TYPE 2 // Predicted 715 #define FF_P_TYPE 2 // Predicted
716 #define FF_B_TYPE 3 // Bi-dir predicted 716 #define FF_B_TYPE 3 // Bi-dir predicted
717 #define FF_S_TYPE 4 // S(GMC)-VOP MPEG4 717 #define FF_S_TYPE 4 // S(GMC)-VOP MPEG4
718 #define FF_SI_TYPE 5 718 #define FF_SI_TYPE 5
719 #define FF_SP_TYPE 6 719 #define FF_SP_TYPE 6
720 720
721 #define FF_BUFFER_HINTS_VALID 0x01 // Buffer hints value is meaningful (if 0 ignore). 721 #define FF_BUFFER_HINTS_VALID 0x01 // Buffer hints value is meaningful (if 0 ignore).
722 #define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer. 722 #define FF_BUFFER_HINTS_READABLE 0x02 // Codec will read from buffer.
1261 * IDCT algorithm, see FF_IDCT_* below. 1261 * IDCT algorithm, see FF_IDCT_* below.
1262 * - encoding: Set by user. 1262 * - encoding: Set by user.
1263 * - decoding: Set by user. 1263 * - decoding: Set by user.
1264 */ 1264 */
1265 int idct_algo; 1265 int idct_algo;
1266 #define FF_IDCT_AUTO 0 1266 #define FF_IDCT_AUTO 0
1267 #define FF_IDCT_INT 1 1267 #define FF_IDCT_INT 1
1268 #define FF_IDCT_SIMPLE 2 1268 #define FF_IDCT_SIMPLE 2
1269 #define FF_IDCT_SIMPLEMMX 3 1269 #define FF_IDCT_SIMPLEMMX 3
1270 #define FF_IDCT_LIBMPEG2MMX 4 1270 #define FF_IDCT_LIBMPEG2MMX 4
1271 #define FF_IDCT_PS2 5 1271 #define FF_IDCT_PS2 5
1272 #define FF_IDCT_MLIB 6 1272 #define FF_IDCT_MLIB 6
1273 #define FF_IDCT_ARM 7 1273 #define FF_IDCT_ARM 7
1274 #define FF_IDCT_ALTIVEC 8 1274 #define FF_IDCT_ALTIVEC 8
1275 #define FF_IDCT_SH4 9 1275 #define FF_IDCT_SH4 9
1276 #define FF_IDCT_SIMPLEARM 10 1276 #define FF_IDCT_SIMPLEARM 10
1277 #define FF_IDCT_H264 11 1277 #define FF_IDCT_H264 11
1278 #define FF_IDCT_VP3 12 1278 #define FF_IDCT_VP3 12
1279 #define FF_IDCT_IPP 13 1279 #define FF_IDCT_IPP 13
1280 #define FF_IDCT_XVIDMMX 14 1280 #define FF_IDCT_XVIDMMX 14
1281 #define FF_IDCT_CAVS 15 1281 #define FF_IDCT_CAVS 15
1282 #define FF_IDCT_SIMPLEARMV5TE 16 1282 #define FF_IDCT_SIMPLEARMV5TE 16
1283 #define FF_IDCT_SIMPLEARMV6 17 1283 #define FF_IDCT_SIMPLEARMV6 17
1284 1284
1285 /** 1285 /**
1286 * slice count 1286 * slice count
1287 * - encoding: Set by libavcodec. 1287 * - encoding: Set by libavcodec.
1288 * - decoding: Set by user (or 0). 1288 * - decoding: Set by user (or 0).
1361 * debug 1361 * debug
1362 * - encoding: Set by user. 1362 * - encoding: Set by user.
1363 * - decoding: Set by user. 1363 * - decoding: Set by user.
1364 */ 1364 */
1365 int debug; 1365 int debug;
1366 #define FF_DEBUG_PICT_INFO 1 1366 #define FF_DEBUG_PICT_INFO 1
1367 #define FF_DEBUG_RC 2 1367 #define FF_DEBUG_RC 2
1368 #define FF_DEBUG_BITSTREAM 4 1368 #define FF_DEBUG_BITSTREAM 4
1369 #define FF_DEBUG_MB_TYPE 8 1369 #define FF_DEBUG_MB_TYPE 8
1370 #define FF_DEBUG_QP 16 1370 #define FF_DEBUG_QP 16
1371 #define FF_DEBUG_MV 32 1371 #define FF_DEBUG_MV 32
1372 #define FF_DEBUG_DCT_COEFF 0x00000040 1372 #define FF_DEBUG_DCT_COEFF 0x00000040
1373 #define FF_DEBUG_SKIP 0x00000080 1373 #define FF_DEBUG_SKIP 0x00000080
1374 #define FF_DEBUG_STARTCODE 0x00000100 1374 #define FF_DEBUG_STARTCODE 0x00000100
1375 #define FF_DEBUG_PTS 0x00000200 1375 #define FF_DEBUG_PTS 0x00000200
1376 #define FF_DEBUG_ER 0x00000400 1376 #define FF_DEBUG_ER 0x00000400
1377 #define FF_DEBUG_MMCO 0x00000800 1377 #define FF_DEBUG_MMCO 0x00000800
1378 #define FF_DEBUG_BUGS 0x00001000 1378 #define FF_DEBUG_BUGS 0x00001000
1379 #define FF_DEBUG_VIS_QP 0x00002000 1379 #define FF_DEBUG_VIS_QP 0x00002000
1380 #define FF_DEBUG_VIS_MB_TYPE 0x00004000 1380 #define FF_DEBUG_VIS_MB_TYPE 0x00004000
1381 1381
1382 /** 1382 /**
1383 * debug 1383 * debug
1384 * - encoding: Set by user. 1384 * - encoding: Set by user.
1432 * interlaced DCT comparison function 1432 * interlaced DCT comparison function
1433 * - encoding: Set by user. 1433 * - encoding: Set by user.
1434 * - decoding: unused 1434 * - decoding: unused
1435 */ 1435 */
1436 int ildct_cmp; 1436 int ildct_cmp;
1437 #define FF_CMP_SAD 0 1437 #define FF_CMP_SAD 0
1438 #define FF_CMP_SSE 1 1438 #define FF_CMP_SSE 1
1439 #define FF_CMP_SATD 2 1439 #define FF_CMP_SATD 2
1440 #define FF_CMP_DCT 3 1440 #define FF_CMP_DCT 3
1441 #define FF_CMP_PSNR 4 1441 #define FF_CMP_PSNR 4
1442 #define FF_CMP_BIT 5 1442 #define FF_CMP_BIT 5
1443 #define FF_CMP_RD 6 1443 #define FF_CMP_RD 6
1444 #define FF_CMP_ZERO 7 1444 #define FF_CMP_ZERO 7
1445 #define FF_CMP_VSAD 8 1445 #define FF_CMP_VSAD 8
1446 #define FF_CMP_VSSE 9 1446 #define FF_CMP_VSSE 9
1447 #define FF_CMP_NSSE 10 1447 #define FF_CMP_NSSE 10
1448 #define FF_CMP_W53 11 1448 #define FF_CMP_W53 11
1449 #define FF_CMP_W97 12 1449 #define FF_CMP_W97 12
1450 #define FF_CMP_DCTMAX 13 1450 #define FF_CMP_DCTMAX 13
1451 #define FF_CMP_DCT264 14 1451 #define FF_CMP_DCT264 14
1452 #define FF_CMP_CHROMA 256 1452 #define FF_CMP_CHROMA 256
1453 1453
1454 /** 1454 /**
1824 * - decoding: Set by libavcodec. 1824 * - decoding: Set by libavcodec.
1825 */ 1825 */
1826 int profile; 1826 int profile;
1827 #define FF_PROFILE_UNKNOWN -99 1827 #define FF_PROFILE_UNKNOWN -99
1828 #define FF_PROFILE_AAC_MAIN 0 1828 #define FF_PROFILE_AAC_MAIN 0
1829 #define FF_PROFILE_AAC_LOW 1 1829 #define FF_PROFILE_AAC_LOW 1
1830 #define FF_PROFILE_AAC_SSR 2 1830 #define FF_PROFILE_AAC_SSR 2
1831 #define FF_PROFILE_AAC_LTP 3 1831 #define FF_PROFILE_AAC_LTP 3
1832 1832
1833 /** 1833 /**
1834 * level 1834 * level
1835 * - encoding: Set by user. 1835 * - encoding: Set by user.
1836 * - decoding: Set by libavcodec. 1836 * - decoding: Set by libavcodec.