diff options
author | David Conrad <lessen42@gmail.com> | 2009-05-11 04:34:23 +0000 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-05-11 04:34:23 +0000 |
commit | 580a7465fb416782a1d5ad95011351b9c257f0de (patch) | |
tree | f26ec625283620ebc2c6df689bd6cbffba0d6cc8 /libavcodec/avcodec.h | |
parent | 014b7ecb6643332af35251c751aebd04bac4bb1e (diff) | |
download | ffmpeg-580a7465fb416782a1d5ad95011351b9c257f0de.tar.gz |
Add a chroma_sample_location field to define positioning of chroma samples
Originally committed as revision 18795 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 42266735c8..c849fea01e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -479,6 +479,22 @@ enum AVColorRange{ AVCOL_RANGE_NB , ///< Not part of ABI }; +/** + * X X 3 4 X X are luma samples, + * 1 2 1-6 are possible chroma positions + * X X 5 6 X 0 is undefined/unknown position + */ +enum AVChromaLocation{ + AVCHROMA_LOC_UNSPECIFIED=0, + AVCHROMA_LOC_LEFT =1, ///< mpeg2/4, h264 default + AVCHROMA_LOC_CENTER =2, ///< mpeg1, jpeg, h263 + AVCHROMA_LOC_TOPLEFT =3, ///< DV + AVCHROMA_LOC_TOP =4, + AVCHROMA_LOC_BOTTOMLEFT =5, + AVCHROMA_LOC_BOTTOM =6, + AVCHROMA_LOC_NB , ///< Not part of ABI +}; + typedef struct RcOverride{ int start_frame; int end_frame; @@ -2481,6 +2497,13 @@ typedef struct AVCodecContext { * - decoding: Set by libavcodec */ enum AVColorRange color_range; + + /** + * This defines the location of chroma samples. + * - encoding: Set by user + * - decoding: Set by libavcodec + */ + enum AVChromaLocation chroma_sample_location; } AVCodecContext; /** |