1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-21 15:12:48 +00:00
mpv/video/out
wm4 58a7d81dc5 gl_video: improve dithering
Use a different algorithm to generate the dithering matrix. This
looks much better than the previous ordered dither matrix with its
cross-hatch artifacts.

The matrix generation algorithm as well as its implementation was
contributed by Wessel Dankers aka Fruit. The code in dither.c is
his implementation, reformatted and with static global variables
removed by me.

The new matrix is uploaded as float texture - before this commit, it
was a normal integer fixed point matrix. This means dithering will
be disabled on systems without float textures.

The size of the dithering matrix can be configured, as the matrix is
generated at runtime. The generation of the matrix can take rather
long, and is already unacceptable with size 8. The default is at 6,
which takes about 100 ms on a Core2 Duo system with dither.c compiled
at -O2, which I consider just about acceptable.

The old ordered dithering is still available and can be selected by
putting the dither=ordered sub-option. The ordered dither matrix
generation code was moved to dither.c. This function was originally
written by Uoti Urpala.
2013-05-26 16:44:20 +02:00
..
aspect.c video: deal with 0x0 window size 2013-03-19 23:34:50 +01:00
aspect.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
bitmap_packer.c Silence some compiler warnings 2013-05-21 00:04:27 +02:00
bitmap_packer.h
cocoa_common.h video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
cocoa_common.m cocoa_common: send mouse moved events to core when dragging 2013-05-26 16:44:20 +02:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl
dither.c gl_video: improve dithering 2013-05-26 16:44:20 +02:00
dither.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
filter_kernels.c
filter_kernels.h
gl_cocoa.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_common.c gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_common.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_header_fixes.h gl_header_fixes: add GL_RGBA32F 2013-03-28 22:55:56 +01:00
gl_lcms.c gl_lcms: fix compilation when lcms2 is not available 2013-03-30 03:29:54 +01:00
gl_lcms.h vo_opengl: split into multiple files, convert to new option API 2013-03-28 21:46:17 +01:00
gl_osd.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_osd.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video_shaders.glsl gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_video.c gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_video.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
gl_w32.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_wayland.c wayland: introduce vo_wayland_config 2013-05-26 16:44:19 +02:00
gl_x11.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
osx_common.h
osx_common.m Prefix keycode defines with MP_ 2013-02-12 10:27:00 +01:00
pnm_loader.c
pnm_loader.h
vo_caca.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_corevideo.h
vo_corevideo.m video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_direct3d.c w32: use vo_w32_control() for all VOs 2013-05-26 16:44:19 +02:00
vo_image.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_lavc.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_null.c vo: remove vo.check_events callback 2013-05-26 16:44:19 +02:00
vo_opengl_old.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_opengl.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
vo_sdl.c vo_sdl: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
vo_vdpau.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
vo_x11.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
vo_xv.c Replace calls to usec_sleep() 2013-05-26 16:44:20 +02:00
vo.c vo: rip out VO timer wakeup mechanism again 2013-05-26 16:44:20 +02:00
vo.h Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
w32_common.c w32: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
w32_common.h w32: use vo_w32_control() for all VOs 2013-05-26 16:44:19 +02:00
wayland_common.c wayland: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
wayland_common.h wayland: use VOCTRL_SET_CURSOR_VISIBILITY 2013-05-26 16:44:19 +02:00
x11_common.c Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00
x11_common.h Replace all calls to GetTimer()/GetTimerMS() 2013-05-26 16:44:20 +02:00