1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 02:52:10 +00:00
mpv/video
wm4 1d3179a5f1 mp_image: make alloc_mpi() always allocate with aligned stride
By "design", mplayer normally allocates aligned images only inside the
filter chain, via the vf_get_image() function. This function pads the
width of the requested image if a stride is allowed, sets that new width
before calling mp_image_alloc_planes().

However, newer code wants aligned images as well (basically to satisfy
libswscale). This affects all uses of alloc_mpi(). To get aligned
strides, simply change alloc_mpi() to request an aligned width.

Remove the old hack in mp_image_alloc_planes(), which special cases some
image formats to be allocated with aligned strides.

This is a temporary hack until mp_image_alloc_planes() is revised.
2012-11-22 19:22:38 +01:00
..
decode options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
filter screenshot: add subs even with vf_screenshot 2012-11-21 19:58:51 +01:00
out video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
csputils.c
csputils.h
fmt-conversion.c video: add IMGFMT_Y16/PIX_FMT_GRAY16 2012-11-14 11:50:02 +01:00
fmt-conversion.h
image_writer.c video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
image_writer.h
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
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 draw_bmp: add RGB rendering to fix image quality issues 2012-11-22 15:26:38 +01:00
sws_utils.h
vfcap.h options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00