mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 17:42:17 +00:00
1eaf5d2626
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. |
||
---|---|---|
.. | ||
aclib_template.c | ||
aclib.c | ||
aspect.c | ||
aspect.h | ||
cocoa_common.h | ||
cocoa_common.m | ||
csputils.c | ||
csputils.h | ||
d3d_shader_yuv.h | ||
d3d_shader_yuv.hlsl | ||
eosd_packer.c | ||
eosd_packer.h | ||
fastmemcpy.h | ||
geometry.c | ||
geometry.h | ||
gl_common.c | ||
gl_common.h | ||
gtf.c | ||
gtf.h | ||
matrixview_font.h | ||
mga_template.c | ||
old_vo_defines.h | ||
old_vo_wrapper.c | ||
old_vo_wrapper.h | ||
osd_template.c | ||
osd.c | ||
osd.h | ||
osx_common.c | ||
osx_common.h | ||
sdl_common.c | ||
sdl_common.h | ||
spuenc.c | ||
spuenc.h | ||
vdpau_template.c | ||
vesa_lvo.c | ||
vesa_lvo.h | ||
video_out_internal.h | ||
video_out.c | ||
video_out.h | ||
videodev_mjpeg.h | ||
vo_3dfx.c | ||
vo_aa.c | ||
vo_bl.c | ||
vo_caca.c | ||
vo_corevideo.h | ||
vo_corevideo.m | ||
vo_dfbmga.c | ||
vo_dga.c | ||
vo_direct3d.c | ||
vo_directfb2.c | ||
vo_directx.c | ||
vo_dxr3.c | ||
vo_fbdev2.c | ||
vo_fbdev.c | ||
vo_ggi.c | ||
vo_gif89a.c | ||
vo_gl.c | ||
vo_ivtv.c | ||
vo_ivtv.h | ||
vo_jpeg.c | ||
vo_kva.c | ||
vo_md5sum.c | ||
vo_mga.c | ||
vo_mpegpes.c | ||
vo_null.c | ||
vo_png.c | ||
vo_pnm.c | ||
vo_quartz.c | ||
vo_s3fb.c | ||
vo_sdl.c | ||
vo_svga.c | ||
vo_tdfx_vid.c | ||
vo_tdfxfb.c | ||
vo_tga.c | ||
vo_v4l2.c | ||
vo_v4l2.h | ||
vo_vdpau.c | ||
vo_vesa.c | ||
vo_wii.c | ||
vo_x11.c | ||
vo_xmga.c | ||
vo_xover.c | ||
vo_xv.c | ||
vo_xvr100.c | ||
vo_yuv4mpeg.c | ||
w32_common.c | ||
w32_common.h | ||
x11_common.c | ||
x11_common.h |