Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

190 lines
8.1 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. ////////////////////////////////////////////////////////////////////////////
  15. //
  16. // D3COLTBL.C - The color tables need to be declared here in order that the
  17. // assembly object files can find them. If they are declared
  18. // in a CPP file the names will be mangled. This file was
  19. // taken from part of MRV's COLOR.C.
  20. //
  21. // $Header: S:\h26x\src\dec\d3coltbl.c_v 1.3 27 Dec 1995 14:36:04 RMCKENZX $
  22. //
  23. // $Log: S:\h26x\src\dec\d3coltbl.c_v $
  24. ;//
  25. ;// Rev 1.3 27 Dec 1995 14:36:04 RMCKENZX
  26. ;// Added copyright notice
  27. //
  28. // Rev 1.2 03 Nov 1995 11:49:44 BNICKERS
  29. // Support YUV12 to CLUT8 zoom and non-zoom color conversions.
  30. //
  31. // Rev 1.1 30 Oct 1995 17:15:42 BNICKERS
  32. // Fix color shift in RGB24 color convertors.
  33. //
  34. // Rev 1.0 23 Aug 1995 12:22:28 DBRUCKS
  35. // Initial revision.
  36. #include "precomp.h"
  37. #pragma data_seg ("H26xColorConvertorTbl")
  38. #ifdef WIN32
  39. extern
  40. #endif
  41. T_H26xColorConvertorTables H26xColorConvertorTables = {
  42. { // UVDitherLine01 (for CLUT8 and CLUT8ZoomBy2)
  43. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  44. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  45. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  46. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  47. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  48. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  49. 0x00000000, 0x00001A00, 0x00001A00, 0x1A001A00,
  50. 0x1A001A00, 0x1A1A1A00, 0x1A1A1A00, 0x1A1A1A1A,
  51. 0x1A1A1A1A, 0x1A1A341A, 0x1A1A341A, 0x341A341A,
  52. 0x341A341A, 0x3434341A, 0x3434341A, 0x34343434,
  53. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  54. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  55. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  56. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  57. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  58. 0x34343434, 0x34343434, 0x34343434, 0x34343434
  59. },
  60. { // UVDitherLine23 (for CLUT8 and CLUT8ZoomBy2)
  61. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  62. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  63. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  64. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  65. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  66. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  67. 0x00000000, 0x0000001A, 0x0000001A, 0x001A001A,
  68. 0x001A001A, 0x1A1A001A, 0x1A1A001A, 0x1A1A1A1A,
  69. 0x1A1A1A1A, 0x1A1A1A34, 0x1A1A1A34, 0x1A341A34,
  70. 0x1A341A34, 0x34341A34, 0x34341A34, 0x34343434,
  71. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  72. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  73. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  74. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  75. 0x34343434, 0x34343434, 0x34343434, 0x34343434,
  76. 0x34343434, 0x34343434, 0x34343434, 0x34343434
  77. },
  78. { // YDither (for CLUT8)
  79. 0, 0, 0,
  80. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  81. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  82. 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
  83. 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
  84. 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
  85. 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8,
  86. 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10,
  87. 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12,
  88. 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14,
  89. 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16,
  90. 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18,
  91. 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20,
  92. 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22,
  93. 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24,
  94. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  95. 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
  96. 25, 25, 25
  97. },
  98. { 0 }, // Padding1
  99. { // YDitherZ2 (for CLUT8ZoomBy2)
  100. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  101. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  102. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  103. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  104. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  105. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  106. 0x00000000, 0x00000000, 0x00000000, 0x00000000,
  107. 0x00000000, 0x00010000, 0x00010000, 0x00010001,
  108. 0x00010001, 0x00010101, 0x00010101, 0x01010101,
  109. 0x01010101, 0x01020101, 0x01020101, 0x01020102,
  110. 0x01020102, 0x01020202, 0x01020202, 0x02020202,
  111. 0x02020202, 0x02030202, 0x02030202, 0x02030203,
  112. 0x02030203, 0x02030303, 0x02030303, 0x03030303,
  113. 0x03030303, 0x03040303, 0x03040303, 0x03040304,
  114. 0x03040304, 0x03040404, 0x03040404, 0x04040404,
  115. 0x04040404, 0x04050404, 0x04050404, 0x04050405,
  116. 0x04050405, 0x04050505, 0x04050505, 0x05050505,
  117. 0x05050505, 0x05060505, 0x05060505, 0x05060506,
  118. 0x05060506, 0x05060606, 0x05060606, 0x06060606,
  119. 0x06060606, 0x06070606, 0x06070606, 0x06070607,
  120. 0x06070607, 0x06070707, 0x06070707, 0x07070707,
  121. 0x07070707, 0x07080707, 0x07080707, 0x07080708,
  122. 0x07080708, 0x07080808, 0x07080808, 0x08080808,
  123. 0x08080808, 0x08090808, 0x08090808, 0x08090809,
  124. 0x08090809, 0x08090909, 0x08090909, 0x09090909,
  125. 0x09090909, 0x090A0909, 0x090A0909, 0x090A090A,
  126. 0x090A090A, 0x090A0A0A, 0x090A0A0A, 0x0A0A0A0A,
  127. 0x0A0A0A0A, 0x0A0B0A0A, 0x0A0B0A0A, 0x0A0B0A0B,
  128. 0x0A0B0A0B, 0x0A0B0B0B, 0x0A0B0B0B, 0x0B0B0B0B,
  129. 0x0B0B0B0B, 0x0B0C0B0B, 0x0B0C0B0B, 0x0B0C0B0C,
  130. 0x0B0C0B0C, 0x0B0C0C0C, 0x0B0C0C0C, 0x0C0C0C0C,
  131. 0x0C0C0C0C, 0x0C0D0C0C, 0x0C0D0C0C, 0x0C0D0C0D,
  132. 0x0C0D0C0D, 0x0C0D0D0D, 0x0C0D0D0D, 0x0D0D0D0D,
  133. 0x0D0D0D0D, 0x0D0E0D0D, 0x0D0E0D0D, 0x0D0E0D0E,
  134. 0x0D0E0D0E, 0x0D0E0E0E, 0x0D0E0E0E, 0x0E0E0E0E,
  135. 0x0E0E0E0E, 0x0E0F0E0E, 0x0E0F0E0E, 0x0E0F0E0F,
  136. 0x0E0F0E0F, 0x0E0F0F0F, 0x0E0F0F0F, 0x0F0F0F0F,
  137. 0x0F0F0F0F, 0x0F100F0F, 0x0F100F0F, 0x0F100F10,
  138. 0x0F100F10, 0x0F101010, 0x0F101010, 0x10101010,
  139. 0x10101010, 0x10111010, 0x10111010, 0x10111011,
  140. 0x10111011, 0x10111111, 0x10111111, 0x11111111,
  141. 0x11111111, 0x11121111, 0x11121111, 0x11121112,
  142. 0x11121112, 0x11121212, 0x11121212, 0x12121212,
  143. 0x12121212, 0x12131212, 0x12131212, 0x12131213,
  144. 0x12131213, 0x12131313, 0x12131313, 0x13131313,
  145. 0x13131313, 0x13141313, 0x13141313, 0x13141314,
  146. 0x13141314, 0x13141414, 0x13141414, 0x14141414,
  147. 0x14141414, 0x14151414, 0x14151414, 0x14151415,
  148. 0x14151415, 0x14151515, 0x14151515, 0x15151515,
  149. 0x15151515, 0x15161515, 0x15161515, 0x15161516,
  150. 0x15161516, 0x15161616, 0x15161616, 0x16161616,
  151. 0x16161616, 0x16171616, 0x16171616, 0x16171617,
  152. 0x16171617, 0x16171717, 0x16171717, 0x17171717,
  153. 0x17171717, 0x17181717, 0x17181717, 0x17181718,
  154. 0x17181718, 0x17181818, 0x17181818, 0x18181818,
  155. 0x18181818, 0x18191818, 0x18191818, 0x18191819,
  156. 0x18191819, 0x18191919, 0x18191919, 0x19191919,
  157. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  158. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  159. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  160. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  161. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  162. 0x19191919, 0x19191919, 0x19191919, 0x19191919,
  163. 0x19191919, 0x19191919, 0x19191919, 0x19191919
  164. },
  165. #if WIN32
  166. { 0 }, // RValLo (for RGB16)
  167. { 0 }, // GValLo (for RGB16)
  168. { 0 }, // BValLo (for RGB16)
  169. { 0 }, // RValHi (for RGB16)
  170. { 0 }, // GValHi (for RGB16)
  171. { 0 }, // BValHi (for RGB16)
  172. { 0 }, // Padding2
  173. { 0 }, // UVContrib (for RGB16)
  174. { 0 }, // RValZ2 (for RGB16ZoomBy2)
  175. { 0 }, // GValZ2 (for RGB16ZoomBy2)
  176. { 0 }, // BValZ2 (for RGB16ZoomBy2)
  177. { 0 }, // Padding3
  178. { 0 }, // B24Value (for RGB24)
  179. { 0 }, // Padding4
  180. { 0 }, // UV24Contrib (for RGB24)
  181. #endif
  182. 0 };
  183. #pragma data_seg ()