summaryrefslogtreecommitdiffstats
path: root/mpvcore/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-15 00:15:32 +0200
committerwm4 <wm4@nowhere>2013-08-19 13:03:08 +0200
commit216e8320b02e76a407b114ca4de73763e9df3507 (patch)
treecf96184f0eb011d41366e23357914e385ee0cdf1 /mpvcore/options.h
parent67704e2977d2bb5c35f962b154d5e8e481e2d508 (diff)
downloadmpv-216e8320b02e76a407b114ca4de73763e9df3507.tar.bz2
mpv-216e8320b02e76a407b114ca4de73763e9df3507.tar.xz
video: make it possible to scale/pan the video by arbitrary amounts
Add --video-align-x/y, --video-pan-x/y, --video-scale options and properties. See the additions to the manpage for description and semantics. These transformations are intentionally done on top of panscan. Unlike the (now removed) --panscanrange option, this doesn't affect the default panscan behavior. (Although panscan itself becomes kind of useless if the new options are used.)
Diffstat (limited to 'mpvcore/options.h')
-rw-r--r--mpvcore/options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpvcore/options.h b/mpvcore/options.h
index 2ab9e517a0..1ff50688ce 100644
--- a/mpvcore/options.h
+++ b/mpvcore/options.h
@@ -19,6 +19,9 @@ typedef struct mp_vo_opts {
int native_keyrepeat;
float panscan;
+ float zoom;
+ float pan_x, pan_y;
+ float align_x, align_y;
struct m_geometry geometry;
struct m_geometry autofit;