VDC_cfg.h
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:42k
开发平台:

C/C++

  1. #ifdef __MAIN__
  2. ///////////////////////////////////////////////////////////////////////////////
  3. // Video decoder setting
  4.  
  5. #if (VIDEO_CHIP == VDC_SAA7111)
  6. unsigned char code V_NOWORK[]   =   // Video No Work
  7. {
  8.     27, ADDR_7111A, 0x02,   0x07,0x1F,0x00,0x00,0xEB,0xE0,
  9.                        0x8B,0x84,0x80,0x40,0x40,0x00,0x04,0x00,
  10.                             0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
  11.                             0x00,0x00,
  12.     0
  13. };
  14. unsigned char code AV_DETECT[]  =   // REG[0E] for different source
  15. {
  16.     27, ADDR_7111A, 0x02,   0xD8,0x27,0x00,0x00,0xEB,0xE0,
  17.                             0xC8,0x04,0x80,0x40,0x40,0x00,0x0d,0x00,
  18.                             0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
  19.                             0x00,0x00,
  20.     0
  21. };
  22. unsigned char code SV_DETECT[]  =   // REG[0E] for different source
  23. {
  24.     27, ADDR_7111A, 0x02,   0xDF,0x27,0x00,0x00,0xEB,0xE0,
  25.                             0xC8,0x84,0x80,0x40,0x40,0x00,0x0d,0x00,
  26.                             0x40,0x00,0xA0,0x05,0x00,0x11,0x00,0x01,
  27.                             0x00,0x00,
  28.     0
  29. };
  30. unsigned char code YUV_DETECT[]  =  // No data
  31. {
  32.     0
  33. };
  34. unsigned char code V_DISABLE[]  =   // No data
  35. {
  36.     0
  37. };
  38. unsigned char code V_ENABLE[]   =   // No data
  39. {
  40.     0
  41. };
  42. unsigned char code AV_60_0[]    =   // 60Hz/525line  NTSC M
  43. {
  44.     19, ADDR_7111A, 0x08,   0xC8,0x14,0x92,0x48,0x60,0x00,0x04,0x00,    //enable Chrominance comb filter
  45.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  46.     0
  47. };
  48. unsigned char code AV_60_1[]    =   // 60Hz/525line  PAL 4.43
  49. {
  50.     19, ADDR_7111A, 0x08,   0xC8,0x04,0x92,0x48,0x60,0x00,0x14,0x00,    //enable Chrominance comb filter
  51.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  52.     0
  53. };
  54. unsigned char code AV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  55. {
  56.     19, ADDR_7111A, 0x08,   0xC8,0x14,0x92,0x48,0x60,0x00,0x24,0x00,    //enable Chrominance comb filter
  57.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  58.     0
  59. };
  60. unsigned char code AV_60_3[]    =   // 60Hz/525line  PAL M
  61. {
  62.     19, ADDR_7111A, 0x08,   0xC8,0x04,0x92,0x48,0x60,0x00,0x34,0x00,    //enable Chrominance comb filter
  63.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  64.     0
  65. };
  66. unsigned char code AV_60_4[]    =   // reserved
  67. {
  68.     0
  69. };
  70. unsigned char code AV_50_0[]    =   // 50Hz/625line  PAL BGHI
  71. {
  72.     19, ADDR_7111A, 0x08,   0x88,0x04,0x92,0x48,0x60,0x00,0x04,0x00,    //enable Chrominance comb filter
  73.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  74.     0
  75. };
  76. unsigned char code AV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  77. {
  78.     19, ADDR_7111A, 0x08,   0x88,0x14,0x92,0x48,0x60,0x00,0x14,0x00,    //enable Chrominance comb filter
  79.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  80.     0
  81. };
  82. unsigned char code AV_50_2[]    =   // 50Hz/625line  PAL N
  83. {
  84.     19, ADDR_7111A, 0x08,   0x88,0x04,0x92,0x48,0x60,0x00,0x24,0x00,    //enable Chrominance comb filter
  85.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  86.     0
  87. };
  88. unsigned char code AV_50_3[]    =   // 50Hz/625line  NTSC N
  89. {
  90.     19, ADDR_7111A, 0x08,   0x88,0x14,0x92,0x48,0x60,0x00,0x34,0x00,    //enable Chrominance comb filter
  91.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  92.     0
  93. };
  94. unsigned char code AV_50_4[]    =   // reserved
  95. {
  96.     0
  97. };
  98. unsigned char code AV_SECAM[]   =   // 50Hz/625line  SECAM
  99. {
  100.     19, ADDR_7111A, 0x08,   0x88,0x04,0x92,0x48,0x60,0x00,0x5c,0x00,    //disable Chrominance comb filter
  101.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  102.     0
  103. };
  104. unsigned char code SV_60_0[]    =   // 60Hz/525line  NTSC M
  105. {
  106.     19, ADDR_7111A, 0x08,   0xC8,0x94,0x92,0x48,0x60,0x00,0x0d,0x00,    //disable Chrominance comb filter
  107.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  108.     0
  109. };
  110. unsigned char code SV_60_1[]    =   // 60Hz/525line  PAL 4.43
  111. {
  112.     19, ADDR_7111A, 0x08,   0xC8,0x84,0x92,0x48,0x60,0x00,0x1d,0x00,    //disable Chrominance comb filter
  113.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  114.     0
  115. };
  116. unsigned char code SV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  117. {
  118.     19, ADDR_7111A, 0x08,   0xC8,0x94,0x92,0x48,0x60,0x00,0x2d,0x00,    //disable Chrominance comb filter
  119.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  120.     0
  121. };
  122. unsigned char code SV_60_3[]    =   // 60Hz/525line  PAL M
  123. {
  124.     19, ADDR_7111A, 0x08,   0xC8,0x84,0x92,0x48,0x60,0x00,0x3d,0x00,    //disable Chrominance comb filter
  125.                             0x40,0x0C,0x80,0x00,0x00,0x11,0x00,0x01,
  126.     0
  127. };
  128. unsigned char code SV_60_4[]    =   // Reserved
  129. {
  130.     0
  131. };
  132. unsigned char code SV_50_0[]    =   // 50Hz/625line  PAL BGHI
  133. {
  134.     19, ADDR_7111A, 0x08,   0x88,0x84,0x92,0x48,0x60,0x00,0x0d,0x00,    //disable Chrominance comb filter
  135.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  136.     0
  137. };     
  138. unsigned char code SV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  139. {
  140.     19, ADDR_7111A, 0x08,   0x88,0x94,0x92,0x48,0x60,0x00,0x1d,0x00,    //disable Chrominance comb filter
  141.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  142.     0
  143. };     
  144. unsigned char code SV_50_2[]    =   // 50Hz/625line  PAL N
  145. {
  146.     19,  ADDR_7111A, 0x08,  0x88,0x84,0x92,0x48,0x60,0x00,0x2d,0x00,    //disable Chrominance comb filter
  147.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  148.     0
  149. };     
  150. unsigned char code SV_50_3[]    =   // 50Hz/625line  NTSC N
  151. {
  152.     19, ADDR_7111A, 0x08,   0x88,0x94,0x92,0x48,0x60,0x00,0x3d,0x00,    //disable Chrominance comb filter    
  153.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  154.     0
  155. };     
  156. unsigned char code SV_50_4[]    =   // Reserved
  157. {
  158.     0
  159. };
  160.                
  161. unsigned char code SV_SECAM[]   =   // 50Hz/625line  SECAM
  162. {
  163.     19, ADDR_7111A, 0x08,   0x88,0x84,0x92,0x48,0x60,0x00,0x5c,0x00,    //disable Chrominance comb filter
  164.                             0x40,0x0C,0x80,0x00,0x00,0x16,0x33,0x01,
  165.     0
  166. };
  167. unsigned char code VIDEO_ALL[]  =   // No data
  168. {
  169.     0
  170. };
  171. unsigned char code VIDEO_YUV[]  =   // No data
  172. {
  173.     0
  174. };
  175. unsigned char code VIDEO_60[]   =   // No data
  176. {
  177.     0
  178. };
  179. unsigned char code VIDEO_50[]   =   // No data
  180. {
  181.     0
  182. };
  183. unsigned char code TV_SOURCE_SEL[]  =   // No data
  184. {
  185.     0
  186. };
  187. unsigned char code TV_SCAN_GAIN[]   =   // No data
  188. {
  189.     0
  190. };
  191. unsigned char code TV_DISP_GAIN[]   =   // No data
  192. {
  193.     0
  194. };
  195. #else
  196. #if (VIDEO_CHIP == VDC_SAA7114)
  197. unsigned char code V_NOWORK[]   =   // Video No Work
  198. {
  199.     28, ADDR_7114,  0x01,        0x08,0x00,0x18,0x90,0x90,0xEB,0xE0,
  200.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  201.                             0x0e,0x00,0x00,0x10,0x24,0x00,0x10,0x00, //0x13 0x17
  202.                             0x40,0x80,
  203.     0
  204. };
  205. unsigned char code AV_DETECT[]  =   // REG[0E] for different source
  206. {
  207.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,     
  208.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,    //[09] then = 0x40
  209.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17 
  210.                             0x40,0x80,
  211.     0
  212. };
  213. unsigned char code SV_DETECT[]  =   // REG[0E] for different source
  214. {
  215.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  216.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  217.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00, //0x13 0x17 
  218.                             0x40,0x80,
  219.     0
  220. };
  221. unsigned char code YUV_DETECT[]  =  // No data
  222. {
  223.     0
  224. };
  225. unsigned char code TV_SOURCE_SEL[]  =
  226. {
  227.     4,  ADDR_7114,  0x02,   0xc0,
  228.     0
  229. };
  230. unsigned char code TV_SCAN_GAIN[]   =
  231. {
  232.     6,  ADDR_7114,   0x03,  0x0c,0x60,0x60,
  233.     0
  234. };
  235. unsigned char code TV_DISP_GAIN[]   =
  236. {
  237.     6,  ADDR_7114,   0x03,  0x00,0x90,0x90,
  238.     0
  239. };
  240. unsigned char code V_DISABLE[]  =
  241. {
  242.     4,  ADDR_7114,  0x88,   0x00,
  243.     0
  244. };
  245. unsigned char code V_ENABLE[]   =
  246. {
  247.     4,  ADDR_7114,  0x88,   0xe0,
  248.     0
  249. };
  250. unsigned char code AV_60_0[]    =   // 60Hz/525line  NTSC M
  251. {
  252.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  253.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
  254.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  255.                             0x40,0x80,
  256.     0
  257. };
  258. unsigned char code AV_60_1[]    =   // 60Hz/525line  PAL 4.43
  259. {
  260.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  261.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
  262.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  263.                             0x40,0x80,
  264.     0
  265. };
  266. unsigned char code AV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  267. {
  268.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  269.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
  270.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  271.                             0x40,0x80,
  272.     0
  273. };
  274. unsigned char code AV_60_3[]    =   // 60Hz/525line  PAL M
  275. {
  276.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  277.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
  278.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  279.                             0x40,0x80,
  280.     0
  281. };
  282. unsigned char code AV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  283. {
  284.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  285.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
  286.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  287.                             0x40,0x80,
  288.     0
  289. };
  290. unsigned char code AV_50_0[]    =   // 50Hz/625line  PAL BGHI
  291. {
  292.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  293.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
  294.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  295.                             0x40,0x80,
  296.     0
  297. };
  298. unsigned char code AV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  299. {
  300.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  301.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
  302.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  303.                             0x40,0x80,
  304.     0
  305. };
  306. unsigned char code AV_50_2[]    =   // 50Hz/625line  PAL N
  307. {
  308.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  309.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
  310.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  311.                             0x40,0x80,
  312.     0
  313. };
  314. unsigned char code AV_50_3[]    =   // 50Hz/625line  NTSC N
  315. {
  316.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  317.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
  318.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  319.                             0x40,0x80,
  320.     0
  321. };
  322. unsigned char code AV_50_4[]    =   // reserved
  323. {
  324.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0, 
  325.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
  326.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  327.                             0x40,0x80,
  328.     0
  329. };
  330. unsigned char code AV_SECAM[]   =   // 50Hz/625line  SECAM
  331. {
  332.     28, ADDR_7114,  0x01,        0x08,0xc5,0x00,0x90,0x90,0xEB,0xE0,
  333.                             0x98,0x3B,0x80,0x3E,0x40,0x00,0x58,0x80,    //0xA4,
  334.                             0x00,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  335.                             0x40,0x80,
  336.     0
  337. };
  338. unsigned char code SV_60_0[]    =   // 60Hz/525line  NTSC M
  339. {
  340.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  341.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  342.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  343.                             0x40,0x80,
  344.     0
  345. };
  346. unsigned char code SV_60_1[]    =   // 60Hz/525line  PAL 4.43
  347. {
  348.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  349.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
  350.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  351.                             0x40,0x80,
  352.     0
  353. };
  354. unsigned char code SV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  355. {
  356.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  357.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
  358.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  359.                             0x40,0x80,
  360.     0
  361. };
  362. unsigned char code SV_60_3[]    =   // 60Hz/525line  PAL M
  363. {
  364.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  365.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
  366.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  367.                             0x40,0x80,
  368.     0
  369. };
  370. unsigned char code SV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  371. {
  372.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  373.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
  374.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17 
  375.                             0x40,0x80,
  376.     0
  377. };
  378. unsigned char code SV_50_0[]    =   // 50Hz/625line  PAL BGHI
  379. {
  380.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  381.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
  382.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  383.                             0x40,0x80,
  384.     0
  385. };
  386. unsigned char code SV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  387. {
  388.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  389.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
  390.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  391.                             0x40,0x80,
  392.     0
  393. };
  394. unsigned char code SV_50_2[]    =   // 50Hz/625line  PAL N
  395. {
  396.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  397.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
  398.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  399.                             0x40,0x80,
  400.     0
  401. };
  402. unsigned char code SV_50_3[]    =   // 50Hz/625line  NTSC N
  403. {
  404.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  405.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
  406.                             0x0e,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17
  407.                             0x40,0x80,
  408.     0
  409. };
  410. unsigned char code SV_50_4[]    =   // Reserved
  411. {
  412.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  413.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
  414.                             0x06,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  415.                             0x40,0x80,
  416.     0
  417. };
  418. unsigned char code SV_SECAM[]   =   // 50Hz/625line  SECAM
  419. {
  420.     28, ADDR_7114,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  421.                             0x98,0xab,0x80,0x3E,0x40,0x00,0x58,0x80,    //0xA4,
  422.                             0x00,0x00,0xd9,0x10,0x24,0x00,0x10,0x00,   //0x13 0x17  
  423.                             0x40,0x80,
  424.     0
  425. };
  426. unsigned char code VIDEO_ALL[]  =
  427. {
  428.     211,    ADDR_7114,  0x20,    
  429.     //0x20~0x2f
  430.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  431.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  432.     //0x30~0x3f
  433.     0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
  434.     0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
  435.     //0x40~0x4f
  436.     0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
  437.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  438.     //0x50~0x5f
  439.     0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
  440.     0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
  441.     //0x60~0x6f
  442.     0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
  443.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  444.     //0x70~0x7f
  445.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  446.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  447.     //0x80~0x8f
  448.     0x12,0x00,0x00,0x01,0x01,0x04,0x45,0x01,   //0x83
  449.     0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  450.     //0x90~0x9f
  451.     0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  452.     0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
  453.     //0xa0~0xaf
  454.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  455.     0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
  456.     //0xb0~0xbf
  457.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  458.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  459.     //0xc0~0xcf
  460.     0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
  461.     0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
  462.     //0xd0~0xdf
  463.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  464.     0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
  465.     //0xe0~0xef
  466.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  467.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  468.     0
  469. };
  470. unsigned char code VIDEO_YUV[]  =   // No data
  471. {
  472.     0
  473. };
  474. unsigned char code VIDEO_60[]   =   // 60Hz
  475. {
  476.     19, ADDR_7114,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  477.                             0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01,    //can move (with noise)
  478.     0
  479. };
  480. unsigned char code VIDEO_50[]   =   // 50Hz
  481. {
  482.     19, ADDR_7114,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  483.                             0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01,    //can move (with noise)
  484.     0
  485. };
  486. #else
  487. #if (VIDEO_CHIP == VDC_SAA7115)
  488. unsigned char code V_NOWORK[]   =   // Video No Work
  489. {
  490.     28, ADDR_7115,  0x01,        0x08,0x00,0x18,0x90,0x90,0xEB,0xE0,
  491.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  492.                             0x0E,0x00,0x00,0x00,0x00,0x00,0x10,0xC0,
  493.                             0x40,0x80,
  494.     0
  495. };
  496. unsigned char code AV_DETECT[]  =   // REG[0E] for different source
  497. {
  498.     32, ADDR_7115,  0x01,        0x08,0xc0,0x20,0x90,0x90,0xEB,0xE0,     
  499.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x08,0x2A,
  500.                             0x0E,0x00,0xd9,0x00,0x00,0x00,0x10,0x80, 
  501.                             0x40,0x80,0x77,0x42,0xa9,0x01,
  502.     0
  503. };
  504. unsigned char code SV_DETECT[]  =   // REG[0E] for different source
  505. {
  506.     32, ADDR_7115,  0x01,        0x08,0xc9,0x20,0x90,0x90,0xEB,0xE0,
  507.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  508.                             0x0E,0x00,0xd9,0x00,0x00,0x00,0x10,0x80, 
  509.                             0x40,0x80,0x77,0x42,0xa9,0x01,
  510.     0
  511. };
  512. unsigned char code YUV_DETECT[]  =  // No data
  513. {
  514.     0
  515. };
  516. unsigned char code TV_SOURCE_SEL[]  =
  517. {
  518.     4,  ADDR_7115,  0x02,   0xc5,
  519.     0
  520. };
  521. unsigned char code TV_SCAN_GAIN[]   =
  522. {
  523.     6,  ADDR_7115,   0x03,  0x0c,0x60,0x60,
  524.     0
  525. };
  526. unsigned char code TV_DISP_GAIN[]   =
  527. {
  528.     6,  ADDR_7115,   0x03,  0x00,0x90,0x90,
  529.     0
  530. };
  531. unsigned char code V_DISABLE[]  =
  532. {
  533.     4,  ADDR_7115,  0x88,   0x00,
  534.     0
  535. };
  536. unsigned char code V_ENABLE[]   =
  537. {
  538.     4,  ADDR_7115,  0x88,   0xe0,
  539.     0
  540. };
  541. unsigned char code AV_60_0[]    =   // 60Hz/525line  NTSC M
  542. {
  543.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  544.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
  545.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  546.                             0x40,0x80,
  547.     0
  548. };
  549. unsigned char code AV_60_1[]    =   // 60Hz/525line  PAL 4.43
  550. {
  551.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  552.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
  553.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,
  554.                             0x40,0x80,
  555.     0
  556. };
  557. unsigned char code AV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  558. {
  559.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  560.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
  561.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  562.                             0x40,0x80,
  563.     0
  564. };
  565. unsigned char code AV_60_3[]    =   // 60Hz/525line  PAL M
  566. {
  567.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  568.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
  569.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  570.                             0x40,0x80,
  571.     0
  572. };
  573. unsigned char code AV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  574. {
  575.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  576.                             0xD0,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
  577.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  578.                             0x40,0x80,
  579.     0
  580. };
  581. unsigned char code AV_50_0[]    =   // 50Hz/625line  PAL BGHI
  582. {
  583.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  584.                             0x90,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
  585.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  586.                             0x40,0x80,
  587.     0
  588. };
  589. unsigned char code AV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  590. {
  591.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  592.                             0x90,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
  593.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  594.                             0x40,0x80,
  595.     0
  596. };
  597. unsigned char code AV_50_2[]    =   // 50Hz/625line  PAL N
  598. {
  599.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  600.                             0x90,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
  601.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  602.                             0x40,0x80,
  603.     0
  604. };
  605. unsigned char code AV_50_3[]    =   // 50Hz/625line  NTSC N
  606. {
  607.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  608.                             0x90,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
  609.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  610.                             0x40,0x80,
  611.     0
  612. };
  613. unsigned char code AV_50_4[]    =   // reserved
  614. {
  615.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0, 
  616.                             0x90,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
  617.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  618.                             0x40,0x80,
  619.     0
  620. };
  621. unsigned char code AV_SECAM[]   =   // 50Hz/625line  SECAM
  622. {
  623.     28, ADDR_7115,  0x01,        0x08,0xc0,0x00,0x90,0x90,0xEB,0xE0,
  624.                             0x90,0x1B,0x80,0x3E,0x40,0x00,0x58,0x2A,
  625.                             0x00,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  626.                             0x40,0x80,
  627.     0
  628. };
  629. unsigned char code SV_60_0[]    =   // 60Hz/525line  NTSC M
  630. {
  631.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  632.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  633.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  634.                             0x40,0x80,
  635.     0
  636. };
  637. unsigned char code SV_60_1[]    =   // 60Hz/525line  PAL 4.43
  638. {
  639.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  640.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
  641.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  642.                             0x40,0x80,
  643.     0
  644. };
  645. unsigned char code SV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  646. {
  647.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  648.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
  649.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  650.                             0x40,0x80,
  651.     0
  652. };
  653. unsigned char code SV_60_3[]    =   // 60Hz/525line  PAL M
  654. {
  655.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  656.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
  657.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  658.                             0x40,0x80,
  659.     0
  660. };
  661. unsigned char code SV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  662. {
  663.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  664.                             0xD0,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
  665.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  666.                             0x40,0x80,
  667.     0
  668. };
  669. unsigned char code SV_50_0[]    =   // 50Hz/625line  PAL BGHI
  670. {
  671.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  672.                             0x90,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
  673.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  674.                             0x40,0x80,
  675.     0
  676. };
  677. unsigned char code SV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  678. {
  679.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  680.                             0x90,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
  681.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  682.                             0x40,0x80,
  683.     0
  684. };
  685. unsigned char code SV_50_2[]    =   // 50Hz/625line  PAL N
  686. {
  687.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  688.                             0x90,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
  689.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  690.                             0x40,0x80,
  691.     0
  692. };
  693. unsigned char code SV_50_3[]    =   // 50Hz/625line  NTSC N
  694. {
  695.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0, 
  696.                             0x90,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
  697.                             0x0e,0x00,0xd9,0x00,0x00,0x00,0x10,0x98, 
  698.                             0x40,0x80,
  699.     0
  700. };
  701. unsigned char code SV_50_4[]    =   // Reserved
  702. {
  703.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  704.                             0x90,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
  705.                             0x06,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  706.                             0x40,0x80,
  707.     0
  708. };
  709. unsigned char code SV_SECAM[]   =   // 50Hz/625line  SECAM
  710. {
  711.     28, ADDR_7115,  0x01,        0x08,0xc9,0x00,0x90,0x90,0xEB,0xE0,
  712.                             0x90,0x9B,0x80,0x3E,0x40,0x00,0x58,0x2A,
  713.                             0x00,0x00,0xd9,0x00,0x00,0x00,0x10,0x98,  
  714.                             0x40,0x80,
  715.     0
  716. };
  717. unsigned char code VIDEO_ALL[]  =
  718. {
  719.     211,    ADDR_7115,  0x20,
  720.     //0x20~0x2f
  721.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  722.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  723.     //0x30~0x3f
  724.     0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
  725.     0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
  726.     //0x40~0x4f
  727.     0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
  728.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  729.     //0x50~0x5f
  730.     0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
  731.     0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
  732.     //0x60~0x6f
  733.     0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
  734.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  735.     //0x70~0x7f
  736.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  737.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  738.     //0x80~0x8f
  739.     0x18,0x00,0x00,0x00,0x01,0x04,0x45,0x01,
  740.     0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  741.     //0x90~0x9f
  742.     0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  743.     0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
  744.     //0xa0~0xaf
  745.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  746.     0x00,0x04,0x00,0x00,0xff,0x01,0x00,0x00,
  747.     //0xb0~0xbf
  748.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  749.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  750.     //0xc0~0xcf
  751.     0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
  752.     0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
  753.     //0xd0~0xdf
  754.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  755.     0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
  756.     //0xe0~0xef
  757.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  758.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  759.     0
  760. };
  761. unsigned char code VIDEO_YUV[]  =   // No data
  762. {
  763.     0
  764. };
  765. unsigned char code VIDEO_60[]   =   // 60Hz
  766. {
  767.     19, ADDR_7115,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  768.                             0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01,    //can move (with noise)
  769.     0
  770. };
  771. unsigned char code VIDEO_50[]   =   // 50Hz
  772. {
  773.     19, ADDR_7115,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  774.                             0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01,    //can move (with noise)
  775.     0
  776. };
  777. #else
  778. #if (VIDEO_CHIP == VDC_SAA7118)
  779. unsigned char code V_NOWORK[]   =   // Video No Work
  780. {
  781.     28, ADDR_7118,  0x01,        0x07,0x00,0x18,0x90,0x90,0xEB,0xE0,
  782.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  783.                             0x0e,0x00,0x00,0x00,0x24,0x00,0x10,0xC0,
  784.                             0x40,0x80,
  785.     0
  786. };
  787. unsigned char code AV_DETECT[]  =   // REG[0E] for different source
  788. {
  789.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,     
  790.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x0a,0x2A,    //[09] then = 0x40
  791.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  792.                             0x40,0x80,
  793.     0
  794. };
  795. unsigned char code SV_DETECT[]  =   // REG[0E] for different source
  796. {
  797.     28, ADDR_7118,  0x01,        0x07,0xC6,0x00,0x90,0x90,0xEB,0xE0,
  798.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x0A,0x2A,
  799.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  800.                             0x40,0x80,
  801.     0
  802. };
  803. unsigned char code YUV_DETECT[] =   // REG[0E] for different source
  804. {
  805.     28, ADDR_7118,  0x01,        0x07,0xef,0x00,0x90,0x90,0xEB,0xE0,
  806.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x0A,0x2A,
  807.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  808.                             0x40,0x80,
  809.     0
  810. };
  811. unsigned char code TV_SOURCE_SEL[]  =   // No data
  812. {
  813.     0
  814. };
  815. unsigned char code TV_SCAN_GAIN[]   =   // No data
  816. {
  817.     0
  818. };
  819. unsigned char code TV_DISP_GAIN[]   =   // No data
  820. {
  821.     0
  822. };
  823. unsigned char code V_DISABLE[]  =
  824. {
  825.     4,  ADDR_7118,  0x88,   0x00,
  826.     0
  827. };
  828. unsigned char code V_ENABLE[]   =
  829. {
  830.     4,  ADDR_7118,  0x88,   0xe0,
  831.     0
  832. };
  833. unsigned char code AV_60_0[]    =   // 60Hz/525line  NTSC M
  834. {
  835.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  836.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x09,0x2A,
  837.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  838.                             0x40,0x80,
  839.     0
  840. };
  841. unsigned char code AV_60_1[]    =   // 60Hz/525line  PAL 4.43
  842. {
  843.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  844.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x11,0x2A,
  845.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,
  846.                             0x40,0x80,
  847.     0
  848. };
  849. unsigned char code AV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  850. {
  851.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  852.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x29,0x2A,
  853.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  854.                             0x40,0x80,
  855.     0
  856. };
  857. unsigned char code AV_60_3[]    =   // 60Hz/525line  PAL M
  858. {
  859.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  860.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x31,0x2A,
  861.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  862.                             0x40,0x80,
  863.     0
  864. };
  865. unsigned char code AV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  866. {
  867.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  868.                             0xD8,0x40,0x80,0x3E,0x40,0x00,0x49,0x2A,
  869.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  870.                             0x40,0x80,
  871.     0
  872. };
  873. unsigned char code AV_50_0[]    =   // 50Hz/625line  PAL BGHI
  874. {
  875.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  876.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x01,0x2A,
  877.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  878.                             0x40,0x80,
  879.     0
  880. };
  881. unsigned char code AV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  882. {
  883.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  884.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x19,0x2A,
  885.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  886.                             0x40,0x80,
  887.     0
  888. };
  889. unsigned char code AV_50_2[]    =   // 50Hz/625line  PAL N
  890. {
  891.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  892.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x21,0x2A,
  893.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  894.                             0x40,0x80,
  895.     0
  896. };
  897. unsigned char code AV_50_3[]    =   // 50Hz/625line  NTSC N
  898. {
  899.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  900.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x39,0x2A,
  901.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  902.                             0x40,0x80,
  903.     0
  904. };
  905. unsigned char code AV_50_4[]    =   // reserved
  906. {
  907.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0, 
  908.                             0x98,0x40,0x80,0x3E,0x40,0x00,0x41,0x2A,
  909.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  910.                             0x40,0x80,
  911.     0
  912. };
  913. unsigned char code AV_SECAM[]   =   // 50Hz/625line  SECAM
  914. {
  915.     28, ADDR_7118,  0x01,        0x07,0xde,0x00,0x90,0x90,0xEB,0xE0,
  916.                             0x98,0x1B,0x80,0x3E,0x40,0x00,0x58,0x80,    //0xA4,
  917.                             0x00,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  918.                             0x40,0x80,
  919.     0
  920. };
  921. unsigned char code SV_60_0[]    =   // 60Hz/525line  NTSC M
  922. {
  923.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  924.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x08,0x2A,
  925.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  926.                             0x40,0x80,
  927.     0
  928. };
  929. unsigned char code SV_60_1[]    =   // 60Hz/525line  PAL 4.43
  930. {
  931.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  932.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x10,0x2A,
  933.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  934.                             0x40,0x80,
  935.     0
  936. };
  937. unsigned char code SV_60_2[]    =   // 60Hz/525line  NTSC 4.43
  938. {
  939.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  940.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x28,0x2A,
  941.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  942.                             0x40,0x80,
  943.     0
  944. };
  945. unsigned char code SV_60_3[]    =   // 60Hz/525line  PAL M
  946. {
  947.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  948.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x30,0x2A,
  949.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  950.                             0x40,0x80,
  951.     0
  952. };
  953. unsigned char code SV_60_4[]    =   // 60Hz/525line  NTSC JAPAN
  954. {
  955.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  956.                             0xD8,0x80,0x80,0x3E,0x40,0x00,0x48,0x2A,
  957.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  958.                             0x40,0x80,
  959.     0
  960. };
  961. unsigned char code SV_50_0[]    =   // 50Hz/625line  PAL BGHI
  962. {
  963.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  964.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x00,0x2A,
  965.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  966.                             0x40,0x80,
  967.     0
  968. };
  969. unsigned char code SV_50_1[]    =   // 50Hz/625line  NTSC 4.43
  970. {
  971.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  972.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x18,0x2A,
  973.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  974.                             0x40,0x80,
  975.     0
  976. };
  977. unsigned char code SV_50_2[]    =   // 50Hz/625line  PAL N
  978. {
  979.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0, 
  980.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x20,0x2A,
  981.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  982.                             0x40,0x80,
  983.     0
  984. };
  985. unsigned char code SV_50_3[]    =   // 50Hz/625line  NTSC N
  986. {
  987.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0, 
  988.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x38,0x2A,
  989.                             0x0e,0x00,0xd9,0x00,0x20,0x00,0x10,0x98, 
  990.                             0x40,0x80,
  991.     0
  992. };
  993. unsigned char code SV_50_4[]    =   // Reserved
  994. {
  995.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  996.                             0x98,0x80,0x80,0x3E,0x40,0x00,0x40,0x2A,
  997.                             0x06,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  998.                             0x40,0x80,
  999.     0
  1000. };
  1001. unsigned char code SV_SECAM[]   =   // 50Hz/625line  SECAM
  1002. {
  1003.     28, ADDR_7118,  0x01,        0x07,0xc6,0x00,0x90,0x90,0xEB,0xE0,
  1004.                             0x98,0x9B,0x80,0x3E,0x40,0x00,0x58,0x80,    //0xA4,
  1005.                             0x00,0x00,0xd9,0x00,0x20,0x00,0x10,0x98,  
  1006.                             0x40,0x80,
  1007.     0
  1008. };
  1009. unsigned char code VIDEO_ALL[]  =
  1010. {
  1011.     211,    ADDR_7118,  0x20,    
  1012.     //0x20~0x2f
  1013.     0x00,0x00,0x00,0x00,0x90,0x90,0x00,0x00,
  1014.     0x00,0x00,0x80,0x40,0x40,0x00,0x00,0x00,
  1015.     //0x30~0x3f
  1016.     0xbc,0xdf,0x02,0x00,0xcd,0xcc,0x3a,0x00,
  1017.     0x03,0x20,0x03,0x00,0x00,0x00,0x00,0x00,
  1018.     //0x40~0x4f
  1019.     0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
  1020.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1021.     //0x50~0x5f
  1022.     0x00,0x00,0x00,0x00,0x5f,0xff,0xff,0xff,
  1023.     0x00,0x47,0x06,0x03,0x00,0x00,0x00,0x00,
  1024.     //0x60~0x6f
  1025.     0x00,0x05,0xa0,0x00,0x00,0x00,0x00,0x00,
  1026.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1027.     //0x70~0x7f
  1028.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1029.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1030.     //0x80~0x8f
  1031.     0x12,0x00,0x00,0x00,0x01,0x04,0x45,0x01,
  1032.     0xe0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1033.     //0x90~0x9f
  1034.     0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  1035.     0x10,0x00,0xf0,0x00,0xbc,0x02,0xf0,0x00,
  1036.     //0xa0~0xaf
  1037.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  1038.     0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
  1039.     //0xb0~0xbf
  1040.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  1041.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1042.     //0xc0~0xcf
  1043.     0x00,0x08,0x10,0x81,0x10,0x00,0xd0,0x02,
  1044.     0x0a,0x00,0x20,0x01,0xd0,0x02,0x20,0x01,
  1045.     //0xd0~0xdf
  1046.     0x01,0x00,0x00,0x00,0x80,0x40,0x40,0x00,
  1047.     0x00,0x04,0x00,0x00,0x00,0x02,0x00,0x00,
  1048.     //0xe0~0xef
  1049.     0x00,0x04,0x00,0x04,0x00,0x00,0x00,0x00,
  1050.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  1051.     0
  1052. };
  1053. unsigned char code VIDEO_YUV[]  =
  1054. {
  1055.     4,  ADDR_7118,  0x29,   0x40,
  1056.     0
  1057. };
  1058. unsigned char code VIDEO_60[]   =   // 60Hz
  1059. {
  1060.     19, ADDR_7118,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  1061.                             0x00,0x00,0x04,0x01,0xbc,0x02,0x04,0x01,    //can move (with noise)
  1062.     0
  1063. };
  1064. unsigned char code VIDEO_50[]   =   // 50Hz
  1065. {
  1066.     19, ADDR_7118,  0x90,   0x00,0x08,0x09,0x40,0x08,0x00,0xbc,0x02,
  1067.                             0x00,0x00,0x38,0x01,0xbc,0x02,0x38,0x01,    //can move (with noise)
  1068.     0
  1069. };
  1070. #else   // No video decoder
  1071. unsigned char code V_NOWORK[]   =   {0};
  1072. //---------------------------DETECT------------------------------
  1073. unsigned char code AV_DETECT[]  =   {0};
  1074. unsigned char code SV_DETECT[]  =   {0};
  1075. unsigned char code YUV_DETECT[] =   {0};
  1076. //-----------------------------------------------------------------
  1077. unsigned char code V_DISABLE[]  =   {0};
  1078. unsigned char code V_ENABLE[]   =   {0};
  1079. //---------------------------AV SET------------------------------
  1080. //------60--------
  1081. unsigned char code AV_60_0[]    =   {0};
  1082. unsigned char code AV_60_1[]    =   {0};
  1083. unsigned char code AV_60_2[]    =   {0};
  1084. unsigned char code AV_60_3[]    =   {0};
  1085. unsigned char code AV_60_4[]    =   {0};
  1086. //------50--------
  1087. unsigned char code AV_50_0[]    =   {0};
  1088. unsigned char code AV_50_1[]    =   {0};
  1089. unsigned char code AV_50_2[]    =   {0};
  1090. unsigned char code AV_50_3[]    =   {0};
  1091. unsigned char code AV_50_4[]    =   {0};
  1092. //-----SECAM------
  1093. unsigned char code AV_SECAM[]   =   {0};
  1094. //---------------------------SV SET------------------------------
  1095. //------60--------
  1096. unsigned char code SV_60_0[]    =   {0};
  1097. unsigned char code SV_60_1[]    =   {0};
  1098. unsigned char code SV_60_2[]    =   {0};
  1099. unsigned char code SV_60_3[]    =   {0};
  1100. unsigned char code SV_60_4[]    =   {0};
  1101. //------50--------
  1102. unsigned char code SV_50_0[]    =   {0};
  1103. unsigned char code SV_50_1[]    =   {0};
  1104. unsigned char code SV_50_2[]    =   {0};
  1105. unsigned char code SV_50_3[]    =   {0};
  1106. unsigned char code SV_50_4[]    =   {0};
  1107. //-----SECAM------               
  1108. unsigned char code SV_SECAM[]   =   {0};
  1109. //---------------------------VIDEO SET---------------------------
  1110. unsigned char code VIDEO_ALL[]  =   {0};
  1111. unsigned char code VIDEO_YUV[]  =   {0};
  1112. unsigned char code VIDEO_60[]   =   {0};
  1113. unsigned char code VIDEO_50[]   =   {0};
  1114. unsigned char code TV_SOURCE_SEL[]  = {0};
  1115. unsigned char code TV_SCAN_GAIN[]   = {0};
  1116. unsigned char code TV_DISP_GAIN[]   = {0};
  1117. #endif
  1118. #endif
  1119. #endif
  1120. #endif
  1121. #else   // #else of #ifdef __MAIN__
  1122. extern unsigned char code V_NOWORK[];
  1123. extern unsigned char code V_DISABLE[];
  1124. extern unsigned char code V_ENABLE[];
  1125. extern unsigned char code AV_DETECT[];
  1126. extern unsigned char code SV_DETECT[];
  1127. extern unsigned char code YUV_DETECT[];
  1128. extern unsigned char code AV_60_0[];
  1129. extern unsigned char code AV_60_1[];
  1130. extern unsigned char code AV_60_2[];
  1131. extern unsigned char code AV_60_3[];
  1132. extern unsigned char code AV_60_4[];
  1133. extern unsigned char code AV_50_0[];
  1134. extern unsigned char code AV_50_1[];
  1135. extern unsigned char code AV_50_2[];
  1136. extern unsigned char code AV_50_3[];
  1137. extern unsigned char code AV_50_4[];
  1138. extern unsigned char code AV_SECAM[];
  1139. extern unsigned char code SV_60_0[];
  1140. extern unsigned char code SV_60_1[];
  1141. extern unsigned char code SV_60_2[];
  1142. extern unsigned char code SV_60_3[];
  1143. extern unsigned char code SV_60_4[];
  1144. extern unsigned char code SV_50_0[];
  1145. extern unsigned char code SV_50_1[];
  1146. extern unsigned char code SV_50_2[];
  1147. extern unsigned char code SV_50_3[];
  1148. extern unsigned char code SV_50_4[];
  1149. extern unsigned char code SV_SECAM[];
  1150. extern unsigned char code VIDEO_ALL[];
  1151. extern unsigned char code VIDEO_YUV[];
  1152. extern unsigned char code VIDEO_60[];
  1153. extern unsigned char code VIDEO_50[];
  1154. extern unsigned char code TV_SOURCE_SEL[];
  1155. extern unsigned char code TV_SCAN_GAIN[];
  1156. extern unsigned char code TV_DISP_GAIN[];
  1157. #endif