summaryrefslogtreecommitdiffstats
path: root/libavcodec/ass.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-10-23 20:03:17 +0200
committerMarton Balint <cus@passwd.hu>2013-11-10 18:57:52 +0100
commitb96325e023cfe9fed5a17009b2ef23797caab906 (patch)
treefab9083fa9d4f6a35f26e63a56eb5c6b45f007db /libavcodec/ass.h
parent0f0a8d9859c3ac2a05b0a794197b240b00f3501f (diff)
downloadffmpeg-streaming-b96325e023cfe9fed5a17009b2ef23797caab906.zip
ffmpeg-streaming-b96325e023cfe9fed5a17009b2ef23797caab906.tar.gz
ass: move text_event_to_ass from textdec.c to ass.c and export it
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/ass.h')
-rw-r--r--libavcodec/ass.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/ass.h b/libavcodec/ass.h
index d267665..2df38e6 100644
--- a/libavcodec/ass.h
+++ b/libavcodec/ass.h
@@ -113,4 +113,16 @@ int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
int ff_ass_bprint_dialog(AVBPrint *buf, const char *dialog,
int ts_start, int duration, int raw);
+/**
+ * Escape a text subtitle using ASS syntax into an AVBPrint buffer.
+ * Newline characters will be escaped to \N.
+ *
+ * @param buf pointer to an initialized AVBPrint buffer
+ * @param p source text
+ * @param size size of the source text
+ * @param linebreaks additional newline chars, which will be escaped to \N
+ * @param keep_ass_markup braces and backslash will not be escaped if set
+ */
+void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size,
+ const char *linebreaks, int keep_ass_markup);
#endif /* AVCODEC_ASS_H */
OpenPOWER on IntegriCloud