diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-15 18:50:57 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:44 +0200 |
commit | 93336619b29190285cc0bc08ec7696bcd48399b3 (patch) | |
tree | 44c7ea42220a79a76c84b1f68b73ddfe89b114e5 /libvo/gl_common.h | |
parent | 7de77cdb1117cef3df13660b17ce4b0c76159b6e (diff) | |
download | mpv-93336619b29190285cc0bc08ec7696bcd48399b3.tar.bz2 mpv-93336619b29190285cc0bc08ec7696bcd48399b3.tar.xz |
vo_gl: add helper macros to build the yuv conversion type number
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31742 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/gl_common.h')
-rw-r--r-- | libvo/gl_common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h index a637006f5c..ddf0856956 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -347,6 +347,9 @@ int loadGPUProgram(GLenum target, char *prog); #define YUV_LUM_SCALER(t) (((t) >> YUV_LUM_SCALER_SHIFT) & YUV_SCALER_MASK) //! extract chrominance scaler out of type #define YUV_CHROM_SCALER(t) (((t) >> YUV_CHROM_SCALER_SHIFT) & YUV_SCALER_MASK) +#define SET_YUV_CONVERSION(c) ((c) & YUV_CONVERSION_MASK) +#define SET_YUV_LUM_SCALER(s) (((s) & YUV_SCALER_MASK) << YUV_LUM_SCALER_SHIFT) +#define SET_YUV_CHROM_SCALER(s) (((s) & YUV_SCALER_MASK) << YUV_CHROM_SCALER_SHIFT) /** \} */ typedef struct { |