summaryrefslogtreecommitdiffstats
path: root/sub/ass_mp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-13 18:53:03 +0200
committerwm4 <wm4@nowhere>2013-04-13 18:53:03 +0200
commitdf8a481eba2316f8171ec0cde4e8e192765aad16 (patch)
treebf1b1895aeeac222e0a0dc3d362cca840e858577 /sub/ass_mp.c
parent3097176ff1b43991ae78990bb06e8c21981e4170 (diff)
downloadmpv-df8a481eba2316f8171ec0cde4e8e192765aad16.tar.bz2
mpv-df8a481eba2316f8171ec0cde4e8e192765aad16.tar.xz
sub: add --osd-blur and --sub-text-blur options
These require bleeding edge libass (latest git version), and will be ignored otherwise. I'm not sure about the blur factor and scaling. The ASS/VSFilter semantics for blur scaling are a bad mess. Might require further investigation.
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r--sub/ass_mp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c
index 35883da84b..497e307953 100644
--- a/sub/ass_mp.c
+++ b/sub/ass_mp.c
@@ -69,6 +69,9 @@ void mp_ass_set_style(ASS_Style *style, struct osd_style_opts *opts)
style->MarginV = opts->margin_y * scale;
style->ScaleX = 1.;
style->ScaleY = 1.;
+#if LIBASS_VERSION >= 0x01020000
+ style->Blur = opts->blur;
+#endif
}
ASS_Track *mp_ass_default_track(ASS_Library *library, struct MPOpts *opts)