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.

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