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/vo_gl.c | |
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/vo_gl.c')
-rw-r--r-- | libvo/vo_gl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 236e69eda7..f339f2aee8 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -534,7 +534,9 @@ static int initGl(uint32_t d_width, uint32_t d_height) { int scale_type = mipmap_gen ? GL_LINEAR_MIPMAP_NEAREST : GL_LINEAR; autodetectGlExtensions(); gl_target = use_rectangle == 1 ? GL_TEXTURE_RECTANGLE : GL_TEXTURE_2D; - yuvconvtype = use_yuv | lscale << YUV_LUM_SCALER_SHIFT | cscale << YUV_CHROM_SCALER_SHIFT; + yuvconvtype = SET_YUV_CONVERSION(use_yuv) | + SET_YUV_LUM_SCALER(lscale) | + SET_YUV_CHROM_SCALER(cscale); texSize(image_width, image_height, &texture_width, &texture_height); |