Lines Matching refs:new_line
203 static void microdvd_open_tags(AVBPrint *new_line, struct microdvd_tag *tags)
214 av_bprintf(new_line, "{\\%c1}", MICRODVD_STYLES[sidx]);
218 av_bprintf(new_line, "{\\c&H%06"PRIX32"&}", tags[i].data1);
222 av_bprintf(new_line, "{\\fn%.*s}",
227 av_bprintf(new_line, "{\\fs%"PRId32"}", tags[i].data1);
232 av_bprintf(new_line, "{\\an8}");
236 av_bprintf(new_line, "{\\pos(%"PRId32",%"PRId32")}",
245 static void microdvd_close_no_persistent_tags(AVBPrint *new_line,
258 av_bprintf(new_line, "{\\%c0}", MICRODVD_STYLES[sidx]);
262 av_bprintf(new_line, "{\\c}");
266 av_bprintf(new_line, "{\\fn}");
270 av_bprintf(new_line, "{\\fs}");
280 AVBPrint new_line;
289 av_bprint_init(&new_line, 0, 2048);
296 microdvd_open_tags(&new_line, tags);
300 av_bprint_chars(&new_line, *line, 1);
306 microdvd_close_no_persistent_tags(&new_line, tags);
307 av_bprintf(&new_line, "\\N");
311 if (new_line.len) {
312 int ret = ff_ass_add_rect(sub, new_line.str, s->readorder++, 0, NULL, NULL);
313 av_bprint_finalize(&new_line, NULL);