Lines Matching defs:buf
80 static int ttml_encode_frame(AVCodecContext *avctx, uint8_t *buf,
139 if (av_strlcpy(buf, s->buffer.str, bufsize) > bufsize - 1) {
218 static int ttml_write_region(AVCodecContext *avctx, AVBPrint *buf,
261 av_bprintf(buf, " <region xml:id=\"");
262 av_bprint_escape(buf, style.name, NULL, AV_ESCAPE_MODE_XML,
264 av_bprintf(buf, "\"\n");
266 av_bprintf(buf, " tts:origin=\"%d%% %d%%\"\n",
268 av_bprintf(buf, " tts:extent=\"%d%% %d%%\"\n",
271 av_bprintf(buf, " tts:displayAlign=\"");
272 av_bprint_escape(buf, display_alignment, NULL, AV_ESCAPE_MODE_XML,
274 av_bprintf(buf, "\"\n");
276 av_bprintf(buf, " tts:textAlign=\"");
277 av_bprint_escape(buf, text_alignment, NULL, AV_ESCAPE_MODE_XML,
279 av_bprintf(buf, "\"\n");
286 av_bprintf(buf, " tts:fontSize=\"%dc\"\n",
290 av_bprintf(buf, " tts:fontFamily=\"");
291 av_bprint_escape(buf, style.font_name, NULL, AV_ESCAPE_MODE_XML,
293 av_bprintf(buf, "\"\n");
296 av_bprintf(buf, " tts:overflow=\"visible\" />\n");