From 5b75142a1dfed9fceacb43772378cbdc2d3dfb7c Mon Sep 17 00:00:00 2001 From: Dan Oscarsson Date: Thu, 2 Feb 2017 10:53:19 +0100 Subject: 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 --- sub/sd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub/sd.h') diff --git a/sub/sd.h b/sub/sd.h index 178a6d5be6..dd1f26d721 100644 --- a/sub/sd.h +++ b/sub/sd.h @@ -50,4 +50,6 @@ char **lavc_conv_decode(struct lavc_conv *priv, struct demux_packet *packet); void lavc_conv_reset(struct lavc_conv *priv); void lavc_conv_uninit(struct lavc_conv *priv); +char *filter_SDH(struct sd *sd, char *format, int n_ignored, char *data, int length); + #endif -- cgit v1.2.3