From 4b87cb39a396dc8fa6738069c9de36fcd599db53 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 Mar 2013 16:21:37 +0100 Subject: video: simplify aspect calculation stuff Remove lots of weird logic and dead code. The only difference is that when specifying a monitor aspect ratio, it will always upscale and never downscale. --- video/out/vo.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 5b05deb79b..5b60724829 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -264,19 +264,14 @@ struct vo { int xinerama_x; int xinerama_y; - int panscan_x; - int panscan_y; - float panscan_amount; - float monitor_par; struct aspect_data { + float monitor_par; // out of screen size or from options int orgw; // real width int orgh; // real height int prew; // prescaled width int preh; // prescaled height float par; // pixel aspect ratio out of orgw/orgh and prew/preh - int scrw; // horizontal resolution - int scrh; // vertical resolution - float asp; + float asp; // final video display aspect } aspdat; char *window_title; @@ -322,9 +317,4 @@ struct mp_osd_res; void vo_get_src_dst_rects(struct vo *vo, struct mp_rect *out_src, struct mp_rect *out_dst, struct mp_osd_res *out_osd); -static inline int aspect_scaling(struct vo *vo) -{ - return vo->opts->keepaspect || vo->opts->fs; -} - #endif /* MPLAYER_VIDEO_OUT_H */ -- cgit v1.2.3