Mercurial > mplayer.hg
diff libmpcodecs/img_format.h @ 30096:76c25bfa181b
Add a helper function to get the chroma scale shift and use to simplify mpi setup.
author | reimar |
---|---|
date | Wed, 30 Dec 2009 11:08:44 +0000 |
parents | 0447ba499275 |
children | 834af9d1e3e9 |
line wrap: on
line diff
--- a/libmpcodecs/img_format.h Tue Dec 29 22:16:28 2009 +0000 +++ b/libmpcodecs/img_format.h Wed Dec 30 11:08:44 2009 +0000 @@ -133,4 +133,11 @@ const char *vo_format_name(int format); +/** + * Calculates the scale shifts for the chroma planes for planar YUV + * + * \return bits-per-pixel for format if successful (i.e. format is 3 or 4-planes planar YUV), 0 otherwise + */ +int mp_get_chroma_shift(int format, int *x_shift, int *y_shift); + #endif /* MPLAYER_IMG_FORMAT_H */