summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-06-03 17:26:08 +0200
committerwm4 <wm4@nowhere>2020-06-03 17:26:44 +0200
commit5f49009849271ecd995f9f41e4eb2a36a0fc024a (patch)
treee3c0dc420eef17af7bafe8406aa22998123ce4d3 /options/options.c
parentbaa7b5c8dd35365a8a62aa39c84394e5315b79e0 (diff)
downloadmpv-5f49009849271ecd995f9f41e4eb2a36a0fc024a.tar.bz2
mpv-5f49009849271ecd995f9f41e4eb2a36a0fc024a.tar.xz
options: add --video-scale-x/y
Requested. Fixes: #6303
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 22ae8e77e5..4467c106ba 100644
--- a/options/options.c
+++ b/options/options.c
@@ -136,6 +136,8 @@ static const m_option_t mp_vo_opt_list[] = {
{"video-pan-y", OPT_FLOAT(pan_y), M_RANGE(-3.0, 3.0)},
{"video-align-x", OPT_FLOAT(align_x), M_RANGE(-1.0, 1.0)},
{"video-align-y", OPT_FLOAT(align_y), M_RANGE(-1.0, 1.0)},
+ {"video-scale-x", OPT_FLOAT(scale_x), M_RANGE(0, 10000.0)},
+ {"video-scale-y", OPT_FLOAT(scale_y), M_RANGE(0, 10000.0)},
{"video-margin-ratio-left", OPT_FLOAT(margin_x[0]), M_RANGE(0.0, 1.0)},
{"video-margin-ratio-right", OPT_FLOAT(margin_x[1]), M_RANGE(0.0, 1.0)},
{"video-margin-ratio-top", OPT_FLOAT(margin_y[0]), M_RANGE(0.0, 1.0)},
@@ -177,6 +179,8 @@ const struct m_sub_options vo_sub_opts = {
.screen_id = -1,
.fsscreen_id = -1,
.panscan = 0.0f,
+ .scale_x = 1.0f,
+ .scale_y = 1.0f,
.keepaspect = 1,
.keepaspect_window = 1,
.hidpi_window_scale = 1,