1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/video
wm4 4b91861b67 video: fix bogus uses of mp_image.w/width
mp_image has this confusing distinction between the w/h and width/height
fields. w/h are the actual width and height, while width/height have a
very special meaning inside the video filter code: it's the actually
allocated width, which is also used for stride padding.

Screenshot related code abused the w/h fields to store the aspect
corrected size. Some code confused the role of w/h and width/height.

Fix these issues. For aspect corrected size, display_w/h are used, while
width/height should never be used outside vf.c internals and related
code.

This also fixes an actual bug when taking screenshots of anamorphic
video with vf_screenshot, as well as using vo_image with such videos.
2012-11-21 19:58:51 +01:00
..
decode options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
filter video: fix bogus uses of mp_image.w/width 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 video: add IMGFMT_Y16/PIX_FMT_GRAY16 2012-11-14 11:50:02 +01:00
mp_image.h
sws_utils.c
sws_utils.h
vfcap.h options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00