1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 22:01:10 +00:00
mpv/video/out
wm4 b049ffb330 video: remove rounding of display size to multiples of 2
The code that is changed is responsible for scaling the video size to
display size, so that the resulting video rectangle is letter-boxed
inside the display window. This is before panscan calculations, which
can actually enlarge the video and make it larger than the display size
again. (src_dst_split_scaling() in vo.c takes cares of clipping the
video size to window size.)

I'm not sure why this rounding is done, as using panscan controls can
introduce odd sizes again. The rounding has been part of the code since
the initial commit. On the other hand, this rounding can slightly
influence the aspect ratio of the displayed image to the worse. It
forces the image to be scaled by an additional pixel, without actually
correcting the display size into the other direction.

Although video sizes are usually at least aligned on 2 (and often more),
odd sizes can still happen when playing e.g. anamorphic DVDs.

Remove the additional rounding.

(Note that we still round the _source_ image position and size when the
displayed image is larger than the screen, e.g. when panscan is used.
This is needed by some VOs so that the image source rectangle starts on
full chroma pixels. Maybe this rounding should be moved to the
respective VOs, which includes at least vo_direct3d.)
2013-03-17 22:07:13 +01:00
..
aspect.c video: remove rounding of display size to multiples of 2 2013-03-17 22:07:13 +01:00
aspect.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
bitmap_packer.c
bitmap_packer.h
cocoa_common.h video/out: rename create_window to config_window 2013-02-26 02:01:48 +01:00
cocoa_common.m cocoa_common: fix regression when changing videos in fullscreen 2013-03-15 22:48:57 +01:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl vo_direct3d: remove 2ch hack for 10 bit playback 2013-01-13 20:04:14 +01:00
filter_kernels.c
filter_kernels.h
gl_common.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
gl_common.h gl_common: get rid of symbol redefinition warnings with recent Mesa 2013-03-03 15:36:56 +01:00
gl_header_fixes.h gl_common: get rid of symbol redefinition warnings with recent Mesa 2013-03-03 15:36:56 +01:00
gl_osd.c
gl_osd.h
osx_common.h osxbundle: cocoa_common: change playlist on fileopen events 2013-01-16 22:27:04 +01:00
osx_common.m Prefix keycode defines with MP_ 2013-02-12 10:27:00 +01:00
pnm_loader.c
pnm_loader.h
vo_caca.c vo: Separate vo options from MPOpts 2013-03-04 23:32:47 +01:00
vo_corevideo.h
vo_corevideo.m video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_direct3d.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_image.c m_option: don't define OPT_BASE_STRUCT by default 2013-03-01 11:27:59 +01:00
vo_lavc.c core: simplify OSD capability handling, remove VFCAP_OSD 2013-03-01 11:16:01 +01:00
vo_null.c core: simplify OSD capability handling, remove VFCAP_OSD 2013-03-01 11:16:01 +01:00
vo_opengl_old.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_opengl_shaders.glsl vo_opengl: use more precise gamma for BT.709 with color management 2012-12-28 13:43:24 +01:00
vo_opengl.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_sdl.c vo_sdl: we don't want to minize the window when losing focus 2013-03-06 18:10:20 +01:00
vo_vdpau.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_x11.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo_xv.c video: remove aspect.h includes from files which don't need it 2013-03-17 22:07:13 +01:00
vo.c video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
vo.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
w32_common.c w32_common: fix compilation 2013-03-05 17:46:17 +01:00
w32_common.h w32_common: remove unused variable 2013-03-03 14:19:53 +01:00
wayland_common.c wayland: use the cursor_autohide_delay option 2013-03-11 18:31:09 +01:00
wayland_common.h x11_common: use private variables for window state 2013-03-03 14:19:57 +01:00
x11_common.c vo: Separate vo options from MPOpts 2013-03-04 23:32:47 +01:00
x11_common.h x11_common: fix window mapping, refactor window creation/resize handling 2013-03-03 15:36:27 +01:00