1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-26 01:23:17 +00:00
mpv/video/filter
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
..
pullup.c
pullup.h
vf_crop.c
vf_delogo.c
vf_divtc.c
vf_dlopen.c vf_dlopen: fix a typo in zeroing memory (thanks, pigoz) 2012-11-13 09:52:53 +01:00
vf_dlopen.h
vf_down3dright.c
vf_dsize.c
vf_eq.c video/filter: rename vf_eq2 to vf_eq 2012-11-16 21:21:14 +01:00
vf_expand.c
vf_flip.c
vf_format.c
vf_gradfun.c
vf_hqdn3d.c
vf_ilpack.c
vf_mirror.c
vf_noformat.c
vf_noise.c
vf_phase.c
vf_pp.c
vf_pullup.c
vf_rotate.c
vf_scale.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vf_screenshot.c video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
vf_softpulldown.c vf_softpulldown: fix possible regression 2012-11-20 18:00:15 +01:00
vf_stereo3d.c
vf_sub.c
vf_swapuv.c
vf_unsharp.c
vf_vo.c options, vo_x11: remove -zoom option, make it default 2012-11-16 21:21:14 +01:00
vf_yadif.c
vf.c video/filter: rename vf_eq2 to vf_eq 2012-11-16 21:21:14 +01:00
vf.h