fsgui_rgb8.inc
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:11k
源码类别:

DVD

开发平台:

C/C++

  1. /*
  2. //Standard 256 color table
  3. //RGB8_Y : RGB 256 color -> Y(YCrCb) mapping table
  4. const BYTE RGB8_Y[256]= {
  5. 0x0, 0x7, 0xe, 0x15, 0x12, 0x1a, 0x21, 0x28, 0x25, 0x2c, 0x34, 0x3b, 0x38, 0x3f, 0x46, 0x4e,
  6. 0x4b, 0x52, 0x59, 0x61, 0x5d, 0x65, 0x6c, 0x73, 0x70, 0x78, 0x7f, 0x86, 0x83, 0x8a, 0x92, 0x99,
  7. 0x9, 0x10, 0x18, 0x1f, 0x1c, 0x23, 0x2a, 0x32, 0x2f, 0x36, 0x3d, 0x45, 0x41, 0x49, 0x50, 0x57,
  8. 0x54, 0x5c, 0x63, 0x6a, 0x67, 0x6e, 0x76, 0x7d, 0x7a, 0x81, 0x88, 0x90, 0x8d, 0x94, 0x9b, 0xa2,
  9. 0x13, 0x1a, 0x21, 0x29, 0x25, 0x2d, 0x34, 0x3b, 0x38, 0x40, 0x47, 0x4e, 0x4b, 0x52, 0x5a, 0x61,
  10. 0x5e, 0x65, 0x6c, 0x74, 0x71, 0x78, 0x7f, 0x86, 0x83, 0x8b, 0x92, 0x99, 0x96, 0x9d, 0xa5, 0xac,
  11. 0x1c, 0x24, 0x2b, 0x32, 0x2f, 0x36, 0x3e, 0x45, 0x42, 0x49, 0x50, 0x58, 0x55, 0x5c, 0x63, 0x6a,
  12. 0x67, 0x6f, 0x76, 0x7d, 0x7a, 0x81, 0x89, 0x90, 0x8d, 0x94, 0x9c, 0xa3, 0xa0, 0xa7, 0xae, 0xb6,
  13. 0x26, 0x2d, 0x34, 0x3c, 0x39, 0x40, 0x47, 0x4e, 0x4b, 0x53, 0x5a, 0x61, 0x5e, 0x65, 0x6d, 0x74,
  14. 0x71, 0x78, 0x80, 0x87, 0x84, 0x8b, 0x92, 0x9a, 0x96, 0x9e, 0xa5, 0xac, 0xa9, 0xb1, 0xb8, 0xbf,
  15. 0x2f, 0x37, 0x3e, 0x45, 0x42, 0x49, 0x51, 0x58, 0x55, 0x5c, 0x64, 0x6b, 0x68, 0x6f, 0x76, 0x7e,
  16. 0x7a, 0x82, 0x89, 0x90, 0x8d, 0x95, 0x9c, 0xa3, 0xa0, 0xa7, 0xaf, 0xb6, 0xb3, 0xba, 0xc1, 0xc9,
  17. 0x39, 0x40, 0x48, 0x4f, 0x4c, 0x53, 0x5a, 0x62, 0x5e, 0x66, 0x6d, 0x74, 0x71, 0x79, 0x80, 0x87,
  18. 0x84, 0x8b, 0x93, 0x9a, 0x97, 0x9e, 0xa5, 0xad, 0xaa, 0xb1, 0xb8, 0xc0, 0xbc, 0xc4, 0xcb, 0xd2,
  19. 0x42, 0x4a, 0x51, 0x58, 0x55, 0x5d, 0x64, 0x6b, 0x68, 0x6f, 0x77, 0x7e, 0x7b, 0x82, 0x89, 0x91,
  20. 0x8e, 0x95, 0x9c, 0xa4, 0xa0, 0xa8, 0xaf, 0xb6, 0xb3, 0xba, 0xc2, 0xc9, 0xc6, 0xcd, 0xd5, 0xdc,
  21. };
  22.   
  23. //RGB8_CrCb : RGB 256 color -> CrCb(YCrCb) mapping table
  24. const UINT16 RGB8_CrCb[256]= {
  25. 0x8080, 0x7aa0, 0x75c0, 0x70e0, 0x7275, 0x6d95, 0x68b5, 0x62d5, 0x656a, 0x608a, 0x5aaa, 0x55ca, 0x5760, 0x5280, 0x4da0, 0x48c0,
  26. 0x4a55, 0x4575, 0x4095, 0x3ab5, 0x3d4a, 0x376a, 0x328a, 0x2daa, 0x2f40, 0x2a60, 0x2580, 0x1fa0, 0x2235, 0x1d55, 0x1775, 0x1295,
  27. 0x907a, 0x8a9a, 0x85ba, 0x80da, 0x8270, 0x7d90, 0x78b0, 0x72d0, 0x7565, 0x7085, 0x6aa5, 0x65c5, 0x675a, 0x627a, 0x5d9a, 0x58ba,
  28. 0x5a50, 0x5570, 0x5090, 0x4ab0, 0x4d45, 0x4765, 0x4285, 0x3da5, 0x3f3a, 0x3a5a, 0x357a, 0x309a, 0x3230, 0x2d50, 0x2770, 0x2290,
  29. 0xa075, 0x9a95, 0x95b5, 0x90d5, 0x926a, 0x8d8a, 0x88aa, 0x82ca, 0x8560, 0x8080, 0x7aa0, 0x75c0, 0x7755, 0x7275, 0x6d95, 0x68b5,
  30. 0x6a4a, 0x656a, 0x608a, 0x5aaa, 0x5d40, 0x5760, 0x5280, 0x4da0, 0x4f35, 0x4a55, 0x4575, 0x4095, 0x422a, 0x3d4a, 0x376a, 0x328a,
  31. 0xb06f, 0xaa8f, 0xa5af, 0xa0cf, 0xa265, 0x9d85, 0x98a5, 0x92c5, 0x955a, 0x907a, 0x8a9a, 0x85ba, 0x8750, 0x8270, 0x7d90, 0x78b0,
  32. 0x7a45, 0x7565, 0x7085, 0x6aa5, 0x6d3a, 0x675a, 0x627a, 0x5d9a, 0x5f30, 0x5a50, 0x5570, 0x5090, 0x5225, 0x4d45, 0x4765, 0x4285,
  33. 0xc06a, 0xba8a, 0xb5aa, 0xb0ca, 0xb25f, 0xad7f, 0xa89f, 0xa2bf, 0xa555, 0xa075, 0x9a95, 0x95b5, 0x974a, 0x926a, 0x8d8a, 0x88aa,
  34. 0x8a40, 0x8560, 0x8080, 0x7aa0, 0x7d35, 0x7755, 0x7275, 0x6d95, 0x6f2a, 0x6a4a, 0x656a, 0x608a, 0x6220, 0x5d40, 0x5760, 0x5280,
  35. 0xd065, 0xca85, 0xc5a5, 0xc0c5, 0xc25a, 0xbd7a, 0xb89a, 0xb2ba, 0xb54f, 0xb06f, 0xaa8f, 0xa5af, 0xa745, 0xa265, 0x9d85, 0x98a5,
  36. 0x9a3a, 0x955a, 0x907a, 0x8a9a, 0x8d30, 0x8750, 0x8270, 0x7d90, 0x7f25, 0x7a45, 0x7565, 0x7085, 0x721a, 0x6d3a, 0x675a, 0x627a,
  37. 0xe05f, 0xda7f, 0xd59f, 0xd0bf, 0xd255, 0xcd75, 0xc895, 0xc2b5, 0xc54a, 0xc06a, 0xba8a, 0xb5aa, 0xb73f, 0xb25f, 0xad7f, 0xa89f,
  38. 0xaa35, 0xa555, 0xa075, 0x9a95, 0x9d2a, 0x974a, 0x926a, 0x8d8a, 0x8f20, 0x8a40, 0x8560, 0x8080, 0x8215, 0x7d35, 0x7755, 0x7275,
  39. 0xf05a, 0xea7a, 0xe59a, 0xe0ba, 0xe24f, 0xdd6f, 0xd88f, 0xd2af, 0xd545, 0xd065, 0xca85, 0xc5a5, 0xc73a, 0xc25a, 0xbd7a, 0xb89a,
  40. 0xba2f, 0xb54f, 0xb06f, 0xaa8f, 0xad25, 0xa745, 0xa265, 0x9d85, 0x9f1a, 0x9a3a, 0x955a, 0x907a, 0x9210, 0x8d30, 0x8750, 0x8270,
  41. };
  42. */
  43. #ifndef MP3_LARGE_GUI
  44. //RGB8_Y : RGB 256 color -> Y(YCrCb) mapping table
  45. const BYTE RGB8_Y[256] = {
  46. 0x0,0xff,0x90,0xac,0xa0,0x2d,0xab,0x74,0x9f,0xb4,0x58,0x8b,0x98,0xa8,0xa2,0x93,
  47. 0x9d,0x99,0xad,0xa2,0x7b,0xa4,0xb8,0x8b,0x93,0x8f,0x83,0x9f,0x3b,0xa1,0xc0,0x9c,
  48. 0xa4,0x95,0x9a,0xa2,0x9d,0x9d,0xab,0x96,0x93,0x9b,0x97,0x6d,0x47,0xa3,0xa2,0x94,
  49. 0x90,0x98,0xd0,0xb4,0x53,0xbc,0xd4,0x89,0x91,0xa1,0x8e,0x5d,0xab,0x80,0x9e,0xc0,
  50. 0xcc,0x2f,0x9a,0xcf,0xb6,0x77,0xb3,0x9f,0x5f,0xba,0xab,0x3f,0x71,0x9a,0x51,0x89,
  51. 0x27,0x7d,0xc7,0xc9,0xbe,0x22,0x24,0x26,0x6d,0x7f,0x98,0x65,0xb7,0xde,0x42,0x71,
  52. 0xa4,0xb1,0xc5,0xc0,0xc7,0x92,0xcf,0xae,0xce,0x8c,0xb2,0x3b,0x8a,0xb7,0xbe,0x66,
  53. 0x70,0x82,0x81,0x99,0xb6,0xc5,0xad,0xa0,0xae,0x5a,0x5a,0x6c,0xa7,0xb5,0xbc,0xbe,
  54. 0xc4,0x72,0x9b,0xcb,0x70,0x7e,0x54,0x88,0x93,0xa2,0xbb,0xce,0x77,0x80,0xca,0xd6,
  55. 0x75,0xb7,0xc3,0xc9,0x73,0x94,0x82,0xa3,0xc7,0x7b,0xbf,0x8a,0xd1,0x9b,0xb3,0xc9,
  56. 0xcf,0xb1,0xc0,0xd9,0x91,0xa2,0xe4,0xdb,0xae,0xbd,0xf1,0xd4,0x9c,0xc9,0xb1,0xaf,
  57. 0xc5,0x73,0xd3,0x84,0xe0,0x34,0xec,0x8b,0xb2,0xee,0xa8,0xc3,0xca,0xd8,0xaa,0x91,
  58. 0xbf,0xb9,0xa4,0xbf,0x61,0x78,0xd6,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  59. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  60. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  61. 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
  62. };
  63. //RGB8_CrCb : RGB 256 color -> CrCb(YCrCb) mapping table
  64. const UINT16 RGB8_CrCb[256] = {
  65. 0x8080,0x8080,0xb66f,0xad74,0xaa78,0xb277,0x9c7b,0xae79,0xb678,0xa979,0xb17a,0xa281,0xa581,0x9881,0xa583,0xa283,
  66. 0xa184,0xa586,0x9e85,0x9283,0x9a86,0x9d86,0x9986,0xa189,0x9285,0x8581,0x9e8b,0xa08b,0xbc97,0x988a,0x9288,0x9c8d,
  67. 0x9c8d,0x9b90,0x988e,0x988e,0x9b91,0x928c,0x938e,0x9a95,0x9792,0x9792,0x948f,0x9490,0xc1b7,0x8e8c,0x9291,0x9696,
  68. 0x9393,0x9393,0x8787,0x8e8f,0x8181,0x9ba1,0x9296,0x9297,0x9297,0xa1ad,0x8f94,0xb5d5,0x8c93,0xa6c0,0x8f99,0x8d9e,
  69. 0x8080,0x94c3,0x8fb2,0x8698,0x8495,0x8ac4,0x83a4,0x829b,0x83d1,0x80a4,0x7ea9,0x79e5,0x7cc7,0x7db2,0x79d9,0x7cbb,
  70. 0x74f3,0x7c9f,0x7d98,0x7c9c,0x7d98,0x74d3,0x75bd,0x79a6,0x7f81,0x73c0,0x7d8d,0x6ece,0x77a3,0x7d8b,0x66df,0x6ec7,
  71. 0x76a4,0x77a1,0x799a,0x76a1,0x779d,0x73a6,0x7899,0x7a92,0x7995,0x6eb4,0x73a4,0x61d5,0x68be,0x72a6,0x72a2,0x63ca,
  72. 0x66be,0x67ba,0x6fa8,0x6dae,0x739e,0x739e,0x6dac,0x6fa6,0x72a1,0x5bd1,0x5fc8,0x6ca9,0x69af,0x6ea8,0x6ea4,0x739b,
  73. 0x749a,0x5dc3,0x65b6,0x7496,0x54ce,0x5ebd,0x6aa9,0x5dc1,0x61bb,0x64b2,0x6fa0,0x7299,0x56ca,0x58c5,0x709c,0x7690,
  74. 0x51cc,0x6ba1,0x6e9d,0x7098,0x52c4,0x5bb3,0x52b6,0x5ca7,0x6f92,0x48ba,0x6897,0x49b1,0x6d91,0x53a7,0x5e9e,0x6393,
  75. 0x6691,0x539d,0x5b98,0x6a8e,0x3ba9,0x46a2,0x7088,0x7286,0x5b8d,0x6488,0x7c81,0x6e85,0x548b,0x6985,0x617d,0x656c,
  76. 0x6d70,0x5250,0x7473,0x7f7e,0x7a76,0x7f7c,0x7f76,0x8b3c,0x807f,0x885f,0x817b,0xa11d,0x9b36,0x934f,0xaf56,0xba4f,
  77. 0x817f,0xa763,0xb469,0xa372,0xd460,0xc366,0x9577,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,
  78. 0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,
  79. 0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,
  80. 0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,0x8080,
  81. };
  82. #else//#ifndef MP3_LARGE_GUI
  83. const BYTE RGB8_Y[256] = {
  84. 0x10, 0x33, 0x56, 0x7a, 0x1d, 0x41, 0x64, 0xc3, 0xd2, 0xc6, 0x33, 0x3c, 0x45, 0x4e, 0x56, 0x5f, 
  85. 0x33, 0x3c, 0x45, 0x4d, 0x56, 0x5f, 0x68, 0x71, 0x44, 0x4d, 0x56, 0x5f, 0x68, 0x71, 0x7a, 0x83, 
  86. 0x56, 0x5f, 0x68, 0x71, 0x7a, 0x82, 0x8b, 0x94, 0x68, 0x71, 0x79, 0x82, 0x8b, 0x94, 0x9d, 0xa6, 
  87. 0x79, 0x82, 0x8b, 0x94, 0x9d, 0xa6, 0xaf, 0xb7, 0x8b, 0x94, 0x9d, 0xa6, 0xae, 0xb7, 0xc0, 0xc9, 
  88. 0x16, 0x1f, 0x28, 0x31, 0x3a, 0x43, 0x4c, 0x54, 0x28, 0x31, 0x3a, 0x43, 0x4b, 0x54, 0x5d, 0x66, 
  89. 0x3a, 0x42, 0x4b, 0x54, 0x5d, 0x66, 0x6f, 0x78, 0x4b, 0x54, 0x5d, 0x66, 0x6f, 0x78, 0x80, 0x89, 
  90. 0x5d, 0x66, 0x6f, 0x77, 0x80, 0x89, 0x92, 0x9b, 0x6e, 0x77, 0x80, 0x89, 0x92, 0x9b, 0xa4, 0xad, 
  91. 0x80, 0x89, 0x92, 0x9b, 0xa4, 0xac, 0xb5, 0xbe, 0x92, 0x9b, 0xa3, 0xac, 0xb5, 0xbe, 0xc7, 0xd0, 
  92. 0x1d, 0x26, 0x2f, 0x38, 0x41, 0x49, 0x52, 0x5b, 0x2f, 0x38, 0x40, 0x49, 0x52, 0x5b, 0x64, 0x6d, 
  93. 0x40, 0x49, 0x52, 0x5b, 0x64, 0x6d, 0x76, 0x7e, 0x52, 0x5b, 0x64, 0x6d, 0x75, 0x7e, 0x87, 0x90, 
  94. 0x64, 0x6c, 0x75, 0x7e, 0x87, 0x90, 0x99, 0xa2, 0x75, 0x7e, 0x87, 0x90, 0x99, 0xa2, 0xaa, 0xb3, 
  95. 0x87, 0x90, 0x99, 0xa1, 0xaa, 0xb3, 0xbc, 0xc5, 0x98, 0xa1, 0xaa, 0xb3, 0xbc, 0xc5, 0xce, 0xd7, 
  96. 0x24, 0x2d, 0x36, 0x3e, 0x47, 0x50, 0x59, 0x62, 0x35, 0x3e, 0x47, 0x50, 0x59, 0x62, 0x6b, 0x74, 
  97. 0x47, 0x50, 0x59, 0x62, 0x6b, 0x73, 0x7c, 0x85, 0x59, 0x62, 0x6a, 0x73, 0x7c, 0x85, 0x8e, 0x97, 
  98. 0x6a, 0x73, 0x7c, 0x85, 0x8e, 0x97, 0xa0, 0xa8, 0x7c, 0x85, 0x8e, 0x97, 0x9f, 0xa8, 0xb1, 0xba, 
  99. 0x8e, 0x96, 0x9f, 0xa8, 0xb1, 0xba, 0xfa, 0xa5, 0x87, 0x56, 0x9c, 0xe3, 0x2a, 0x71, 0xb7, 0xfe, 
  100. };
  101. const UINT16 RGB8_CrCb[256] = {
  102. 0x8080, 0xbf6a, 0x4b55, 0x8a40, 0x75bf, 0xb5aa, 0x4095, 0x807f, 0x7475, 0x6b98, 0x926a, 0xa265, 0xb25f, 0xc25a, 0xd255, 0xe14f, 
  103. 0x656a, 0x7565, 0x8560, 0x955a, 0xa555, 0xb44f, 0xc44a, 0xd445, 0x5860, 0x685a, 0x7855, 0x8750, 0x974a, 0xa745, 0xb73f, 0xc73a, 
  104. 0x4b55, 0x5a50, 0x6a4a, 0x7a45, 0x8a40, 0x9a3a, 0xaa35, 0xba2f, 0x3d4a, 0x4d45, 0x5d40, 0x6d3a, 0x7d35, 0x8d30, 0x9d2a, 0xac25, 
  105. 0x3040, 0x403a, 0x5035, 0x6030, 0x702a, 0x7f25, 0x8f20, 0x9f1a, 0x2335, 0x3330, 0x432a, 0x5225, 0x6220, 0x721a, 0x8215, 0x9210, 
  106. 0x7a9f, 0x8a9a, 0x9a95, 0xaa8f, 0xba8a, 0xca84, 0xda7f, 0xe97a, 0x6d95, 0x7d8f, 0x8d8a, 0x9d85, 0xad7f, 0xbc7a, 0xcc74, 0xdc6f, 
  107. 0x608a, 0x7085, 0x807f, 0x8f7a, 0x9f75, 0xaf6f, 0xbf6a, 0xcf64, 0x537f, 0x627a, 0x7275, 0x826f, 0x926a, 0xa265, 0xb25f, 0xc25a, 
  108. 0x4575, 0x556f, 0x656a, 0x7565, 0x855f, 0x955a, 0xa555, 0xb44f, 0x386a, 0x4865, 0x585f, 0x685a, 0x7855, 0x874f, 0x974a, 0xa745, 
  109. 0x2b60, 0x3b5a, 0x4b55, 0x5a4f, 0x6a4a, 0x7a45, 0x8a3f, 0x9a3a, 0x1e55, 0x2d50, 0x3d4a, 0x4d45, 0x5d3f, 0x6d3a, 0x7d35, 0x8d2f, 
  110. 0x75bf, 0x85ba, 0x95b4, 0xa5af, 0xb5aa, 0xc4a4, 0xd49f, 0xe499, 0x68b4, 0x78af, 0x88aa, 0x97a4, 0xa79f, 0xb79a, 0xc794, 0xd78f, 
  111. 0x5baa, 0x6aa4, 0x7a9f, 0x8a9a, 0x9a94, 0xaa8f, 0xba8a, 0xca84, 0x4d9f, 0x5d9a, 0x6d94, 0x7d8f, 0x8d8a, 0x9d84, 0xad7f, 0xbc7a, 
  112. 0x4095, 0x508f, 0x608a, 0x7084, 0x807f, 0x8f7a, 0x9f74, 0xaf6f, 0x338a, 0x4385, 0x537f, 0x627a, 0x7274, 0x826f, 0x926a, 0xa264, 
  113. 0x267f, 0x357a, 0x4575, 0x556f, 0x656a, 0x7564, 0x855f, 0x955a, 0x1875, 0x286f, 0x386a, 0x4865, 0x585f, 0x685a, 0x7854, 0x874f, 
  114. 0x70df, 0x80d9, 0x90d4, 0x9fcf, 0xafc9, 0xbfc4, 0xcfbf, 0xdfb9, 0x63d4, 0x72cf, 0x82c9, 0x92c4, 0xa2bf, 0xb2b9, 0xc2b4, 0xd2af, 
  115. 0x55ca, 0x65c4, 0x75bf, 0x85b9, 0x95b4, 0xa5af, 0xb5a9, 0xc4a4, 0x48bf, 0x58ba, 0x68b4, 0x78af, 0x88a9, 0x97a4, 0xa79f, 0xb799, 
  116. 0x3bb4, 0x4baf, 0x5baa, 0x6aa4, 0x7a9f, 0x8a99, 0x9a94, 0xaa8f, 0x2eaa, 0x3da4, 0x4d9f, 0x5d9a, 0x6d94, 0x7d8f, 0x8d89, 0x9d84, 
  117. 0x209f, 0x309a, 0x4094, 0x508f, 0x608a, 0x7084, 0x8278, 0x7f81, 0x807f, 0xfe55, 0x162b, 0x9400, 0x6bfe, 0xe9d3, 0x01a9, 0x807f, 
  118. };
  119. #endif//#ifndef MP3_LARGE_GUI