From 0b4790f23f045ada592be14f4cd1ceaa7ae47008 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Jun 2019 17:53:59 +0200 Subject: aspect: add video margin options Semantics a bit questionable. This is done for the OSC (next commit), and a comment added the manpage explicitly states this. Meaning this is probably garbage and needs to revisit when the OSC changes and/or someone wants to use this margin feature for something else. Not sure about the subtitle thing. It's imaginable that someone uses these options to create empty borders for subtitles on the bottom, so subtitles should be located there. On the other hand, this gives a rather unpolished user experience when using the (later added) OSC feature to not overlap with the video. There's not much of a point if the OSC still overlaps the video. However, I'm too lazy to think about this, so it stays like it is. --- options/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index a4d04c68f7..c5812f93f8 100644 --- a/options/options.c +++ b/options/options.c @@ -130,6 +130,10 @@ static const m_option_t mp_vo_opt_list[] = { OPT_FLOATRANGE("video-pan-y", pan_y, 0, -3.0, 3.0), OPT_FLOATRANGE("video-align-x", align_x, 0, -1.0, 1.0), OPT_FLOATRANGE("video-align-y", align_y, 0, -1.0, 1.0), + OPT_FLOATRANGE("video-margin-ratio-left", margin_x[0], 0, 0.0, 1.0), + OPT_FLOATRANGE("video-margin-ratio-right", margin_x[1], 0, 0.0, 1.0), + OPT_FLOATRANGE("video-margin-ratio-top", margin_y[0], 0, 0.0, 1.0), + OPT_FLOATRANGE("video-margin-ratio-bottom", margin_y[1], 0, 0.0, 1.0), OPT_CHOICE("video-unscaled", unscaled, 0, ({"no", 0}, {"yes", 1}, {"downscale-big", 2})), OPT_INT64("wid", WinID, 0), -- cgit v1.2.3