30 #define SRT_STACK_SIZE 64
45 __attribute__ ((__format__ (__printf__, 2, 3)))
81 srt_print(s,
"</%c%s>", tag, tag ==
'f' ?
"ont" :
"");
111 (c & 0xFF0000) >> 16 | c & 0xFF00 | (c & 0xFF) << 16);
167 if (color != 0xFFFFFFFF)
168 srt_print(priv,
"<font color=\"#%06x\">",
169 (color & 0xFF0000) >> 16 | color & 0xFF00 | (color & 0xFF) << 16);
176 srt_print(priv,
"<font face=\"%s\">", name);
183 srt_print(priv,
"<font size=\"%d\">", size);
201 static void srt_move_cb(
void *priv,
int x1,
int y1,
int x2,
int y2,
209 " X1:%03u X2:%03u Y1:%03u Y2:%03u", x1, x2, y1, y2);
210 unsigned char *
dummy;
265 for (; dialog && num--; dialog++) {
267 int sh, sm, ss, sc = 10 * dialog->
start;
268 int eh, em, es, ec = 10 * dialog->
end;
269 sh = sc/3600000; sc -= 3600000*sh;
270 sm = sc/ 60000; sc -= 60000*sm;
271 ss = sc/ 1000; sc -= 1000*ss;
272 eh = ec/3600000; ec -= 3600000*eh;
273 em = ec/ 60000; ec -= 60000*em;
274 es = ec/ 1000; ec -= 1000*es;
275 srt_print(s,
"%d\r\n%02d:%02d:%02d,%03d --> %02d:%02d:%02d,%03d\r\n",
276 ++s->
count, sh, sm, ss, sc, eh, em, es, ec);
290 if (s->
buffer.len > bufsize) {
307 #if CONFIG_SRT_ENCODER
321 #if CONFIG_SUBRIP_ENCODER