29 const char *font,
int font_size,
30 int color,
int back_color,
31 int bold,
int italic,
int underline,
36 "ScriptType: v4.00+\r\n"
39 "Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding\r\n"
40 "Style: Default,%s,%d,&H%x,&H%x,&H%x,&H%x,%d,%d,%d,1,1,0,%d,10,10,10,0,0\r\n"
43 "Format: Layer, Start, End, Style, Text\r\n",
44 font, font_size, color, color, back_color, back_color,
45 -bold, -italic, -underline, alignment);
68 h = ts/360000; ts -= 360000*h;
69 m = ts/ 6000; ts -= 6000*
m;
70 s = ts/ 100; ts -= 100*s;
71 return snprintf(str, strlen,
"%d:%02d:%02d.%02d", h, m, s, ts);
78 char s_start[16], s_end[16], header[48] = {0};
84 snprintf(s_end,
sizeof(s_end),
"9:59:59.99");
87 len =
snprintf(header,
sizeof(header),
"Dialogue: 0,%s,%s,Default,",
92 dlen = strcspn(dialog,
"\n");
93 dlen += dialog[dlen] ==
'\n';