diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-17 22:30:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-23 03:07:30 +0200 |
commit | b7397857e20d5ad25e6c59a7d052bd61fe224e10 (patch) | |
tree | a2ce9e434b4757bac0bb81c2e29b53e43ceda40d /libavcodec/avcodec.h | |
parent | 4443213d2ea42fdf66a90c8d3b25293622d2c90a (diff) | |
download | ffmpeg-b7397857e20d5ad25e6c59a7d052bd61fe224e10.tar.gz |
avcodec: add avcodec_enum_to_chroma_pos()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fca8a8f67b..bcef2a454d 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3606,6 +3606,17 @@ void avcodec_align_dimensions(AVCodecContext *s, int *width, int *height); void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POINTERS]); +/** + * Converts AVChromaLocation to swscale x/y chroma position. + * + * The positions represent the chroma (0,0) position in a coordinates system + * with luma (0,0) representing the origin and luma(1,1) representing 256,256 + * + * @param xpos horizontal chroma sample position + * @param ypos vertical chroma sample position + */ +int avcodec_enum_to_chroma_pos(int *xpos, int *ypos, enum AVChromaLocation pos); + #if FF_API_OLD_DECODE_AUDIO /** * Wrapper function which calls avcodec_decode_audio4. |