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

C/C++

  1. #include ".HEADERMain_def.h"
  2. #define HINT_V      110
  3. #define HINT_H      91
  4. #define NOTE_V      1
  5. #define NOTE_H      5
  6. //#define OSD_HMAX    (((DH_ACT_END_POS - 312 - 8) / 4) + 1)
  7. #define OSD_HMAX    (((DH_ACT_END_POS - 544) / 4) + 1)
  8. #define OSD_HMIN    (((DH_ACT_END_POS - DISP_WID) / 4) + 1)
  9. #define OSD_HMID    ((OSD_HMAX + OSD_HMIN) / 2)
  10. #define OSD_VMAX    ((DISP_LEN - 250 - 14) / 4)
  11. #define OSD_VMIN    3
  12. #define OSD_VMID    ((OSD_VMIN + OSD_VMAX) / 2)
  13. #define FONT_SELECT_ADDRESS    19 //Suppose Row command include 15 rows and one row_end command
  14. #define FONT_BASE_ADDRESS      640
  15. #define ONE_BIT_FONT_NUM       20
  16. #define TWO_BIT_FONT_NUM       20
  17. #define FOUR_BIT_FONT_NUM      20
  18. #ifdef __MAIN__
  19. // Format
  20. // [Row_Number, Row1_Max_Num, Row2_Max_Num, ... Rown_Max_Num]
  21. unsigned char code Row_Info[][19]      = 
  22. {
  23. {18, 0, 10, 5, 27, 0, 50, 0, 52, 0, 50, 0, 56, 0, 50, 0, 30, 0, 40}, //Page 1
  24. };
  25. unsigned char code FactRow_Info[][20]      = 
  26. {
  27. //     1  2  3   4  5   6   7    8  9  10 11 12 13 14 15 16 17 18 19 20
  28.      {19,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30}, //anson
  29. };
  30. unsigned char code OSD_Version[]    =
  31. {
  32.     0xab,0x02, //Row 11,Col 2
  33.     0x61,_bb_,24,_nn_,
  34.     0x8b,0x02, //Row 11,Col 2
  35.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  36.     0x00,_V_,_1_,0xfb,_0_,_0_,_G_,0x00,
  37.     0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,_nn_,
  38.     _end_
  39. };
  40. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  41. unsigned char code NoCable_ENG[]    =
  42. {
  43. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  44. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  45. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  46. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  47. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  48. 0x10,0x05, 0x00,_nn_,
  49. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x00,0x8a,_bb_,5,0x00,_bb_,6,_nn_,
  50. 0x50,0x06, 0x14,0x16,0x53,0x54,0x0c,0x0c,_N_,_O_,0x0a,_C_,_A_,_B_,_L_,_E_,0x0c,_bb_,6,_nn_,
  51. 0x90,0x06, 0x00,_bb_,6,0x20,0x20, 0x00,0x20,_bb_,5,0x00,_bb_,6,_nn_,
  52. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  53. _end_
  54. };
  55. unsigned char code NoCable_GER[]    =
  56. {
  57.     _end_
  58. };
  59. unsigned char code NoCable_FRE[]    =
  60. {
  61.     _end_
  62. };
  63. unsigned char code NoCable_ITA[]    =
  64. {
  65.   
  66.     _end_
  67. };
  68. unsigned char code NoCable_SPA[]    =
  69. {
  70.   
  71.     _end_
  72. };
  73. unsigned char code NoCable_CHI_T[]  =
  74. {
  75.   
  76.     _end_
  77. };
  78. unsigned char code NoCable_CHI_S[]    =
  79. {
  80.  
  81.     _end_
  82. };
  83. unsigned char code NoCable_JAP[]    =
  84. {
  85.     _end_
  86. };
  87. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  88. unsigned char code NoSignal_ENG[]   =
  89. {
  90. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  91. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  92. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  93. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  94. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  95. 0x10,0x05, 0x00,_nn_,
  96. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x00,0x8c,_bb_,6,0x00,_bb_,5,_nn_,
  97. 0x50,0x06, 0x14,0x20,0x53,0x54,0x0c,0x0c,_N_,_O_,0x0a,_S_,_I_,_G_,_N_,_A_,_L_,0x0c,_bb_,5,_nn_,
  98. 0x90,0x06, 0x00,_bb_,6,0x20,0x20,0x00,0x20,_bb_,6,0x00,_bb_,5,_nn_,
  99. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  100. _end_
  101. };
  102. unsigned char code NoSignal_FRA[]   =
  103. {
  104. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  105. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  106. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  107. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  108. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  109. 0x10,0x05, 0x00,_nn_,
  110. 0x10,0x06, 0x00,0x00,0x8a,0x8a,0x8a,0x00,0x8a,0x8a,0x00,0x8c,_bb_,6,0x00,_bb_,5,_nn_,
  111. 0x50,0x06, 0x14,0x20,_P_,_a_,_s_,0x0c,_d_,_e_,0x0a,_s_,_i_,_g_,_n_,_a_,_l_,0x0c,_bb_,5,_nn_,
  112. 0x90,0x06, 0x20,_bb_,6,0x20,0x20,0x00,0x20,_bb_,6,0x00,_bb_,5,_nn_,
  113. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  114. _end_
  115. };
  116. unsigned char code NoSignal_DEU[]   =
  117. {
  118. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  119. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  120. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  121. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  122. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  123. 0x10,0x05, 0x00,_nn_,
  124. 0x10,0x06, 0x00,0x8a,0x8a,0x8a,0x8a,0x00,0x00,0x00,0x8c,_bb_,6,0x00,_bb_,6,_nn_,
  125. 0x50,0x06, 0x14,_K_,_e_,_i_,_n_,0x0c,0x0c,0x0a,_S_,_i_,_g_,_n_,_a_,_l_,0x0c,_bb_,6,_nn_,
  126. 0x90,0x06, 0x20,_bb_,6,0x20,0x20,0x20,_bb_,6,0x00,_bb_,6,_nn_,
  127. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  128. _end_
  129. };
  130. unsigned char code NoSignal_ESP[]   =
  131. {
  132. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  133. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  134. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  135. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  136. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  137. 0x10,0x05, 0x00,_nn_,
  138. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x8a,0x8a,0x8c,0x00,0x8c,_bb_,5,0x00,_bb_,5,_nn_,
  139. 0x50,0x06, 0x14,0x20,0x53,0x54,0x0c,0x0c,_S_,_i_,_n_,0x0a,_s_,_e_,0x98,_a_,_l_,0x0c,_bb_,5,_nn_,
  140. 0x90,0x06, 0x00,_bb_,6,0x20,0x20,0x20,0x00,0x20,_bb_,5,0x00,_bb_,5,_nn_,
  141. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  142. _end_
  143. };
  144. unsigned char code NoSignal_ITA[]   =
  145. {
  146. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  147. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  148. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  149. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  150. 0x90,0x00, 0x00,0x08,0x00,0x0f,0x00,_nn_,
  151. 0x10,0x05, 0x00,_nn_,
  152. 0x10,0x06, 0x00,0x8a,_bb_,7,0x00,0x8c,_bb_,7,0x00,_bb_,4,_nn_,
  153. 0x50,0x06, 0x14,_A_,_s_,_s_,_e_,_n_,_z_,_a_,0x0c,_s_,_e_,_g_,_n_,_a_,_l_,_e_,0x0c,_bb_,4,_nn_,
  154. 0x90,0x06, 0x20,_bb_,16,0x00,_bb_,4,_nn_,
  155. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  156. _end_
  157. };
  158. unsigned char code NoSignal_CHI_T[] =
  159. {
  160. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  161. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  162. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  163. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  164. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  165. 0x10,0x05, 0x00,_nn_,
  166. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,7,_nn_,
  167. 0x50,0x06, 0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0x0c,0x3a,0x0c,0x3b,0x0c,0x3c,0x0c,_bb_,7,_nn_,
  168. 0x90,0x06, 0x00,_bb_,8,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,7,_nn_,
  169. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  170. _end_
  171. };
  172. unsigned char code NoSignal_CHI_S[] =
  173. {
  174. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  175. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  176. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  177. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  178. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  179. 0x10,0x05, 0x00,_nn_,
  180. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,7,_nn_,
  181. 0x50,0x06, 0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0x0c,0x3d,0x0c,0x3e,0x0c,0xe4,0x0c,_bb_,7,_nn_,
  182. 0x90,0x06, 0x00,_bb_,8,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,7,_nn_,
  183. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  184. _end_
  185. };
  186. unsigned char code NoSignal_JAP[]   =
  187. {
  188. 0xc0,0x00, ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  189. 0xc0,0x03, 0x06,0x00,0x28,_nn_,
  190. 0x10,0x00, 0x80,0x83,0x83,0x83,0x80,_nn_,
  191. 0x50,0x00, 0x88,0x88,0x48,0x88,0x88,_nn_,
  192. 0x90,0x00, 0x00,0x05,0x00,0x0f,0x00,_nn_,
  193. 0x10,0x05, 0x00,_nn_,
  194. 0x10,0x06, 0x00,0x00,0x90,0x90,0x00,0x00,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,0x8c,0x00,_bb_,6,_nn_,
  195. 0x50,0x06, 0x14,0x20,0x53,0x54,0x0c,0x0c,0x0a,0xbc,0x0c,0xe4,0x0c,0x3f,0x0c,0xc9,0x0c,_bb_,6,_nn_,
  196. 0x90,0x06, 0x00,_bb_,7,0x20,0x00,0x20,0x00,0x20,0x00,0x20,0x00,_bb_,6,_nn_,
  197. 0xc1,0x00, 0x3f,0xb9,0x00,_bb_,4,0x10,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  198. _end_
  199. };
  200. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  201. unsigned char code NoSupport_ENG[]  =
  202. {
  203. 0xc0,0x00,
  204. ((DV_ACT_STA_POS/4) >> 2) + 0x38,((DH_ACT_STA_POS/4) >> 2) + 0x1e,0xa1,_nn_, //anson
  205. // ((DV_ACT_STA_POS/4) >> 2) + 0x30,((DH_ACT_STA_POS/4) >> 2) + 0x20,0xa1,_nn_,
  206. 0xc0,0x03,
  207. 0x06,0x00,0x28,_nn_,
  208. 0x10,0x00,
  209. 0x80,0x83,0x83,0x83,0x80,_nn_,
  210. 0x50,0x00,
  211. 0x88,0x88,0x48,0x88,0x88,_nn_,
  212. 0x90,0x00,
  213. 0x00,0x05,0x00,0x0f,0x00,_nn_,
  214. 0x10,0x05,
  215. 0x00,_nn_,
  216. 0x10,0x06,
  217. 0x00,0x00,0x90,0x90,0x00,0x00,
  218. 0x8a,0x8a,0x00,0x8c,_bb_,7,0x00,_bb_,4,_nn_,
  219. 0x50,0x06,
  220. 0x14,0x23,0x53,0x54,0x0c,0x0c,
  221. 0x2d,0x2e,0x0a,0x32,0x34,0x2f,0x2f,0x2e,0x31,0x33,0x0c,_bb_,4,_nn_,
  222. 0x90,0x06,
  223. 0x00,_bb_,6,
  224. 0x20,_bb_,14,_nn_,
  225. 0xc1,0x00,
  226. 0x3f,0xb9,0x00,_bb_,4,0x60,0x04,0x0f,0x00,0x0a,0x19,_nn_,
  227. _end_
  228. };
  229. unsigned char code NoSupport_GER[]  =
  230. {
  231.     _end_
  232. };
  233. unsigned char code NoSupport_FRE[]  =
  234. {
  235.  
  236.     _end_
  237. };
  238. unsigned char code NoSupport_ITA[]  =
  239. {
  240.     _end_
  241. };
  242. unsigned char code NoSupport_SPA[]  =
  243. {
  244.     _end_
  245. };
  246. unsigned char code NoSupport_CHI_T[]    =
  247. {
  248.  
  249.     _end_
  250. };
  251. unsigned char code NoSupport_CHI_S[]    =
  252. {
  253.  
  254.     _end_
  255. };
  256. unsigned char code NoSupport_JAP[]  =
  257. {
  258.     _end_
  259. };
  260. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  261. unsigned char code OSD_RGB[]=
  262. {
  263. 0xc0,0x00,
  264. ((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
  265. 0xc0,0x03,
  266. 0x06,0x00,0x28,_nn_,
  267. 0x10,0x00,
  268. 0x80,_bb_,5,_nn_,
  269. 0x50,0x00,
  270. 0x88,_bb_,5,_nn_,
  271. 0x90,0x00,
  272. 0x00,0x00,0x0f,0x00,0x00,_nn_,
  273. 0x10,0x05,
  274. 0x00,_nn_,
  275. 0x10,0x06,
  276. 0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
  277. 0x50,0x06,
  278. 0x0c,0x31,0x00,0x26,0x00,0x21,0x00,0x00,0x00,
  279. 0x0c,_bb_,6,_nn_,
  280. 0x90,0x06,
  281. 0x00,0x20,0x30,0xc0,0x30,_bb_,5,0x00,_bb_,6,_nn_,
  282. 0xc1,0x00,
  283. 0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,
  284. _end_
  285. };
  286. unsigned char code OSD_DVI[]=
  287. {
  288. 0xc0,0x00,
  289. ((DV_ACT_STA_POS/4) >> 2) + 0x05,((DH_ACT_STA_POS/4) >> 2) + 0x02,0x01,_nn_,
  290. 0xc0,0x03,
  291. 0x06,0x00,0x28,_nn_,
  292. 0x10,0x00,
  293. 0x80,_bb_,5,_nn_,
  294. 0x50,0x00,
  295. 0x88,_bb_,5,_nn_,
  296. 0x90,0x00,
  297. 0x00,0x00,0x0f,0x00,0x00,_nn_,
  298. 0x10,0x05,
  299. 0x00,_nn_,
  300. 0x10,0x06,
  301. 0x00,0x8c,_bb_,8,0x00,_bb_,6,_nn_,
  302. 0x50,0x06,
  303. 0x0c,0x23,0x00,0x35,0x00,0x28,0x00,0x00,0x00,
  304. 0x0c,_bb_,6,_nn_,
  305. 0x90,0x06,
  306. 0x00,0x40,0x30,0x40,0x30,0x40,0x30,0x30,0x30,0x00,_bb_,6,_nn_,
  307. 0xc1,0x00,
  308. 0x1b,0x9b,0x00,0x00,0x80,0x02,0x80,0x01,0x08,0x00,0x0a,0x19,_nn_,
  309. _end_
  310. };
  311. unsigned char code rgb_OSD_VOLUME[]=
  312. {
  313.     //note : Frame control which a15:a14 is 00:[0] , 01:[4] , 10:[8] , 11[C]
  314.     //                     and   a12     is 0
  315.     //                     and   a11:a0  is among 000 ~ 0xx
  316.     //  example   0xc0,0x00 : a15 & a14 == 1 , a13 & a12 == 0 , a11~a0 is 0
  317.     //  Frame control byte 0 : V delay
  318.     //                byte 1 : H delay
  319.     //                byte 2 : reference page.107
  320. 0xc0,0x00,    //all , Frame control 
  321. ((DV_ACT_STA_POS/4) >> 2) + 0x3b,((DH_ACT_STA_POS/4) >> 2) + 0x1d,0x01,_nn_, //anson
  322. //-------------------------
  323. 0xc0,0x03,
  324. 0x06,0x00,0x28,_nn_,    //妮┦