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

C/C++

  1. unsigned char code DITHER_1[]   =
  2. {
  3. /*
  4.     0x0e,0xf1,  //(-2,  0,  1, -1)
  5.     0xf1,0x0e,  //( 1, -1, -2,  0)
  6.     0x0e,0xf1,  //(-2,  0,  1, -1)
  7.     0xf1,0x0e,  //( 1, -1, -2,  0)   */
  8.     0x1e ,0x1e,    //  -2  1 -2  1
  9.     0xf0, 0xf0,    //    0 -1  0 -1
  10.     0xe1, 0xe1,   //    1 -2  1 -2
  11.     0x0f, 0x0f,    //  -1  0 -1  0
  12. /*
  13.    0x1e ,0x1e,    //  -2  1 -2  1
  14.    0xf0, 0xf0,    //    0 -1  0 -1
  15.    0xe1, 0xe1,   //    1 -2  1 -2
  16.    0x0f, 0x0f,    //  -1  0 -1  0  */
  17. };
  18. unsigned char code DITHER_2[]   =
  19. {
  20.     0xf1,0x0e,  //( 1, -1, -2,  0)
  21.     0x0e,0xf1,  //(-2,  0,  1, -1)
  22.     0xf1,0x0e,  //( 1, -1, -2,  0)
  23.     0x0e,0xf1,  //(-2,  0,  1, -1)
  24. };
  25. /*
  26. unsigned char code DITHER_3[]   =
  27. {
  28.     0xf0,0xf0,  //( 0, -1,  0, -1)
  29.     0xe1,0xe1,  //( 1, -2,  1, -2)
  30.     0xf0,0xf0,  //( 0, -1,  0, -1)
  31.     0xe1,0xe1,  //( 1, -2,  1, -2)
  32. };
  33. unsigned char code DITHER_4[]   =
  34. {
  35.     0xf1,0xf1,  //( 1, -1,  1, -1)
  36.     0xe0,0xe0,  //( 0, -2,  0, -2)
  37.     0xf1,0xf1,  //( 1, -1,  1, -1)
  38.     0xe0,0xe0,  //( 0, -2,  0, -2)
  39. };
  40. */
  41. unsigned char code NEW_DITHER_TABLE[] = 
  42. {
  43.    0x73,0x84,// [3 0 3 1 0 1 0 2]
  44.    0xac,0x8a,// [0 3 2 2 2 2 0 2]
  45.    0x25,0x43,// [1 1 2 0 3 0 0 1]
  46.    0x9d,0xdf,// [1 3 1 2 3 3 1 3]
  47. };
  48. unsigned char code SU_COEF_1[]  = 
  49. {
  50. /*
  51.     // b = firls(97, [0 1.122/32 1.638/32 1], [2 2 0 0], [1.0 1.0]);
  52.     // NRG = 0.6168, MXG = 1.0228
  53.       4,   2,   2, FFF, FFC, FF9, FF5, FF1, 
  54.     FEC, FE5, FDF, FD8, FD1, FCA, FC2, FBB,
  55.     
  56.     FB2, FAB, FA4, F9E, F98, F93, F8F, F8C, 
  57.     F8B, F8B, F8E, F91, F98, FA1, FAC, FBA, 
  58.     FCB, FE2, FF7,  15,  34,  56,  7A,  A3, 
  59.      CD,  FC, 12A, 15D, 18E, 1C4, 1F9, 22F, 
  60.     264, 29A, 2CE, 303, 333, 364, 390, 3BB, 
  61.     3E1, 406, 423, 43F, 454, 466, 470, 477, 
  62. */
  63. /*
  64.     0x04,0x00, 0x02,0x00, 0x02,0x00, 0xff,0x0f, 0xfc,0x0f, 0xf9,0x0f, 0xf5,0x0f, 0xf1,0x0f, 
  65.     0xec,0x0f, 0xe5,0x0f, 0xdf,0x0f, 0xd8,0x0f, 0xd1,0x0f, 0xca,0x0f, 0xc2,0x0f, 0xbb,0x0f,
  66.     0xcb,0x0f, 0xe2,0x0f, 0xf7,0x0f, 0x15,0x00, 0x34,0x00, 0x56,0x00, 0x7a,0x00, 0xa3,0x00,
  67.     0xcd,0x00, 0xfc,0x00, 0x2a,0x01, 0x5d,0x01, 0x8e,0x01, 0xc4,0x01, 0xf9,0x01, 0x2f,0x02,
  68.     0x77,0x04, 0x70,0x04, 0x66,0x04, 0x54,0x04, 0x3f,0x04, 0x23,0x04, 0x06,0x04, 0xe1,0x03,
  69.     0xbb,0x03, 0x90,0x03, 0x64,0x03, 0x33,0x03, 0x03,0x03, 0xce,0x02, 0x9a,0x02, 0x64,0x02,
  70.     0xba,0x0f, 0xac,0x0f, 0xa1,0x0f, 0x98,0x0f, 0x91,0x0f, 0x8e,0x0f, 0x8b,0x0f, 0x8b,0x0f,
  71.     0x8c,0x0f, 0x8f,0x0f, 0x93,0x0f, 0x98,0x0f, 0x9e,0x0f, 0xa4,0x0f, 0xab,0x0f, 0xb2,0x0f, */
  72. /*004, 003, 002, 000, FFE, FFA, FF6, FF2, 
  73.       FEC, FE6, FE0, FD9, FD2, FCA, FC3, FBB, 
  74. FB4, FAD, FA5, F9E, F98, F93, F8F, F8C, 
  75. F8B, F8B, F8D, F91, F98, F9F, FAB, FB9, 
  76. FCA, FE0, FF7, 013, 031, 054, 078, 0A1, 
  77. 0CB, 0FA, 128, 15B, 18D, 1C3, 1F7, 22E, 
  78. 263, 299, 2CE, 303, 334, 365, 391, 3BD, 
  79. 3E2, 407, 425, 440, 455, 468, 472, 479, */
  80. /*      0x04,0x00,0x03,0x00,0x02,0x00,0x00,0x00,0xfe,0x0f,0xfa,0x0f,0xf6,0x0f,0xf2,0x0f,
  81.   0xec,0x0f,0xe6,0x0f,0xe0,0x0f,0xd9,0x0f,0xd2,0x0f,0xca,0x0f,0xc3,0x0f,0xbb,0x0f,
  82.   0xb4,0x0f,0xad,0x0f,0xa5,0x0f,0x9e,0x0f,0x98,0x0f,0x93,0x0f,0x8f,0x0f,0x8c,0x0f,
  83.   0x8b,0x0f,0x8b,0x0f,0x8d,0x0f,0x91,0x0f,0x98,0x0f,0x9f,0x0f,0xab,0x0f,0xb9,0x0f,
  84.   0xca,0x0f,0xe0,0x0f,0xf7,0x0f,0x13,0x00,0x31,0x00,0x54,0x00,0x78,0x00,0xa1,0x00,
  85.   0xcb,0x00,0xfa,0x00,0x28,0x01,0x5b,0x01,0x8d,0x01,0xc3,0x01,0xf7,0x01,0x2e,0x02,
  86.   0x63,0x02,0x99,0x02,0xce,0x02,0x03,0x03,0x34,0x03,0x65,0x03,0x91,0x03,0xbd,0x03,
  87.   0xe2,0x03,0x07,0x04,0x25,0x04,0x49,0x04,0x55,0x04,0x68,0x04,0x72,0x04,0x79,0x04,  */
  88. 0x04,0x00,0x03,0x00,0x02,0x00,0x00,0x00,0xFE,0x0F,0xFA,0x0F,0xF6,0x0F,0xF2,0x0F,
  89. 0xEC,0x0F,0xE6,0x0F,0xE0,0x0F,0xD9,0x0F,0xD2,0x0F,0xCA,0x0F,0xC3,0x0F,0xBB,0x0F,
  90. 0xCA,0x0F,0xE0,0x0F,0xF7,0x0F,0x13,0x00,0x31,0x00,0x54,0x00,0x78,0x00,0xA1,0x00,
  91. 0xCB,0x00,0xFA,0x00,0x28,0x01,0x5B,0x01,0x8D,0x01,0xC3,0x01,0xF7,0x01,0x2E,0x02,
  92. 0x79,0x04,0x72,0x04,0x68,0x04,0x55,0x04,0x40,0x04,0x25,0x04,0x07,0x04,0xE2,0x03,
  93. 0xBD,0x03,0x91,0x03,0x65,0x03,0x34,0x03,0x03,0x03,0xCE,0x02,0x99,0x02,0x63,0x02,
  94. 0xB9,0x0F,0xAB,0x0F,0x9F,0x0F,0x98,0x0F,0x91,0x0F,0x8D,0x0F,0x8B,0x0F,0x8B,0x0F,
  95. 0x8C,0x0F,0x8F,0x0F,0x93,0x0F,0x98,0x0F,0x9E,0x0F,0xA5,0x0F,0xAD,0x0F,0xB4,0x0F,
  96. };
  97. unsigned char code SU_COEF_2[]  = 
  98. {
  99. /*
  100.     // b = firls(97, [0 1.00/32 1.63/32 1], [2 2 0 0], [1.0 1.0]);
  101.     // NRG = 0.5623, MXG = 1.0159
  102.     0xfc,0x0f, 0xfb,0x0f, 0xf9,0x0f, 0xf7,0x0f, 0xf5,0x0f, 0xf3,0x0f, 0xee,0x0f, 0xea,0x0f,
  103.     0xe5,0x0f, 0xe0,0x0f, 0xda,0x0f, 0xd3,0x0f, 0xcc,0x0f, 0xc5,0x0f, 0xbf,0x0f, 0xb7,0x0f,
  104.     0xb1,0x0f, 0xaa,0x0f, 0xa4,0x0f, 0x9f,0x0f, 0x9a,0x0f, 0x97,0x0f, 0x95,0x0f, 0x94,0x0f,
  105.     0x95,0x0f, 0x97,0x0f, 0x9c,0x0f, 0xa3,0x0f, 0xac,0x0f, 0xb8,0x0f, 0xc5,0x0f, 0xd5,0x0f,
  106.     0xea,0x0f, 0x01,0x00, 0x1a,0x00, 0x37,0x00, 0x55,0x00, 0x76,0x00, 0x9b,0x00, 0xc1,0x00,
  107.     0xe9,0x00, 0x14,0x01, 0x40,0x01, 0x70,0x01, 0x9f,0x01, 0xd0,0x01, 0x01,0x02, 0x34,0x02,
  108.     0x64,0x02, 0x96,0x02, 0xc7,0x02, 0xf6,0x02, 0x23,0x03, 0x4f,0x03, 0x77,0x03, 0x9e,0x03,
  109.     0xc0,0x03, 0xe0,0x03, 0xfb,0x03, 0x13,0x04, 0x26,0x04, 0x35,0x04, 0x3f,0x04, 0x45,0x04,
  110.     // b = firls(97, [0 0.95/32 1.601/32 1], [2 2 0 0], [1.0 1.0]);
  111.     // NRG = 0.5358, MXG = 1.0127
  112.     // FFA, FF8, FF8, FF6, FF2, FEF, FEB, FE7, 
  113.     // FE1, FDC, FD5, FD0, FC9, FC2, FBD, FB6, 
  114.     // FB0, FAA, FA5, FA0, F9D, F9A, F99, F9A, 
  115.     // F9B, F9F, FA4, FAC, FB6, FC2, FD2, FE2, 
  116.     // FF6,   F,  28,  45,  64,  87,  A9,  D0, 
  117.     //  F7, 122, 14D, 17A, 1A7, 1D7, 205, 236, 
  118.     // 264, 294, 2C2, 2F0, 319, 344, 369, 38E, 
  119.     // 3AE, 3CD, 3E6, 3FE, 40F, 41E, 427, 42E, 
  120. */
  121. /*
  122.     0xfa,0x0f, 0xf8,0x0f, 0xf8,0x0f, 0xf6,0x0f, 0xf2,0x0f, 0xef,0x0f, 0xeb,0x0f, 0xe7,0x0f,
  123.     0xe1,0x0f, 0xdc,0x0f, 0xd5,0x0f, 0xd0,0x0f, 0xc9,0x0f, 0xc2,0x0f, 0xbd,0x0f, 0xb6,0x0f,
  124.     0xf6,0x0f, 0x0f,0x00, 0x28,0x00, 0x45,0x00, 0x64,0x00, 0x87,0x00, 0xa9,0x00, 0xd0,0x00,
  125.     0xf7,0x00, 0x22,0x01, 0x4d,0x01, 0x7a,0x01, 0xa7,0x01, 0xd7,0x01, 0x05,0x02, 0x36,0x02,
  126.     0x2e,0x04, 0x27,0x04, 0x1e,0x04, 0x0f,0x04, 0xfe,0x03, 0xe6,0x03, 0xcd,0x03, 0xae,0x03,
  127.     0x8e,0x03, 0x69,0x03, 0x44,0x03, 0x19,0x03, 0xf0,0x02, 0xc2,0x02, 0x94,0x02, 0x64,0x02,
  128.     0xe2,0x0f, 0xd2,0x0f, 0xc2,0x0f, 0xb6,0x0f, 0xac,0x0f, 0xa4,0x0f, 0x9f,0x0f, 0x9b,0x0f,
  129.     0x9a,0x0f, 0x99,0x0f, 0x9a,0x0f, 0x9d,0x0f, 0xa0,0x0f, 0xa5,0x0f, 0xaa,0x0f, 0xb0,0x0f,*/
  130. /*
  131. FF9, FF9, FF8, FF5, FF3, FF0, FEC, FE8, 
  132. FE2, FDD, FD7, FD1, FCA, FC4, FBE, FB7, 
  133. FB1, FAB, FA5, FA1, F9D, F9B, F9A, F99, 
  134. F9B, F9F, FA4, FAC, FB6, FC2, FD1, FE2, 
  135. FF6, 00E, 027, 045, 063, 085, 0A7, 0CE, 
  136. 0F6, 120, 14A, 179, 1A6, 1D6, 204, 235, 
  137. 263, 293, 2C1, 2EF, 319, 344, 369, 38F, 
  138. 3AF, 3CE, 3E7, 3FE, 410, 41F, 428, 42F, */ 
  139. /* 
  140.       0xf9,0x0f,0xf9,0x0f,0xf8,0x0f,0xf5,0x0f,0xf3,0x0f,0xf0,0x0f,0xec,0x0f,0xe8,0x0f,
  141.   0xe2,0x0f,0xdd,0x0f,0xd7,0x0f,0xd1,0x0f,0xca,0x0f,0xc4,0x0f,0xbe,0x0f,0xb7,0x0f,
  142.   0xb1,0x0f,0xab,0x0f,0xa5,0x0f,0xa1,0x0f,0x9d,0x0f,0x9b,0x0f,0x9a,0x0f,0x99,0x0f,
  143.   0x9b,0x0f,0x9f,0x0f,0xa4,0x0f,0xac,0x0f,0xb6,0x0f,0xc2,0x0f,0xd1,0x0f,0xe2,0x0f,
  144.   0xf6,0x0f,0x0e,0x00,0x27,0x00,0x45,0x00,0x63,0x00,0x85,0x00,0xa7,0x00,0xce,0x00,
  145.   0xf6,0x00,0x20,0x01,0x4a,0x01,0x79,0x01,0xa6,0x01,0xd6,0x01,0x04,0x02,0x35,0x02,
  146.   0x63,0x02,0x93,0x02,0xc1,0x02,0xef,0x02,0x19,0x03,0x44,0x03,0x69,0x03,0x8f,0x03,
  147.   0x1f,0x03,0xce,0x03,0xe7,0x03,0xfe,0x03,0x10,0x04,0x1f,0x04,0x28,0x04,0x2f,0x04,  */
  148. 0xF9,0x0F,0xF9,0x0F,0xF8,0x0F,0xF5,0x0F,0xF3,0x0F,0xF0,0x0F,0xEC,0x0F,0xE8,0x0F,
  149. 0xE2,0x0F,0xDD,0x0F,0xD7,0x0F,0xD1,0x0F,0xCA,0x0F,0xC4,0x0F,0xBE,0x0F,0xB7,0x0F,
  150. 0xF6,0x0F,0x0E,0x00,0x27,0x00,0x45,0x00,0x63,0x00,0x85,0x00,0xA7,0x00,0xCE,0x00,
  151. 0xF6,0x00,0x20,0x01,0x4A,0x01,0x79,0x01,0xA6,0x01,0xD6,0x01,0x04,0x02,0x35,0x02,
  152. 0x2F,0x04,0x28,0x04,0x1F,0x04,0x10,0x04,0xFE,0x03,0xE7,0x03,0xCE,0x03,0xAF,0x03,
  153. 0x8F,0x03,0x69,0x03,0x44,0x03,0x19,0x03,0xEF,0x02,0xC1,0x02,0x93,0x02,0x63,0x02,
  154. 0xE2,0x0F,0xD1,0x0F,0xC2,0x0F,0xB6,0x0F,0xAC,0x0F,0xA4,0x0F,0x9F,0x0F,0x9B,0x0F,
  155. 0x99,0x0F,0x9A,0x0F,0x9B,0x0F,0x9D,0x0F,0xA1,0x0F,0xA5,0x0F,0xAB,0x0F,0xB1,0x0F,
  156. };
  157. unsigned char code SU_COEF_3[]  = 
  158. {
  159. /*
  160.     // b = remez(96, [0 0.66/32 1.60/32 31.5/32], [1 1 0 0], [1.0 1.0]);
  161.     // NRG = 0.4334, MXG = 1.0018
  162.     0xee,0x0f, 0xed,0x0f, 0xec,0x0f, 0xeb,0x0f, 0xe8,0x0f, 0xe5,0x0f, 0xe0,0x0f, 0xdd,0x0f,
  163.     0xd7,0x0f, 0xd3,0x0f, 0xcf,0x0f, 0xc9,0x0f, 0xc4,0x0f, 0xbf,0x0f, 0xbb,0x0f, 0xb6,0x0f,
  164.     0xb3,0x0f, 0xb0,0x0f, 0xae,0x0f, 0xad,0x0f, 0xac,0x0f, 0xad,0x0f, 0xb0,0x0f, 0xb5,0x0f,
  165.     0xba,0x0f, 0xc2,0x0f, 0xcb,0x0f, 0xd7,0x0f, 0xe3,0x0f, 0xf4,0x0f, 0x07,0x00, 0x10,0x00,
  166.     0x25,0x00, 0x41,0x00, 0x5c,0x00, 0x7b,0x00, 0x99,0x00, 0xbb,0x00, 0xdd,0x00, 0x01,0x01,
  167.     0x25,0x01, 0x4c,0x01, 0x71,0x01, 0x9a,0x01, 0xc0,0x01, 0xe9,0x01, 0x0f,0x02, 0x38,0x02,
  168.     0x5f,0x02, 0x86,0x02, 0xaa,0x02, 0xcf,0x02, 0xf1,0x02, 0x13,0x03, 0x31,0x03, 0x4f,0x03,
  169.     0x68,0x03, 0x81,0x03, 0x95,0x03, 0xa8,0x03, 0xb7,0x03, 0xc4,0x03, 0xcb,0x03, 0xdd,0x03,
  170. */
  171. /*
  172.     0xee,0x0f, 0xed,0x0f, 0xec,0x0f, 0xeb,0x0f, 0xe8,0x0f, 0xe5,0x0f, 0xe0,0x0f, 0xdd,0x0f, // 00~15
  173.     0xd7,0x0f, 0xd3,0x0f, 0xcf,0x0f, 0xc9,0x0f, 0xc4,0x0f, 0xbf,0x0f, 0xbb,0x0f, 0xb6,0x0f,
  174.     0x25,0x00, 0x41,0x00, 0x5c,0x00, 0x7b,0x00, 0x99,0x00, 0xbb,0x00, 0xdd,0x00, 0x01,0x01, // 32~47
  175.     0x25,0x01, 0x4c,0x01, 0x71,0x01, 0x9a,0x01, 0xc0,0x01, 0xe9,0x01, 0x0f,0x02, 0x38,0x02,
  176.     0xdd,0x03, 0xcb,0x03, 0xc4,0x03, 0xb7,0x03, 0xa8,0x03, 0x95,0x03, 0x81,0x03, 0x68,0x03, // 63~48
  177.     0x4f,0x03, 0x31,0x03, 0x13,0x03, 0xf1,0x02, 0xcf,0x02, 0xaa,0x02, 0x86,0x02, 0x5f,0x02,
  178.     0x10,0x00, 0x07,0x00, 0xf4,0x0f, 0xe3,0x0f, 0xd7,0x0f, 0xcb,0x0f, 0xc2,0x0f, 0xba,0x0f, // 31~16
  179.     0xb5,0x0f, 0xb0,0x0f, 0xad,0x0f, 0xac,0x0f, 0xad,0x0f, 0xae,0x0f, 0xb0,0x0f, 0xb3,0x0f,*/
  180. /*
  181. FED, FED, FEB, FE9, FE6, FE3, FDF, FDB, 
  182. FD7, FD2, FCC, FC8, FC3, FBE, FB9, FB5, 
  183. FB1, FAE, FAC, FAB, FAC, FAD, FAF, FB4, 
  184. FBA, FC2, FCC, FD7, FE4, FF5, 007, 012, 
  185. 025, 042, 05C, 07D, 09B, 0BD, 0DE, 103, 
  186. 127, 14E, 174, 19B, 1C2, 1EB, 211, 23A, 
  187. 260, 288, 2AB, 2D0, 2F1, 313, 331, 34E, 
  188. 368, 381, 394, 3A8, 3B6, 3C4, 3CA, 3DC, */
  189. /*
  190.     0xed,0x0f,0xed,0x0f,0xeb,0x0f,0xe9,0x0f,0xe6,0x0f,0xe3,0x0f,0xdf,0x0f,0xdb,0x0f,
  191. 0xd7,0x0f,0xd2,0x0f,0xcc,0x0f,0xc8,0x0f,0xc3,0x0f,0xbe,0x0f,0xb9,0x0f,0xb5,0x0f,
  192. 0xb1,0x0f,0xae,0x0f,0xac,0x0f,0xab,0x0f,0xac,0x0f,0xad,0x0f,0xaf,0x0f,0xb4,0x0f,
  193. 0xba,0x0f,0xc2,0x0f,0xcc,0x0f,0xd7,0x0f,0xe3,0x0f,0xf5,0x0f,0x07,0x00,0x12,0x00,
  194. 0x25,0x00,0x42,0x00,0x5c,0x00,0x7d,0x00,0x9b,0x00,0xbd,0x00,0xde,0x00,0x03,0x01,
  195. 0x27,0x01,0x4e,0x01,0x74,0x01,0x9b,0x01,0xc2,0x01,0xeb,0x01,0x11,0x02,0x3a,0x02,
  196. 0x60,0x02,0x88,0x02,0xab,0x02,0xd0,0x02,0xf1,0x02,0x13,0x03,0x31,0x03,0x4e,0x03,
  197. 0x68,0x03,0x81,0x03,0x94,0x03,0xa8,0x03,0xb6,0x03,0xc4,0x03,0xca,0x03,0xdc,0x03,  */
  198. 0xED,0x0F,0xED,0x0F,0xEB,0x0F,0xE9,0x0F,0xE6,0x0F,0xE3,0x0F,0xDF,0x0F,0xDB,0x0F,
  199. 0xD7,0x0F,0xD2,0x0F,0xCC,0x0F,0xC8,0x0F,0xC3,0x0F,0xBE,0x0F,0xB9,0x0F,0xB5,0x0F,
  200. 0x25,0x00,0x42,0x00,0x5C,0x00,0x7D,0x00,0x9B,0x00,0xBD,0x00,0xDE,0x00,0x03,0x01,
  201. 0x27,0x01,0x4E,0x01,0x74,0x01,0x9B,0x01,0xC2,0x01,0xEB,0x01,0x11,0x02,0x3A,0x02,
  202. 0xDC,0x03,0xCA,0x03,0xC4,0x03,0xB6,0x03,0xA8,0x03,0x94,0x03,0x81,0x03,0x68,0x03,
  203. 0x4E,0x03,0x31,0x03,0x13,0x03,0xF1,0x02,0xD0,0x02,0xAB,0x02,0x88,0x02,0x60,0x02,
  204. 0x12,0x00,0x07,0x00,0xF5,0x0F,0xE4,0x0F,0xD7,0x0F,0xCC,0x0F,0xC2,0x0F,0xBA,0x0F,
  205. 0xB4,0x0F,0xAF,0x0F,0xAD,0x0F,0xAC,0x0F,0xAB,0x0F,0xAC,0x0F,0xAE,0x0F,0xB1,0x0F,
  206. };
  207. unsigned char code SU_COEF_4[]  = 
  208. {
  209. /*
  210.     // b = remez(96, [0 0.56/32 1.491/32 31.5/32], [1 1 0 0], [1.0 1.0]);
  211.     // NRG = 0.3406, MXG = 1.0000
  212.     0xe4,0x0f, 0xeb,0x0f, 0xea,0x0f, 0xe9,0x0f, 0xe5,0x0f, 0xe4,0x0f, 0xe1,0x0f, 0xdd,0x0f,
  213.     0xd9,0x0f, 0xd5,0x0f, 0xd2,0x0f, 0xcf,0x0f, 0xcb,0x0f, 0xc9,0x0f, 0xc7,0x0f, 0xc5,0x0f,
  214.     0xc4,0x0f, 0xc4,0x0f, 0xc4,0x0f, 0xc6,0x0f, 0xc9,0x0f, 0xce,0x0f, 0xd4,0x0f, 0xda,0x0f,
  215.     0xe3,0x0f, 0xeb,0x0f, 0xf7,0x0f, 0x04,0x00, 0x12,0x00, 0x21,0x00, 0x33,0x00, 0x44,0x00,
  216.     0x59,0x00, 0x70,0x00, 0x89,0x00, 0xa5,0x00, 0xc1,0x00, 0xe0,0x00, 0xfe,0x00, 0x1e,0x01,
  217.     0x3f,0x01, 0x61,0x01, 0x82,0x01, 0xa5,0x01, 0xc7,0x01, 0xe9,0x01, 0x09,0x02, 0x2c,0x02,
  218.     0x4b,0x02, 0x6c,0x02, 0x8a,0x02, 0xa8,0x02, 0xc3,0x02, 0xde,0x02, 0xf6,0x02, 0x0e,0x03,
  219.     0x22,0x03, 0x36,0x03, 0x45,0x03, 0x56,0x03, 0x60,0x03, 0x6c,0x03, 0x72,0x03, 0x7f,0x03,
  220. */
  221. /*
  222.     0xe4,0x0f, 0xeb,0x0f, 0xea,0x0f, 0xe9,0x0f, 0xe5,0x0f, 0xe4,0x0f, 0xe1,0x0f, 0xdd,0x0f,
  223.     0xd9,0x0f, 0xd5,0x0f, 0xd2,0x0f, 0xcf,0x0f, 0xcb,0x0f, 0xc9,0x0f, 0xc7,0x0f, 0xc5,0x0f,
  224.     0x59,0x00, 0x70,0x00, 0x89,0x00, 0xa5,0x00, 0xc1,0x00, 0xe0,0x00, 0xfe,0x00, 0x1e,0x01,
  225.     0x3f,0x01, 0x61,0x01, 0x82,0x01, 0xa5,0x01, 0xc7,0x01, 0xe9,0x01, 0x09,0x02, 0x2c,0x02,
  226.     0x7f,0x03, 0x72,0x03, 0x6c,0x03, 0x60,0x03, 0x56,0x03, 0x45,0x03, 0x36,0x03, 0x22,0x03,
  227.     0x0e,0x03, 0xf6,0x02, 0xde,0x02, 0xc3,0x02, 0xa8,0x02, 0x8a,0x02, 0x6c,0x02, 0x4b,0x02,
  228.     0x44,0x00, 0x33,0x00, 0x21,0x00, 0x12,0x00, 0x04,0x00, 0xf7,0x0f, 0xeb,0x0f, 0xe3,0x0f,
  229.     0xda,0x0f, 0xd4,0x0f, 0xce,0x0f, 0xc9,0x0f, 0xc6,0x0f, 0xc4,0x0f, 0xc4,0x0f, 0xc4,0x0f,*/
  230. /*FE0, FE9, FE7, FE7, FE3, FE2, FDE, FDB, 
  231. FD7, FD3, FCF, FCC, FC9, FC6, FC4, FC3, 
  232. FC2, FC2, FC3, FC6, FC9, FCE, FD3, FDA, 
  233. FE3, FED, FF9, 007, 015, 025, 037, 049, 
  234. 05D, 074, 08D, 0AA, 0C6, 0E5, 104, 124, 
  235. 144, 167, 186, 1A9, 1CA, 1ED, 20D, 22E, 
  236. 24D, 26D, 28A, 2A7, 2C2, 2DD, 2F3, 30B, 
  237. 31E, 331, 340, 350, 35A, 367, 36C, 37A, */
  238. /*
  239.    0xe0,0x0f,0xe9,0x0f,0xe7,0x0f,0xe7,0x0f,0xe3,0x0f,0xe2,0x0f,0xde,0x0f,0xdb,0x0f,
  240.    0xd7,0x0f,0xd3,0x0f,0xcf,0x0f,0xcc,0x0f,0xc9,0x0f,0xc6,0x0f,0xc4,0x0f,0xc3,0x0f,
  241.    0xc2,0x0f,0xc2,0x0f,0xc3,0x0f,0xc6,0x0f,0xc9,0x0f,0xce,0x0f,0xd3,0x0f,0xda,0x0f,
  242.    0xe3,0x0f,0xed,0x0f,0xf9,0x0f,0x07,0x00,0x15,0x00,0x25,0x00,0x37,0x00,0x49,0x00,
  243.    0x5d,0x00,0x74,0x00,0x8d,0x00,0xaa,0x00,0xc6,0x00,0xe5,0x00,0x04,0x01,0x24,0x01,
  244.    0x44,0x01,0x67,0x01,0x86,0x01,0xa9,0x01,0xca,0x01,0xed,0x01,0x0d,0x02,0x2e,0x02,
  245.    0x4d,0x02,0x6d,0x02,0x8a,0x02,0xa7,0x02,0xc2,0x02,0xdd,0x02,0xf3,0x02,0x0b,0x03,
  246.    0x1e,0x03,0x31,0x03,0x40,0x03,0x50,0x03,0x5a,0x03,0x67,0x03,0x6c,0x03,0x7a,0x03,  */
  247. 0xE0,0x0F,0xE9,0x0F,0xE7,0x0F,0xE7,0x0F,0xE3,0x0F,0xE2,0x0F,0xDE,0x0F,0xDB,0x0F,
  248. 0xD7,0x0F,0xD3,0x0F,0xCF,0x0F,0xCC,0x0F,0xC9,0x0F,0xC6,0x0F,0xC4,0x0F,0xC3,0x0F,
  249. 0x5D,0x00,0x74,0x00,0x8D,0x00,0xAA,0x00,0xC6,0x00,0xE5,0x00,0x04,0x01,0x24,0x01,
  250. 0x44,0x01,0x67,0x01,0x86,0x01,0xA9,0x01,0xCA,0x01,0xED,0x01,0x0D,0x02,0x2E,0x02,
  251. 0x7A,0x03,0x6C,0x03,0x67,0x03,0x5A,0x03,0x50,0x03,0x40,0x03,0x31,0x03,0x1E,0x03,
  252. 0x0B,0x03,0xF3,0x02,0xDD,0x02,0xC2,0x02,0xA7,0x02,0x8A,0x02,0x6D,0x02,0x4D,0x02,
  253. 0x49,0x00,0x37,0x00,0x25,0x00,0x15,0x00,0x07,0x00,0xF9,0x0F,0xED,0x0F,0xE3,0x0F,
  254. 0xDA,0x0F,0xD3,0x0F,0xCE,0x0F,0xC9,0x0F,0xC6,0x0F,0xC3,0x0F,0xC2,0x0F,0xC2,0x0F,
  255. };
  256. unsigned char code SU_COEF_5[]  = 
  257. {
  258. /*
  259.     // b = remez(96, [0 0.475/32 1.38/32 31.5/32], [1 1 0 0], [1.0 1.0]);
  260.     // NRG = 0.2695, MXG = 1.0000
  261.     FD9, FE3, FE1, FE3, FE1, FE0, FDD, FDD, 
  262.     FDB, FD9, FD7, FD7, FD5, FD5, FD5, FD6, 
  263.     FD8, FDA, FDD, FE1, FE6, FEC, FF4, FFC, 
  264.       5,  11,  1E,  29,  38,  48,  59,  6A, 
  265.      7C,  92,  A9,  C3,  DD,  F8, 114, 132, 
  266.     14D, 16C, 189, 1A7, 1C4, 1E2, 1FE, 21C, 
  267.     236, 253, 26C, 286, 29C, 2B4, 2C7, 2DC, 
  268.     2EC, 2FE, 30A, 319, 322, 32E, 332, 341, 
  269. */
  270. /*    
  271.     0xd9,0x0f, 0xe3,0x0f, 0xe1,0x0f, 0xe3,0x0f, 0xe1,0x0f, 0xe0,0x0f, 0xdd,0x0f, 0xdd,0x0f,
  272.     0xdb,0x0f, 0xd9,0x0f, 0xd7,0x0f, 0xd7,0x0f, 0xd5,0x0f, 0xd5,0x0f, 0xd5,0x0f, 0xd6,0x0f,
  273.     0x7c,0x00, 0x92,0x00, 0xa9,0x00, 0xc3,0x00, 0xdd,0x00, 0xf8,0x00, 0x14,0x01, 0x32,0x01,
  274.     0x4d,0x01, 0x6c,0x01, 0x89,0x01, 0xa7,0x01, 0xc4,0x01, 0xe2,0x01, 0xfe,0x01, 0x1c,0x02,
  275.     0x41,0x03, 0x32,0x03, 0x2e,0x03, 0x22,0x03, 0x19,0x03, 0x0a,0x03, 0xfe,0x02, 0xec,0x02,
  276.     0xdc,0x02, 0xc7,0x02, 0xb4,0x02, 0x9c,0x02, 0x86,0x02, 0x6c,0x02, 0x53,0x02, 0x36,0x02,
  277.     0x6a,0x00, 0x59,0x00, 0x48,0x00, 0x38,0x00, 0x29,0x00, 0x1e,0x00, 0x11,0x00, 0x05,0x00,
  278.     0xfc,0x0f, 0xf4,0x0f, 0xec,0x0f, 0xe6,0x0f, 0xe1,0x0f, 0xdd,0x0f, 0xda,0x0f, 0xd8,0x0f,*/
  279. /*FD6, FE1, FE0, FE1, FE0, FE0, FDD, FDC, 
  280. FDB, FD9, FD7, FD7, FD5, FD6, FD5, FD7, 
  281. FD8, FDB, FDD, FE2, FE7, FEE, FF5, FFD, 
  282. 007, 013, 01E, 02B, 03B, 049, 05A, 06B, 
  283. 07F, 094, 0AB, 0C5, 0DE, 0F9, 114, 132, 
  284. 14E, 16C, 188, 1A7, 1C4, 1E2, 1FE, 21B, 
  285. 236, 252, 26B, 285, 29B, 2B3, 2C6, 2DA, 
  286. 2EB, 2FC, 309, 317, 31F, 32C, 331, 340, */
  287. /*
  288.    0xd6,0x0f,0xe1,0x0f,0xe0,0x0f,0xe1,0x0f,0xe0,0x0f,0xe0,0x0f,0xdd,0x0f,0xdc,0x0f,
  289.    0xdb,0x0f,0xd9,0x0f,0xd7,0x0f,0xd7,0x0f,0xd5,0x0f,0xd6,0x0f,0xd5,0x0f,0xd7,0x0f,
  290.    0xd8,0x0f,0xdb,0x0f,0xdd,0x0f,0xe2,0x0f,0xe7,0x0f,0xee,0x0f,0xf5,0x0f,0xfd,0x0f,
  291.    0x07,0x00,0x13,0x00,0x1e,0x00,0x2b,0x00,0x3b,0x00,0x49,0x00,0x5a,0x00,0x6b,0x00,
  292.    0x7f,0x00,0x94,0x00,0xab,0x00,0xc5,0x00,0xde,0x00,0xf9,0x00,0x14,0x01,0x32,0x01,
  293.    0x4e,0x01,0x6c,0x01,0x88,0x01,0xa7,0x01,0xc4,0x01,0xe2,0x01,0xfe,0x01,0x1b,0x02,
  294.    0x36,0x02,0x52,0x02,0x6b,0x02,0x85,0x02,0x9b,0x02,0xb3,0x02,0xc6,0x02,0xda,0x02,
  295.    0x3b,0x02,0xfc,0x02,0x09,0x03,0x17,0x03,0x1f,0x03,0x2c,0x03,0x31,0x03,0x40,0x03,  */
  296. 0xD6,0x0F,0xE1,0x0F,0xE0,0x0F,0xE1,0x0F,0xE0,0x0F,0xE0,0x0F,0xDD,0x0F,0xDC,0x0F,
  297. 0xDB,0x0F,0xD9,0x0F,0xD7,0x0F,0xD7,0x0F,0xD5,0x0F,0xD6,0x0F,0xD5,0x0F,0xD7,0x0F,
  298. 0x7F,0x00,0x94,0x00,0xAB,0x00,0xC5,0x00,0xDE,0x00,0xF9,0x00,0x14,0x01,0x32,0x01,
  299. 0x4E,0x01,0x6C,0x01,0x88,0x01,0xA7,0x01,0xC4,0x01,0xE2,0x01,0xFE,0x01,0x1B,0x02,
  300. 0x40,0x03,0x31,0x03,0x2C,0x03,0x1F,0x03,0x17,0x03,0x09,0x03,0xFC,0x02,0xEB,0x02,
  301. 0xDA,0x02,0xC6,0x02,0xB3,0x02,0x9B,0x02,0x85,0x02,0x6B,0x02,0x52,0x02,0x36,0x02,
  302. 0x6B,0x00,0x5A,0x00,0x49,0x00,0x3B,0x00,0x2B,0x00,0x1E,0x00,0x13,0x00,0x07,0x00,
  303. 0xFD,0x0F,0xF5,0x0F,0xEE,0x0F,0xE7,0x0F,0xE2,0x0F,0xDD,0x0F,0xDB,0x0F,0xD8,0x0F,
  304. };
  305. unsigned char code SU_COEF_6[]  = 
  306. {   
  307.     0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 
  308.     0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 
  309.     0x11,0x00, 0x30,0x00, 0x50,0x00, 0x70,0x00, 0x90,0x00, 0xb0,0x00, 0xd0,0x00, 0xf0,0x00, 
  310.     0x10,0x01, 0x30,0x01, 0x50,0x01, 0x70,0x01, 0x90,0x01, 0xb0,0x01, 0xd0,0x01, 0xf0,0x01, 
  311.     0xef,0x03, 0xd0,0x03, 0xb0,0x03, 0x90,0x03, 0x70,0x03, 0x50,0x03, 0x30,0x03, 0x10,0x03, 
  312.     0xf0,0x02, 0xd0,0x02, 0xb0,0x02, 0x90,0x02, 0x70,0x02, 0x50,0x02, 0x30,0x02, 0x10,0x02, 
  313.     0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 
  314.     0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 0x00,0x00, 
  315. };
  316. unsigned char code SU_COEF_7[]  = 
  317. {   
  318.     0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,
  319.     0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,0xF9,0x0F,
  320.     0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,
  321.     0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,0xF6,0x0F,
  322.     0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,
  323.     0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,0x2e,0x04,
  324.     0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,
  325.     0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,0xE2,0x0F,
  326. };