1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 10:32:15 +00:00
mpv/video/out
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
..
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.c
osx_common.h
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: don't require frame stepping to remove OSD or subs 2012-11-21 19:56:59 +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