From 169b3abd788ac566b4ba831bbcc0dfd3c8981fd0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 30 Jun 2013 18:46:29 +0200 Subject: sd_ass: scale blur by original video size if requested --- DOCS/man/en/options.rst | 11 ++++++++++- core/options.c | 2 ++ core/options.h | 1 + sub/sd_ass.c | 9 +++++++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index ad463daffc..bb908f3885 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -157,7 +157,7 @@ Enables placing toptitles and subtitles in black borders when they are available. -``--ass-vsfilter-aspect-compat`` +``--ass-vsfilter-aspect-compat=`` Stretch SSA/ASS subtitles when playing anamorphic videos for compatibility with traditional VSFilter behavior. This switch has no effect when the video is stored with square pixels. @@ -174,6 +174,15 @@ Enabled by default. +``--ass-vsfilter-blur-compat=`` + Scale ``\blur`` tags by video resolution instead of script resolution + (enabled by default). This is bug in VSFilter, which according to some, + can't be fixed anymore in the name of compatibility. + + Note that this uses the actual video resolution for calculating the + offset scale factor, not what the video filter chain or the video output + use. + ``--ass-vsfilter-color-compat== 0x01020000 + if (!ctx->is_converted && (!opts->ass_style_override || + opts->ass_vsfilter_blur_compat)) + { + ass_set_storage_size(renderer, ctx->video_params.w, ctx->video_params.h); + } else { + ass_set_storage_size(renderer, 0, 0); + } +#endif mp_ass_render_frame(renderer, ctx->ass_track, pts * 1000 + .5, &ctx->parts, res); talloc_steal(ctx, ctx->parts); -- cgit v1.2.3