1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00
mpv/video/out
wm4 3b4682183c vo_xv: try harder to get correctly aligned pointers/strides
To get guaranteed alignment for the chroma planes with typical YV12
playback, we have to double the alignment on the image width, as the
chroma planes have half the image width.

Clear the image with black instead of green to hide scaling artifacts
on the right border of the screen.

(It might be possible to create the image layout ourselves by not
calling XvShmCreateImage(), and filling in our own image width and exact
strides, but that's probably too risky: the Xv client library sends an
X protocol request to query the real image dimension and strides. It is
unknown to me whether X servers or drivers would generally accept an
image with mismatching parameters, even if the image is conceptually
valid.)

Allocate the image with av_malloc() in the non-SHM case. I suspect the
non-SHM case doesn't matter much, though.
2012-12-03 21:08:51 +01:00
..
aspect.c
aspect.h
bitmap_packer.c
bitmap_packer.h
cocoa_common.h
cocoa_common.m cocoa_common: create window in the correct screen 2012-11-21 13:42:55 +01:00
d3d_shader_yuv_2ch.h
d3d_shader_yuv.h
d3d_shader_yuv.hlsl
filter_kernels.c
filter_kernels.h
geometry.c
geometry.h
gl_common.c gl_common: improve Mesa compatibility for GL3 context creation 2012-11-20 18:00:16 +01:00
gl_common.h
gl_header_fixes.h clang: fix all warnings except deprecations 2012-11-13 22:19:18 +01:00
gl_osd.c
gl_osd.h
osx_common.h
osx_common.m osx_common: Avoid deprecated Gestalt calls 2012-12-02 10:42:46 +01:00
pnm_loader.c
pnm_loader.h
vo_caca.c
vo_corevideo.h
vo_corevideo.m options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_direct3d.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_image.c video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
vo_lavc.c Improve compatibility with Libav 0.8.4 and ffmpeg 0.11.2 2012-11-14 11:45:52 +01:00
vo_null.c
vo_opengl_old.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_opengl_shaders.glsl
vo_opengl.c vo_opengl: remove osdcolor suboption 2012-11-16 21:21:14 +01:00
vo_vdpau.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vo_x11.c vo_x11: don't require framestepping to update OSD 2012-11-21 19:58:16 +01:00
vo_xv.c vo_xv: try harder to get correctly aligned pointers/strides 2012-12-03 21:08:51 +01:00
vo.c
vo.h options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
w32_common.c win32: remove pointless get/release DC wrappers 2012-11-12 20:10:42 +01:00
w32_common.h win32: remove pointless get/release DC wrappers 2012-11-12 20:10:42 +01:00
x11_common.c options: remove --display 2012-11-16 21:21:15 +01:00
x11_common.h options: remove --display 2012-11-16 21:21:15 +01:00