mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
sub: add (sub/osd)-border-style; renaming sub options
This commit is contained in:
committed by
Dudemanguy
parent
c0f5d2391b
commit
f2e7146cb1
24
sub/osd.c
24
sub/osd.c
@@ -48,10 +48,14 @@ static const m_option_t style_opts[] = {
|
||||
{"font", OPT_STRING(font)},
|
||||
{"font-size", OPT_FLOAT(font_size), M_RANGE(1, 9000)},
|
||||
{"color", OPT_COLOR(color)},
|
||||
{"border-color", OPT_COLOR(border_color)},
|
||||
{"shadow-color", OPT_COLOR(shadow_color)},
|
||||
{"outline-color", OPT_COLOR(outline_color)},
|
||||
{"back-color", OPT_COLOR(back_color)},
|
||||
{"border-size", OPT_FLOAT(border_size)},
|
||||
{"outline-size", OPT_FLOAT(outline_size)},
|
||||
{"border-color", OPT_ALIAS("outline-color"), .alias_use_prefix = true},
|
||||
{"shadow-color", OPT_ALIAS("back-color"), .alias_use_prefix = true},
|
||||
{"border-style", OPT_CHOICE(border_style,
|
||||
{"outline-and-shadow", 1}, {"opaque-box", 3}, {"background-box", 4})},
|
||||
{"border-size", OPT_ALIAS("outline-size"), .alias_use_prefix = true},
|
||||
{"shadow-offset", OPT_FLOAT(shadow_offset)},
|
||||
{"spacing", OPT_FLOAT(spacing), M_RANGE(-10, 10)},
|
||||
{"margin-x", OPT_INT(margin_x), M_RANGE(0, 300)},
|
||||
@@ -79,9 +83,10 @@ const struct m_sub_options osd_style_conf = {
|
||||
.font = "sans-serif",
|
||||
.font_size = 55,
|
||||
.color = {255, 255, 255, 255},
|
||||
.border_color = {0, 0, 0, 255},
|
||||
.shadow_color = {240, 240, 240, 128},
|
||||
.border_size = 3,
|
||||
.outline_color = {0, 0, 0, 255},
|
||||
.back_color = {240, 240, 240, 128},
|
||||
.border_style = 1,
|
||||
.outline_size = 3,
|
||||
.shadow_offset = 0,
|
||||
.margin_x = 25,
|
||||
.margin_y = 22,
|
||||
@@ -98,9 +103,10 @@ const struct m_sub_options sub_style_conf = {
|
||||
.font = "sans-serif",
|
||||
.font_size = 55,
|
||||
.color = {255, 255, 255, 255},
|
||||
.border_color = {0, 0, 0, 255},
|
||||
.shadow_color = {240, 240, 240, 128},
|
||||
.border_size = 3,
|
||||
.outline_color = {0, 0, 0, 255},
|
||||
.back_color = {240, 240, 240, 128},
|
||||
.border_style = 1,
|
||||
.outline_size = 3,
|
||||
.shadow_offset = 0,
|
||||
.margin_x = 25,
|
||||
.margin_y = 22,
|
||||
|
||||
Reference in New Issue
Block a user