90
91
int ff_ass_add_rect(AVSubtitle *sub, const char *dialog,
91
92
int ts_start, int duration, int raw);
95
* Add an ASS dialog line to an AVBPrint buffer.
97
* @param buf pointer to an initialized AVBPrint buffer
98
* @param dialog ASS dialog to add to sub
99
* @param ts_start start timestamp for this dialog (in 1/100 second unit)
100
* @param duration duration for this dialog (in 1/100 second unit), can be -1
101
* to last until the end of the presentation
102
* @param raw when set to 2, it indicates that dialog contains an ASS
103
* dialog line as muxed in Matroska
104
* when set to 1, it indicates that dialog contains a whole SSA
105
* dialog line which should be copied as is.
106
* when set to 0, it indicates that dialog contains only the Text
107
* part of the ASS dialog line, the rest of the line
109
* @return number of characters read from dialog. It can be less than the whole
110
* length of dialog, if dialog contains several lines of text.
111
* A negative value indicates an error.
113
int ff_ass_bprint_dialog(AVBPrint *buf, const char *dialog,
114
int ts_start, int duration, int raw);
117
* Escape a text subtitle using ASS syntax into an AVBPrint buffer.
118
* Newline characters will be escaped to \N.
120
* @param buf pointer to an initialized AVBPrint buffer
121
* @param p source text
122
* @param size size of the source text
123
* @param linebreaks additional newline chars, which will be escaped to \N
124
* @param keep_ass_markup braces and backslash will not be escaped if set
126
void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size,
127
const char *linebreaks, int keep_ass_markup);
93
128
#endif /* AVCODEC_ASS_H */