diff options
author | 2011-11-01 23:20:38 +0100 | |
---|---|---|
committer | 2012-03-17 21:05:34 +0100 | |
commit | 1eaf5d262607fdce6f525e0b53c5d76fb23dc84a (patch) | |
tree | b16515c33ce793f29bf15787e1eb5c08159b1361 /libvo/osd.c | |
parent | cd713b4bebbb5a2e3200fa18790ad5b7ed3a6eb6 (diff) |
vo_direct3d: implement YUV conversion using shaders
Use the 3D rendering functions and shaders to render the video frame. This
is very similar to vo_gl. Most planar formats with varying chroma shifts
and bit depths are supported (including 10 bit), as well as some RGB
formats. The old code that used D3D's StretchRect function is still
available, but will by default be used with the least priority.
Also implement video equalizers and colorspace selection. These use the
same code as vo_gl and vo_vdpau, and are available only if shader YUV
conversion is active.
The rendering is extremely simple and naive, there are no filters etc.
Since compiling shaders seems to require the 500 MB DirectX SDK, all
shaders come in pre-compiled form, and there is no make rule to compile
them. mplayer should be compilable without 500 MB of garbage.
The main problem is that compiling shaders within an application seems to
require d3dx9_*.dll, which isn't installed by default.
Add an option ("disable-texture-align") that allows making the video
textures exactly the same size as the source video. The code used to align
the OSD texture size on 16 for unknown reasons, but since this was perhaps
a good reason, this behavior is kept for video textures as well. (There is
a chance that the alignment improves performance and stability with some
drivers.) Passing this option disables this behavior. It is useful for
reducing texture filtering artifacts at the bottom/right borders.
Diffstat (limited to 'libvo/osd.c')
0 files changed, 0 insertions, 0 deletions