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.

157 lines
5.5 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. ;// $Header: S:\h26x\src\dec\ccinst.inv 1.7 05 Feb 1996 13:35:40 BNICKERS $
  17. ;//
  18. ;////////////////////////////////////////////////////////////////////////////
  19. IFDEF _CCINST_INC_
  20. ELSE
  21. _CCINST_INC = 1
  22. include memmodel.inc
  23. ; Instance data in the Color Convertor's segment.
  24. IFDEF WIN32
  25. _H26xColorConvertorTbl SEGMENT DWORD PUBLIC 'DATA'
  26. EXTERNDEF H26xColorConvertorTables:BYTE
  27. _H26xColorConvertorTbl ENDS
  28. ELSE
  29. H26xColorConvertorTables = 0
  30. LocalStorageCC EQU H26xColorConvertorTables ; 512 bytes for function locals
  31. H26xColorConvertorTables = 512 ; locals under 16-bit Microsoft windows (tm).
  32. ENDIF
  33. ; For CLUT8 and CLUT8Zoom2:
  34. ; 64 Dwords of UV contrib to line 0, dithered 4 ways. Line 1 rotated 2 bytes.
  35. UVDitherLine01 EQU H26xColorConvertorTables + 0
  36. ; 64 Dwords of UV contrib to line 2, dithered 4 ways. Line 3 rotated 2 bytes.
  37. UVDitherLine23 EQU H26xColorConvertorTables + 256
  38. ; 262 bytes of Y's contrib to CLUT indices.
  39. YDither EQU H26xColorConvertorTables + 512
  40. ; 26 bytes of padding.
  41. ; 256 Dwords of Y's contrib to CLUT indices, dithered 4 ways.
  42. YDitherZ2 EQU H26xColorConvertorTables + 800
  43. IFDEF WIN32
  44. ELSE
  45. SizeOf_CLUT8FixedPart = H26xColorConvertorTables + 1824
  46. H26xColorConvertorTables = H26xColorConvertorTables - 1824
  47. ENDIF
  48. ; For RGB16 (Lo/Hi differ by dither.)
  49. ; These are the tables for 555 format.
  50. RValLo EQU H26xColorConvertorTables + 1824 ; 304 bytes for clamped R val.
  51. GValLo EQU H26xColorConvertorTables + 2128 ; 262 bytes for clamped G val.
  52. BValLo EQU H26xColorConvertorTables + 2390 ; 350 bytes for clamped B val.
  53. RValHi EQU H26xColorConvertorTables + 2740 ; 304 bytes for clamped R val.
  54. GValHi EQU H26xColorConvertorTables + 3044 ; 262 bytes for clamped G val.
  55. BValHi EQU H26xColorConvertorTables + 3306 ; 350 bytes for clamped B val.
  56. ; 565 format is 2048 bytes after 555 format.
  57. ; 655 format is 2048 bytes after 565 format.
  58. ; 664 format is 2048 bytes after 655 format.
  59. ; 24 bytes Padding
  60. UContrib EQU H26xColorConvertorTables + 9824 ; interleaved with V.
  61. VContrib EQU H26xColorConvertorTables + 9828 ; interleaved with U.
  62. ; 512 longwords.
  63. ; For RGB16 Zoom By 2.
  64. ; These are the tables for 555 format.
  65. RValZ2 EQU H26xColorConvertorTables + 11872 ; 304 Dwords for clamped R.
  66. GValZ2 EQU H26xColorConvertorTables + 13088 ; 262 Dwords for clamped G.
  67. BValZ2 EQU H26xColorConvertorTables + 14136 ; 350 Dwords for clamped B.
  68. ; 565 format is 4096 bytes after 555 format.
  69. ; 655 format is 4096 bytes after 565 format.
  70. ; 664 format is 4096 bytes after 655 format.
  71. ; 16 bytes Padding
  72. IFDEF WIN32
  73. ELSE
  74. SizeOf_RGB16FixedPart = H26xColorConvertorTables + 27840
  75. H26xColorConvertorTables = H26xColorConvertorTables - 26016
  76. ENDIF
  77. ; For RGB24
  78. B24Value EQU H26xColorConvertorTables + 27840 ; 701 bytes for clamped Bval.
  79. ; 3 bytes Padding
  80. R24Value EQU B24Value + 47 ; Clamped R value.
  81. G24Value EQU B24Value + 96 ; Clamped G value.
  82. U24Contrib EQU H26xColorConvertorTables + 28544 ; interleaved with V.
  83. V24Contrib EQU H26xColorConvertorTables + 28548 ; interleaved with U.
  84. ; 512 longwords.
  85. IFDEF WIN32
  86. ELSE
  87. SizeOf_RGB24FixedPart = H26xColorConvertorTables + 30592
  88. H26xColorConvertorTables = H26xColorConvertorTables - 2752
  89. ENDIF
  90. ActivePaletteIdxTable EQU H26xColorConvertorTables + 30592 ; 2^16 bytes.
  91. UContribToAPIdx EQU H26xColorConvertorTables + 96128 ; 1024 bytes UDith.
  92. VContribToAPIdx EQU H26xColorConvertorTables + 97152 ; 1024 bytes clamp B.
  93. IFDEF WIN32
  94. ELSE
  95. SizeOf_CLUT8APFixedPart = H26xColorConvertorTables + 12160 ; Keep it same as
  96. H26xColorConvertorTables = H26xColorConvertorTables - 67584 ; three lines above
  97. ENDIF
  98. ENDIF
  99. CCTYPE_YUV12ForEnc = 0
  100. CCTYPE_CLUT8 = 1
  101. CCTYPE_CLUT8DCI = 2
  102. CCTYPE_CLUT8ZoomBy2 = 3
  103. CCTYPE_CLUT8ZoomBy2DCI = 4
  104. CCTYPE_RGB24 = 5
  105. CCTYPE_RGB24DCI = 6
  106. CCTYPE_RGB24ZoomBy2 = 7
  107. CCTYPE_RGB24ZoomBy2DCI = 8
  108. CCTYPE_RGB16555 = 9
  109. CCTYPE_RGB16555DCI = 10
  110. CCTYPE_RGB16555ZoomBy2 = 11
  111. CCTYPE_RGB16555ZoomBy2DCI = 12
  112. CCTYPE_IF09 = 13
  113. CCTYPE_RGB16664 = 14
  114. CCTYPE_RGB16664DCI = 15
  115. CCTYPE_RGB16664ZoomBy2 = 16
  116. CCTYPE_RGB16664ZoomBy2DCI = 17
  117. CCTYPE_RGB16565 = 18
  118. CCTYPE_RGB16565DCI = 19
  119. CCTYPE_RGB16565ZoomBy2 = 20
  120. CCTYPE_RGB16565ZoomBy2DCI = 21
  121. CCTYPE_RGB16655 = 22
  122. CCTYPE_RGB16655DCI = 23
  123. CCTYPE_RGB16655ZoomBy2 = 24
  124. CCTYPE_RGB16655ZoomBy2DCI = 25
  125. CCTYPE_CLUT8APDCI = 26
  126. CCTYPE_CLUT8APZoomBy2DCI = 27