comparison avcodec.h @ 9626:bd3e11b60ccd libavcodec

Add a chroma_sample_location field to define positioning of chroma samples
author conrad
date Mon, 11 May 2009 04:34:23 +0000
parents fe6e82906aa8
children 4b6766057548
comparison
equal deleted inserted replaced
9625:7c4ab94a82d8 9626:bd3e11b60ccd
475 enum AVColorRange{ 475 enum AVColorRange{
476 AVCOL_RANGE_UNSPECIFIED=0, 476 AVCOL_RANGE_UNSPECIFIED=0,
477 AVCOL_RANGE_MPEG =1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges 477 AVCOL_RANGE_MPEG =1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges
478 AVCOL_RANGE_JPEG =2, ///< the normal 2^n-1 "JPEG" YUV ranges 478 AVCOL_RANGE_JPEG =2, ///< the normal 2^n-1 "JPEG" YUV ranges
479 AVCOL_RANGE_NB , ///< Not part of ABI 479 AVCOL_RANGE_NB , ///< Not part of ABI
480 };
481
482 /**
483 * X X 3 4 X X are luma samples,
484 * 1 2 1-6 are possible chroma positions
485 * X X 5 6 X 0 is undefined/unknown position
486 */
487 enum AVChromaLocation{
488 AVCHROMA_LOC_UNSPECIFIED=0,
489 AVCHROMA_LOC_LEFT =1, ///< mpeg2/4, h264 default
490 AVCHROMA_LOC_CENTER =2, ///< mpeg1, jpeg, h263
491 AVCHROMA_LOC_TOPLEFT =3, ///< DV
492 AVCHROMA_LOC_TOP =4,
493 AVCHROMA_LOC_BOTTOMLEFT =5,
494 AVCHROMA_LOC_BOTTOM =6,
495 AVCHROMA_LOC_NB , ///< Not part of ABI
480 }; 496 };
481 497
482 typedef struct RcOverride{ 498 typedef struct RcOverride{
483 int start_frame; 499 int start_frame;
484 int end_frame; 500 int end_frame;
2479 * MPEG vs JPEG YUV range. 2495 * MPEG vs JPEG YUV range.
2480 * - encoding: Set by user 2496 * - encoding: Set by user
2481 * - decoding: Set by libavcodec 2497 * - decoding: Set by libavcodec
2482 */ 2498 */
2483 enum AVColorRange color_range; 2499 enum AVColorRange color_range;
2500
2501 /**
2502 * This defines the location of chroma samples.
2503 * - encoding: Set by user
2504 * - decoding: Set by libavcodec
2505 */
2506 enum AVChromaLocation chroma_sample_location;
2484 } AVCodecContext; 2507 } AVCodecContext;
2485 2508
2486 /** 2509 /**
2487 * AVCodec. 2510 * AVCodec.
2488 */ 2511 */