diff options
author | wm4 <wm4@nowhere> | 2012-10-27 22:10:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:46 +0100 |
commit | 6f408d0d9d6d0655faec75474bc3074812b41826 (patch) | |
tree | 973ef09419d166790c4d909eb2bd90d8709278ab /path.c | |
parent | 3466057febaf5790b3ce88db1726058d9852f28d (diff) | |
download | mpv-6f408d0d9d6d0655faec75474bc3074812b41826.tar.bz2 mpv-6f408d0d9d6d0655faec75474bc3074812b41826.tar.xz |
VO: remove code duplication for setting up mp_osd_res
vo_opengl, vo_vdpau, vo_direct3d had the code for setting up mp_osd_res
duplicated. Make things simpler by making calc_src_dst_rects() setup
the full mp_osd_res structure, instead of just "borders".
Also, rename that function to vo_get_src_dst_rects(), and make it use
mp_rect. Remove vo_rect, which was annoying because it contains
redundant members (width/height additional to right/bottom).
Add code to print the video rect etc. in verbose mode.
There should be no actual change how the video rects are calculated. The
only exception are the bottom/right subtitle margins, which are now
computed slightly differently, but that shouldn't matter.
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions