1 /* AUTOGENERATED FILE, DO NOT EDIT */
2 /* generated from "./imports" on 2007-08-31T13:23:59+00:00 */
6 #define insn_init { NULL, NULL, 0, { 0 } }
7 #define det(n,r) { static struct asa_import_detect d = { NULL }; \
9 if (!asa_pcre_compile(&d.re, r)) \
10 asa_det_last = &(*asa_det_last = &d)->next; }
11 #define fmt_b(n,t) { static struct asa_import_format f = { NULL }; \
12 struct asa_import_insn *i, **i0 = NULL; \
13 f.name = n; f.target = t;
16 #define insn(n,t) { static struct asa_import_insn ii = insn_init; \
17 i = ⅈ *n = i; n = &i->next; i->insn = t; }
18 #define insn_b(n, m, t, r) { struct asa_import_insn **m;\
19 { static struct asa_import_insn ii = insn_init; \
20 i = ⅈ ii.insn = t; \
21 m = &ii.v.child.insns; \
23 if (!asa_pcre_compile(&i->v.child.regex, r)) { \
26 #define insn_sg(n, t, r) { struct asa_repl **repl;\
27 { static struct asa_import_insn ii = insn_init; \
28 i = ⅈ ii.insn = t; \
29 repl = &ii.v.sg.repl; \
31 if (!asa_pcre_compile(&i->v.sg.regex, r)) { \
33 #define insn_sge() } }
34 #define repl(g, t) { static struct asa_repl r = { NULL, g, t }; \
35 *repl = &r; repl = &r.next; }
36 #define insn_ts(n, t, d) { struct asa_tspec **tsp;\
37 { static struct asa_import_insn ii = insn_init; \
38 i = ⅈ ii.insn = t; ii.v.tspec.delta_select = d; \
39 tsp = &ii.v.tspec.tsp; \
43 #define tsp(g, m, f) { static struct asa_tspec t = { NULL, g, m, f }; \
44 *tsp = &t; tsp = &t.next; }
46 det("qttext","^\\{QTtext\\}")
47 det("rtf","^\\{\\\\rtf")
48 det("viplay","^\\{\\* VIPLAY")
49 det("zerog","^% Zero G")
51 det("philips","^# PHILIPS SVCD DESIGNER")
52 det("ulead","^#Ulead subtitle")
53 det("sonicscenarist","^st_format\\s*\\d")
54 det("dvdjunior","^Subtitle File Mark")
55 det("captionsdat","^\\0\\r#")
56 det("inscriber","^@@.*\\n@@\\d Created by URUSoft")
57 det("ssa","(?mi)^(ScriptType:|\\[Script Info)")
58 det("subrip","^\\d+\\s*\\n\\d\\d:\\d\\d:\\d\\d,\\d\\d\\d\\s+-->\\s+\\d\\d:\\d\\d:\\d\\d,\\d\\d\\d\\s*\\n")
59 det("microdvd","^\\{\\d+\\}\\{\\d+\\}")
60 det("sami","(?i)<SAMI")
61 det("smil","(?i)<SMIL")
62 det("smil_rt","(?i)<WINDOW")
63 det("html","(?i)<HTML")
64 det("jacosub","(?m)^#([DT]\\d+)")
65 det("sasamis2k","(?m)^;(Env|Set)\\.")
66 det("phoenix","^[ \\d]+,[ \\d]+, \".*\"")
67 det("vkt","(?m)^\\{\\d+ .*\\}")
68 det("e2","^\\[\\d+\\]\\[\\d+\\]")
69 det("powerdivx","^\\{\\d+:\\d\\d:\\d\\d\\}\\{\\d+:\\d\\d:\\d\\d\\}")
70 det("sbt","^\\d\\d:\\d\\d:\\d\\d\\s*\\n\\d\\d:\\d\\d:\\d\\d\\s*\\n\\s*\\n")
71 det("karaokelrc","(?m)^\\[\\d\\d:\\d\\d\\.\\d\\d\\]")
72 det("dks","^\\[\\d\\d:\\d\\d:\\d\\d\\]")
73 det("aqtitle","^-->> \\d+\\s*\\n")
74 det("panimator","^\\/(c|d \\d+ \\d+)\\s*\\n")
75 det("tmplayer","^\\d\\d:\\d\\d:\\d\\d,\\d=")
76 det("cap32","^\\d\\d:\\d\\d:\\d\\d:\\d\\d , \\d\\d:\\d\\d:\\d\\d:\\d\\d , ")
77 det("not_encore","(?m)^\\d\\d:\\d\\d:\\d\\d:\\d\\d \\d\\d:\\d\\d:\\d\\d:\\d\\d ")
78 det("encore_ntsc","(?m)^\\d+ \\d+;\\d+;\\d+;\\d+ \\d+;\\d+;\\d+;\\d+ ")
79 det("encore_pal","(?m)^\\d+ \\d+:\\d+:\\d+:\\d+ \\d+:\\d+:\\d+:\\d+ ")
80 det("turbotitler","^\\d+:\\d\\d:\\d\\d\\.\\d\\d,\\d+:\\d\\d:\\d\\d\\.\\d\\d,")
81 det("macdvdpro","^\\d\\d:\\d\\d:\\d\\d:\\d\\d\\t\\d\\d:\\d\\d:\\d\\d:\\d\\d\\t")
82 det("powerpixel","^\\d\\d:\\d\\d:\\d\\d:\\d\\d\\t\\d\\d:\\d\\d:\\d\\d:\\d\\d\\r?\\n")
83 det("ovr","^\\d\\d:\\d\\d:\\d\\d:\\d\\d [^[:digit:][:space:][:punct:]]")
84 det("fab","^\\d\\d:\\d\\d:\\d\\d:\\d\\d \\d\\d:\\d\\d:\\d\\d:\\d\\d\\s*\\n[^[:digit:][:space:][:punct:]]")
85 det("sonicdvd","^\\d{4} \\d\\d:\\d\\d:\\d\\d:\\d\\d \\d\\d:\\d\\d:\\d\\d:\\d\\d ")
86 det("koalaplayer","(?m)^\\d+:\\d\\d:\\d\\d:[^[:digit:][:space:][:punct:]]")
87 det("subcreator1","^\\d+:\\d\\d:\\d\\d\\.\\d+:")
89 insn_b(i0
, i1
, ASAI_CHILD
, "^\\d+\\s*\\n(\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d)\\s+-->\\s+(\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d)\\s*\\r?\\n")
90 insn_ts(i1
, 8, -1); tsp(1, 3600.000000, 0.000000)
91 tsp(2, 60.000000, 0.000000)
92 tsp(3, 1.000000, 0.000000)
93 tsp(4, 0.001000, 0.000000)
95 insn_ts(i1
, 9, -1); tsp(5, 3600.000000, 0.000000)
96 tsp(6, 60.000000, 0.000000)
97 tsp(7, 1.000000, 0.000000)
98 tsp(8, 0.001000, 0.000000)
100 insn_b(i1
, i2
, ASAI_CHILD
, "(?s)^(.*?)\\s*\\n\\s*\\n")
101 insn(i2
, ASAI_SELECT
); i
->v
.select
= 1;
102 insn_sg(i2
, 4, "\\\\")
105 insn_sg(i2
, 4, "\\{")
108 insn_sg(i2
, 4, "\\}")
111 insn_sg(i2
, 4, "\\n")
114 insn_sg(i2
, 4, "<[Bb]>")
117 insn_sg(i2
, 4, "<\\/[Bb]>")
120 insn_sg(i2
, 4, "<[Ii]>")
123 insn_sg(i2
, 4, "<\\/[Ii]>")
126 insn_sg(i2
, 4, "<\\/(.*?)>")
131 insn_sg(i2
, 4, "<")
134 insn_sg(i2
, 4, ">")
137 insn_sg(i2
, 4, "&")
141 repl(-1, ",,,0,0,0,,")
145 insn(i2
, ASAI_BREAK
); i
->v
.break_depth
= 1;
149 fmt_b("encore_pal", 1)
150 insn(i0
, ASAI_FPS
); i
->v
.fps_value
= 25.000000;
151 insn_b(i0
, i1
, ASAI_CHILD
, "^\\d+ (\\d+):(\\d+):(\\d+):(\\d+) (\\d+):(\\d+):(\\d+):(\\d+) (.*(\\n[^\\d].*)*)\\n")
152 insn_ts(i1
, 8, -1); tsp(1, 3600.000000, 0.000000)
153 tsp(2, 60.000000, 0.000000)
154 tsp(3, 1.000000, 0.000000)
155 tsp(4, 0.000000, 1.000000)
157 insn_ts(i1
, 9, -1); tsp(5, 3600.000000, 0.000000)
158 tsp(6, 60.000000, 0.000000)
159 tsp(7, 1.000000, 0.000000)
160 tsp(8, 0.000000, 1.000000)
162 insn(i1
, ASAI_SELECT
); i
->v
.select
= 9;
163 insn_sg(i1
, 4, "\\/\\/")
170 fmt_b("encore_ntsc", 1)
171 insn(i0
, ASAI_FPS
); i
->v
.fps_value
= 29.969999;
172 insn_b(i0
, i1
, ASAI_CHILD
, "^\\d+ (\\d+);(\\d+);(\\d+);(\\d+) (\\d+);(\\d+);(\\d+);(\\d+) (.*(\\n[^\\d].*)*)\\n")
173 insn_ts(i1
, 8, -1); tsp(1, 3600.000000, 0.000000)
174 tsp(2, 60.000000, 0.000000)
175 tsp(3, 1.000000, 0.000000)
176 tsp(4, 0.000000, 1.000000)
178 insn_ts(i1
, 9, -1); tsp(5, 3600.000000, 0.000000)
179 tsp(6, 60.000000, 0.000000)
180 tsp(7, 1.000000, 0.000000)
181 tsp(8, 0.000000, 1.000000)
183 insn(i1
, ASAI_SELECT
); i
->v
.select
= 9;
184 insn_sg(i1
, 4, "\\/\\/")
192 insn_b(i0
, i1
, ASAI_CHILD
, "^\\{\\s*(\\d+)\\}\\{\\s*(\\d+)\\}(.*?)\\s*\\n")
193 insn_ts(i1
, 8, -1); tsp(1, 0.000000, 1.000000)
195 insn_ts(i1
, 9, -1); tsp(2, 0.000000, 1.000000)
197 insn(i1
, ASAI_SELECT
); i
->v
.select
= 3;
198 insn_sg(i1
, 4, "\\|")
206 insn_b(i0
, i1
, ASAI_CHILD
, "^#.*\\n")
208 insn_b(i0
, i1
, ASAI_CHILD
, "^{(\\d+) (.*)}\\s*\\n")
209 insn_ts(i1
, 9, -1); tsp(1, 0.000000, 1.000000)
212 insn_ts(i1
, 8, -1); tsp(1, 0.000000, 1.000000)
214 insn(i1
, ASAI_SELECT
); i
->v
.select
= 2;