summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-14 16:21:37 +0100
committerwm4 <wm4@nowhere>2013-03-17 22:07:13 +0100
commit4b87cb39a396dc8fa6738069c9de36fcd599db53 (patch)
treecb899d3db6a0c842b6cfcb98db88db6289004552 /video/out/vo.h
parent59960baa7f61eaff352043a15eaaf5792d9e8cfd (diff)
downloadmpv-4b87cb39a396dc8fa6738069c9de36fcd599db53.tar.bz2
mpv-4b87cb39a396dc8fa6738069c9de36fcd599db53.tar.xz
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.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h14
1 files changed, 2 insertions, 12 deletions
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 */