Mercurial > mplayer.hg
diff libvo/vo_gl.c @ 30110:19414a605695
Add support for 16-bit per component YUV formats.
author | reimar |
---|---|
date | Thu, 31 Dec 2009 22:53:25 +0000 |
parents | 0f25d3062987 |
children | f5d435782075 |
line wrap: on
line diff
--- a/libvo/vo_gl.c Thu Dec 31 19:59:58 2009 +0000 +++ b/libvo/vo_gl.c Thu Dec 31 22:53:25 2009 +0000 @@ -971,7 +971,8 @@ caps |= VFCAP_OSD | VFCAP_EOSD | (scaled_osd ? 0 : VFCAP_EOSD_UNSCALED); if (format == IMGFMT_RGB24 || format == IMGFMT_RGBA) return caps; - if (use_yuv && mp_get_chroma_shift(format, NULL, NULL)) + if (use_yuv && mp_get_chroma_shift(format, NULL, NULL) && + (IMGFMT_IS_YUVP16_NE(format) || !IMGFMT_IS_YUVP16(format))) return caps; // HACK, otherwise we get only b&w with some filters (e.g. -vf eq) // ideally MPlayer should be fixed instead not to use Y800 when it has the choice