summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorDan Oscarsson <DanOscarsson@users.noreply.github.com>2017-02-02 10:53:19 +0100
committerwm4 <wm4@nowhere>2017-03-25 15:04:05 +0100
commit5b75142a1dfed9fceacb43772378cbdc2d3dfb7c (patch)
tree472ca61ac90347f30413ad6a3589167e7eb87da9 /options/options.c
parent3e93c09cffeb2395d12d9c7c61f2c7b836f77789 (diff)
downloadmpv-5b75142a1dfed9fceacb43772378cbdc2d3dfb7c.tar.bz2
mpv-5b75142a1dfed9fceacb43772378cbdc2d3dfb7c.tar.xz
sub: add SDH subtitle filter
Add subtitle filter to remove additions for deaf or hard-of-hearing (SDH). This is for English, but may in part work for others too. This is an ASS filter and the intention is that it can always be enabled as it by default do not remove parts that may be normal text. Harder filtering can be enabled with an additional option. Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 0cb653c4a9..62dc73b636 100644
--- a/options/options.c
+++ b/options/options.c
@@ -492,6 +492,8 @@ const m_option_t mp_opts[] = {
OPT_FLOATRANGE("sub-gauss", sub_gauss, UPDATE_OSD, 0.0, 3.0),
OPT_FLAG("sub-gray", sub_gray, UPDATE_OSD),
OPT_FLAG("sub-ass", ass_enabled, 0),
+ OPT_FLAG("sub-filter-sdh", sub_filter_SDH, 0),
+ OPT_FLAG("sub-filter-sdh-harder", sub_filter_SDH_harder, 0),
OPT_FLOATRANGE("sub-scale", sub_scale, UPDATE_OSD, 0, 100),
OPT_FLOATRANGE("sub-ass-line-spacing", ass_line_spacing, UPDATE_OSD, -1000, 1000),
OPT_FLAG("sub-use-margins", sub_use_margins, UPDATE_OSD),