asademux_defs.h
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:7k
源码类别:

midi

开发平台:

Unix_Linux

  1. /* AUTOGENERATED FILE, DO NOT EDIT */
  2. /* generated from "./imports" on 2007-08-31T13:23:59+00:00 */
  3. void preparse_add()
  4. {
  5. #define insn_init { NULL, NULL, 0, { 0 } }
  6. #define det(n,r) { static struct asa_import_detect d = { NULL }; 
  7. d.name = n; 
  8. if (!asa_pcre_compile(&d.re, r)) 
  9. asa_det_last = &(*asa_det_last = &d)->next; }
  10. #define fmt_b(n,t) { static struct asa_import_format f = { NULL }; 
  11. struct asa_import_insn *i, **i0 = NULL; 
  12. f.name = n; f.target = t;
  13. #define fmt_e() 
  14. }
  15. #define insn(n,t) { static struct asa_import_insn ii = insn_init; 
  16. i = ⅈ *n = i; n = &i->next; i->insn = t; }
  17. #define insn_b(n, m, t, r) { struct asa_import_insn **m;
  18. { static struct asa_import_insn ii = insn_init; 
  19. i = ⅈ ii.insn = t; 
  20. m = &ii.v.child.insns; 
  21. }
  22. if (!asa_pcre_compile(&i->v.child.regex, r)) { 
  23. *n = i; n = &i->next;
  24. #define insn_e() } }
  25. #define insn_sg(n, t, r) { struct asa_repl **repl;
  26. { static struct asa_import_insn ii = insn_init; 
  27. i = ⅈ ii.insn = t; 
  28. repl = &ii.v.sg.repl; 
  29. }
  30. if (!asa_pcre_compile(&i->v.sg.regex, r)) { 
  31. *n = i; n = &i->next;
  32. #define insn_sge() } }
  33. #define repl(g, t) { static struct asa_repl r = { NULL, g, t }; 
  34. *repl = &r; repl = &r.next; }
  35. #define insn_ts(n, t, d) { struct asa_tspec **tsp;
  36. { static struct asa_import_insn ii = insn_init; 
  37. i = ⅈ ii.insn = t; ii.v.tspec.delta_select = d; 
  38. tsp = &ii.v.tspec.tsp; 
  39. }
  40. *n = i; n = &i->next;
  41. #define insn_tse() }
  42. #define tsp(g, m, f) { static struct asa_tspec t = { NULL, g, m, f }; 
  43. *tsp = &t; tsp = &t.next; }
  44. det("qttext","^\{QTtext\}")
  45. det("rtf","^\{\\rtf")
  46. det("viplay","^\{\* VIPLAY")
  47. det("zerog","^% Zero G")
  48. det("sst","^SST ")
  49. det("philips","^# PHILIPS SVCD DESIGNER")
  50. det("ulead","^#Ulead subtitle")
  51. det("sonicscenarist","^st_format\s*\d")
  52. det("dvdjunior","^Subtitle File Mark")
  53. det("captionsdat","^\0\r#")
  54. det("inscriber","^@@.*\n@@\d Created by URUSoft")
  55. det("ssa","(?mi)^(ScriptType:|\[Script Info)")
  56. 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")
  57. det("microdvd","^\{\d+\}\{\d+\}")
  58. det("sami","(?i)<SAMI")
  59. det("smil","(?i)<SMIL")
  60. det("smil_rt","(?i)<WINDOW")
  61. det("html","(?i)<HTML")
  62. det("jacosub","(?m)^#([DT]\d+)")
  63. det("sasamis2k","(?m)^;(Env|Set)\.")
  64. det("phoenix","^[ \d]+,[ \d]+, ".*"")
  65. det("vkt","(?m)^\{\d+ .*\}")
  66. det("e2","^\[\d+\]\[\d+\]")
  67. det("powerdivx","^\{\d+:\d\d:\d\d\}\{\d+:\d\d:\d\d\}")
  68. det("sbt","^\d\d:\d\d:\d\d\s*\n\d\d:\d\d:\d\d\s*\n\s*\n")
  69. det("karaokelrc","(?m)^\[\d\d:\d\d\.\d\d\]")
  70. det("dks","^\[\d\d:\d\d:\d\d\]")
  71. det("aqtitle","^-->> \d+\s*\n")
  72. det("panimator","^\/(c|d \d+ \d+)\s*\n")
  73. det("tmplayer","^\d\d:\d\d:\d\d,\d=")
  74. det("cap32","^\d\d:\d\d:\d\d:\d\d , \d\d:\d\d:\d\d:\d\d , ")
  75. det("not_encore","(?m)^\d\d:\d\d:\d\d:\d\d \d\d:\d\d:\d\d:\d\d ")
  76. det("encore_ntsc","(?m)^\d+ \d+;\d+;\d+;\d+ \d+;\d+;\d+;\d+ ")
  77. det("encore_pal","(?m)^\d+ \d+:\d+:\d+:\d+ \d+:\d+:\d+:\d+ ")
  78. det("turbotitler","^\d+:\d\d:\d\d\.\d\d,\d+:\d\d:\d\d\.\d\d,")
  79. det("macdvdpro","^\d\d:\d\d:\d\d:\d\d\t\d\d:\d\d:\d\d:\d\d\t")
  80. det("powerpixel","^\d\d:\d\d:\d\d:\d\d\t\d\d:\d\d:\d\d:\d\d\r?\n")
  81. det("ovr","^\d\d:\d\d:\d\d:\d\d [^[:digit:][:space:][:punct:]]")
  82. det("fab","^\d\d:\d\d:\d\d:\d\d  \d\d:\d\d:\d\d:\d\d\s*\n[^[:digit:][:space:][:punct:]]")
  83. det("sonicdvd","^\d{4}  \d\d:\d\d:\d\d:\d\d  \d\d:\d\d:\d\d:\d\d  ")
  84. det("koalaplayer","(?m)^\d+:\d\d:\d\d:[^[:digit:][:space:][:punct:]]")
  85. det("subcreator1","^\d+:\d\d:\d\d\.\d+:")
  86. fmt_b("subrip", 2)
  87. 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")
  88. insn_ts(i1, 8, -1);  tsp(1, 3600.000000, 0.000000)
  89. tsp(2, 60.000000, 0.000000)
  90. tsp(3, 1.000000, 0.000000)
  91. tsp(4, 0.001000, 0.000000)
  92. insn_tse()
  93. insn_ts(i1, 9, -1);  tsp(5, 3600.000000, 0.000000)
  94. tsp(6, 60.000000, 0.000000)
  95. tsp(7, 1.000000, 0.000000)
  96. tsp(8, 0.001000, 0.000000)
  97. insn_tse()
  98. insn_b(i1, i2, ASAI_CHILD, "(?s)^(.*?)\s*\n\s*\n")
  99. insn(i2, ASAI_SELECT); i->v.select = 1;
  100. insn_sg(i2, 4, "\\")
  101. repl(-1, "\\")
  102. insn_sge()
  103. insn_sg(i2, 4, "\{")
  104. repl(-1, "\{")
  105. insn_sge()
  106. insn_sg(i2, 4, "\}")
  107. repl(-1, "\}")
  108. insn_sge()
  109. insn_sg(i2, 4, "\n")
  110. repl(-1, "\n")
  111. insn_sge()
  112. insn_sg(i2, 4, "<[Bb]>")
  113. repl(-1, "{\b1}")
  114. insn_sge()
  115. insn_sg(i2, 4, "<\/[Bb]>")
  116. repl(-1, "{\b0}")
  117. insn_sge()
  118. insn_sg(i2, 4, "<[Ii]>")
  119. repl(-1, "{\i1}")
  120. insn_sge()
  121. insn_sg(i2, 4, "<\/[Ii]>")
  122. repl(-1, "{\i0}")
  123. insn_sge()
  124. insn_sg(i2, 4, "<\/(.*?)>")
  125. repl(-1, "{")
  126. repl(12, NULL)
  127. repl(-1, "3}")
  128. insn_sge()
  129. insn_sg(i2, 4, "&lt;")
  130. repl(-1, "<")
  131. insn_sge()
  132. insn_sg(i2, 4, "&gt;")
  133. repl(-1, ">")
  134. insn_sge()
  135. insn_sg(i2, 4, "&amp;")
  136. repl(-1, "&")
  137. insn_sge()
  138. insn_sg(i2, 4, "^")
  139. repl(-1, ",,,0,0,0,,")
  140. insn_sge()
  141. insn(i2, 6);
  142. insn(i2, 0);
  143. insn(i2, ASAI_BREAK); i->v.break_depth = 1;
  144. insn_e()
  145. insn_e()
  146. fmt_e()
  147. fmt_b("encore_pal", 1)
  148. insn(i0, ASAI_FPS); i->v.fps_value = 25.000000;
  149. insn_b(i0, i1, ASAI_CHILD, "^\d+ (\d+):(\d+):(\d+):(\d+) (\d+):(\d+):(\d+):(\d+) (.*(\n[^\d].*)*)\n")
  150. insn_ts(i1, 8, -1);  tsp(1, 3600.000000, 0.000000)
  151. tsp(2, 60.000000, 0.000000)
  152. tsp(3, 1.000000, 0.000000)
  153. tsp(4, 0.000000, 1.000000)
  154. insn_tse()
  155. insn_ts(i1, 9, -1);  tsp(5, 3600.000000, 0.000000)
  156. tsp(6, 60.000000, 0.000000)
  157. tsp(7, 1.000000, 0.000000)
  158. tsp(8, 0.000000, 1.000000)
  159. insn_tse()
  160. insn(i1, ASAI_SELECT); i->v.select = 9;
  161. insn_sg(i1, 4, "\/\/")
  162. repl(-1, "x0a")
  163. insn_sge()
  164. insn(i1, 6);
  165. insn(i1, 0);
  166. insn_e()
  167. fmt_e()
  168. fmt_b("encore_ntsc", 1)
  169. insn(i0, ASAI_FPS); i->v.fps_value = 29.969999;
  170. insn_b(i0, i1, ASAI_CHILD, "^\d+ (\d+);(\d+);(\d+);(\d+) (\d+);(\d+);(\d+);(\d+) (.*(\n[^\d].*)*)\n")
  171. insn_ts(i1, 8, -1);  tsp(1, 3600.000000, 0.000000)
  172. tsp(2, 60.000000, 0.000000)
  173. tsp(3, 1.000000, 0.000000)
  174. tsp(4, 0.000000, 1.000000)
  175. insn_tse()
  176. insn_ts(i1, 9, -1);  tsp(5, 3600.000000, 0.000000)
  177. tsp(6, 60.000000, 0.000000)
  178. tsp(7, 1.000000, 0.000000)
  179. tsp(8, 0.000000, 1.000000)
  180. insn_tse()
  181. insn(i1, ASAI_SELECT); i->v.select = 9;
  182. insn_sg(i1, 4, "\/\/")
  183. repl(-1, "x0a")
  184. insn_sge()
  185. insn(i1, 6);
  186. insn(i1, 0);
  187. insn_e()
  188. fmt_e()
  189. fmt_b("microdvd", 1)
  190. insn_b(i0, i1, ASAI_CHILD, "^\{\s*(\d+)\}\{\s*(\d+)\}(.*?)\s*\n")
  191. insn_ts(i1, 8, -1);  tsp(1, 0.000000, 1.000000)
  192. insn_tse()
  193. insn_ts(i1, 9, -1);  tsp(2, 0.000000, 1.000000)
  194. insn_tse()
  195. insn(i1, ASAI_SELECT); i->v.select = 3;
  196. insn_sg(i1, 4, "\|")
  197. repl(-1, "x0a")
  198. insn_sge()
  199. insn(i1, 6);
  200. insn(i1, 0);
  201. insn_e()
  202. fmt_e()
  203. fmt_b("vkt", 1)
  204. insn_b(i0, i1, ASAI_CHILD, "^#.*\n")
  205. insn_e()
  206. insn_b(i0, i1, ASAI_CHILD, "^{(\d+) (.*)}\s*\n")
  207. insn_ts(i1, 9, -1);  tsp(1, 0.000000, 1.000000)
  208. insn_tse()
  209. insn(i1, 0);
  210. insn_ts(i1, 8, -1);  tsp(1, 0.000000, 1.000000)
  211. insn_tse()
  212. insn(i1, ASAI_SELECT); i->v.select = 2;
  213. insn(i1, 6);
  214. insn_e()
  215. fmt_e()
  216. }