diff options
author | wm4 <wm4@nowhere> | 2013-06-15 00:15:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-19 13:03:08 +0200 |
commit | 216e8320b02e76a407b114ca4de73763e9df3507 (patch) | |
tree | cf96184f0eb011d41366e23357914e385ee0cdf1 /mpvcore/options.c | |
parent | 67704e2977d2bb5c35f962b154d5e8e481e2d508 (diff) | |
download | mpv-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.c')
-rw-r--r-- | mpvcore/options.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c index 5600ccee71..5aff219c14 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -581,6 +581,11 @@ const m_option_t mp_opts[] = { OPT_INTRANGE("fsmode-dontuse", vo.fsmode, 0, 31, 4096), OPT_FLAG("native-keyrepeat", vo.native_keyrepeat, 0), OPT_FLOATRANGE("panscan", vo.panscan, 0, 0.0, 1.0), + OPT_FLOATRANGE("video-zoom", vo.zoom, 0, -20.0, 20.0), + OPT_FLOATRANGE("video-pan-x", vo.pan_x, 0, -3.0, 3.0), + OPT_FLOATRANGE("video-pan-y", vo.pan_y, 0, -3.0, 3.0), + OPT_FLOATRANGE("video-align-x", vo.align_x, 0, -1.0, 1.0), + OPT_FLOATRANGE("video-align-y", vo.align_y, 0, -1.0, 1.0), OPT_FLAG("force-rgba-osd-rendering", force_rgba_osd, 0), OPT_CHOICE("colormatrix", requested_colorspace, 0, ({"auto", MP_CSP_AUTO}, |