0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/video
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
..
decode options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
filter sws_utils: remove unused helper 2012-11-24 21:27:34 +01:00
out vo_xv: try harder to get correctly aligned pointers/strides 2012-12-03 21:08:51 +01:00
csputils.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
csputils.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
fmt-conversion.c video: add IMGFMT_Y16/PIX_FMT_GRAY16 2012-11-14 11:50:02 +01:00
fmt-conversion.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
image_writer.c video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
image_writer.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
img_format.c video: add IMGFMT_Y16/PIX_FMT_GRAY16 2012-11-14 11:50:02 +01:00
img_format.h video: add IMGFMT_Y16/PIX_FMT_GRAY16 2012-11-14 11:50:02 +01:00
memcpy_pic.h memcpy_pic: kill useless/dangerous optimization 2012-11-25 23:40:07 +01:00
mp_image.c mp_image: make alloc_mpi() always allocate with aligned stride 2012-11-22 19:22:38 +01:00
mp_image.h mp_image: make alloc_mpi() always allocate with aligned stride 2012-11-22 19:22:38 +01:00
sws_utils.c sub: reimplement -spugauss as --sub-gauss 2012-11-25 23:40:07 +01:00
sws_utils.h sub: reimplement -spugauss as --sub-gauss 2012-11-25 23:40:07 +01:00
vfcap.h options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00