summaryrefslogtreecommitdiffstats
path: root/libvo/vo_mpegpes.c
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2011-11-06 07:40:06 +0100
committerwm4 <wm4@mplayer2.org>2012-03-17 21:06:28 +0100
commit032a3b827219235f39151cb186314c0b532f9197 (patch)
treeb480f5d9927901084e25150fe4cfc08b8d9ff9d5 /libvo/vo_mpegpes.c
parent8393796f0bb77b6c03af1df1111ac345dc549306 (diff)
downloadmpv-032a3b827219235f39151cb186314c0b532f9197.tar.bz2
mpv-032a3b827219235f39151cb186314c0b532f9197.tar.xz
vo_direct3d: add hack for using 2 channel textures for 10 bit pixel formats
This actually applies to YUV formats with 9-16 bit depths. This hack is disabled by default, and the VO will use 16 bit textures normally. It can be enabled by passing the no16bit-textures option is passed to vo_direct3d. Then the VO will use D3DFMT_A8L8 as texture formats for the YUV plane (instead of D3DFMT_L16), and compute the sampled two color values back into one. In some cases it might be undesireable to use 16 bit texture formats. At least some OpenGL drivers on Linux (Mesa + Intel) round values sampled from 16 bit textures back into 8 bit, which loses 8 from 10 bit color information when playing 10 bit formats. It is unknown whether there are D3D9 drivers which do this, so this commit might be removed later.
Diffstat (limited to 'libvo/vo_mpegpes.c')
0 files changed, 0 insertions, 0 deletions