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

/* *************************************************************************
** INTEL Corporation Proprietary Information
**
** This listing is supplied under the terms of a license
** agreement with INTEL Corporation and may not be copied
** nor disclosed except in accordance with the terms of
** that agreement.
**
** Copyright (c) 1995 Intel Corporation.
** All Rights Reserved.
**
** *************************************************************************
*/
////////////////////////////////////////////////////////////////////////////
//
// D1COLTBL.C - The color tables need to be declared here in order that the
// assembly object files can find them. If they are declared
// in a CPP file the names will be mangled. This file was
// taken from part of MRV's COLOR.C.
//
// $Header: S:\h26x\src\dec\d1coltbl.c_v 1.3 09 Jan 1996 10:50:48 AKASAI $
//
// $Log: S:\h26x\src\dec\d1coltbl.c_v $
;//
;// Rev 1.3 09 Jan 1996 10:50:48 AKASAI
;// Added correct copyright.
;//
;// Rev 1.2 15 Nov 1995 14:22:06 AKASAI
;// New tables for 12-bit color converters. Copied with file name changes
;// directly from d3coltbl files.
;// (Integration point)
;//
;// Rev 1.2 03 Nov 1995 11:49:44 BNICKERS
;// Support YUV12 to CLUT8 zoom and non-zoom color conversions.
;//
;// Rev 1.1 30 Oct 1995 17:15:42 BNICKERS
;// Fix color shift in RGB24 color convertors.
;//
;// Rev 1.0 23 Aug 1995 12:22:28 DBRUCKS
;// Initial revision.
#include "precomp.h"
#pragma data_seg ("H26xColorConvertorTbl")
#ifdef WIN32
extern
#endif
T_H26xColorConvertorTables H26xColorConvertorTables = {
{ // UVDitherLine01 (for CLUT8 and CLUT8ZoomBy2)
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00001A00, 0x00001A00, 0x1A001A00,
0x1A001A00, 0x1A1A1A00, 0x1A1A1A00, 0x1A1A1A1A,
0x1A1A1A1A, 0x1A1A341A, 0x1A1A341A, 0x341A341A,
0x341A341A, 0x3434341A, 0x3434341A, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434
},
{ // UVDitherLine23 (for CLUT8 and CLUT8ZoomBy2)
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x0000001A, 0x0000001A, 0x001A001A,
0x001A001A, 0x1A1A001A, 0x1A1A001A, 0x1A1A1A1A,
0x1A1A1A1A, 0x1A1A1A34, 0x1A1A1A34, 0x1A341A34,
0x1A341A34, 0x34341A34, 0x34341A34, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434,
0x34343434, 0x34343434, 0x34343434, 0x34343434
},
{ // YDither (for CLUT8)
0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10,
11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12,
13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14,
15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16,
17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18,
19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20,
21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22,
23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25
},
{ 0 }, // Padding1
{ // YDitherZ2 (for CLUT8ZoomBy2)
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00010000, 0x00010000, 0x00010001,
0x00010001, 0x00010101, 0x00010101, 0x01010101,
0x01010101, 0x01020101, 0x01020101, 0x01020102,
0x01020102, 0x01020202, 0x01020202, 0x02020202,
0x02020202, 0x02030202, 0x02030202, 0x02030203,
0x02030203, 0x02030303, 0x02030303, 0x03030303,
0x03030303, 0x03040303, 0x03040303, 0x03040304,
0x03040304, 0x03040404, 0x03040404, 0x04040404,
0x04040404, 0x04050404, 0x04050404, 0x04050405,
0x04050405, 0x04050505, 0x04050505, 0x05050505,
0x05050505, 0x05060505, 0x05060505, 0x05060506,
0x05060506, 0x05060606, 0x05060606, 0x06060606,
0x06060606, 0x06070606, 0x06070606, 0x06070607,
0x06070607, 0x06070707, 0x06070707, 0x07070707,
0x07070707, 0x07080707, 0x07080707, 0x07080708,
0x07080708, 0x07080808, 0x07080808, 0x08080808,
0x08080808, 0x08090808, 0x08090808, 0x08090809,
0x08090809, 0x08090909, 0x08090909, 0x09090909,
0x09090909, 0x090A0909, 0x090A0909, 0x090A090A,
0x090A090A, 0x090A0A0A, 0x090A0A0A, 0x0A0A0A0A,
0x0A0A0A0A, 0x0A0B0A0A, 0x0A0B0A0A, 0x0A0B0A0B,
0x0A0B0A0B, 0x0A0B0B0B, 0x0A0B0B0B, 0x0B0B0B0B,
0x0B0B0B0B, 0x0B0C0B0B, 0x0B0C0B0B, 0x0B0C0B0C,
0x0B0C0B0C, 0x0B0C0C0C, 0x0B0C0C0C, 0x0C0C0C0C,
0x0C0C0C0C, 0x0C0D0C0C, 0x0C0D0C0C, 0x0C0D0C0D,
0x0C0D0C0D, 0x0C0D0D0D, 0x0C0D0D0D, 0x0D0D0D0D,
0x0D0D0D0D, 0x0D0E0D0D, 0x0D0E0D0D, 0x0D0E0D0E,
0x0D0E0D0E, 0x0D0E0E0E, 0x0D0E0E0E, 0x0E0E0E0E,
0x0E0E0E0E, 0x0E0F0E0E, 0x0E0F0E0E, 0x0E0F0E0F,
0x0E0F0E0F, 0x0E0F0F0F, 0x0E0F0F0F, 0x0F0F0F0F,
0x0F0F0F0F, 0x0F100F0F, 0x0F100F0F, 0x0F100F10,
0x0F100F10, 0x0F101010, 0x0F101010, 0x10101010,
0x10101010, 0x10111010, 0x10111010, 0x10111011,
0x10111011, 0x10111111, 0x10111111, 0x11111111,
0x11111111, 0x11121111, 0x11121111, 0x11121112,
0x11121112, 0x11121212, 0x11121212, 0x12121212,
0x12121212, 0x12131212, 0x12131212, 0x12131213,
0x12131213, 0x12131313, 0x12131313, 0x13131313,
0x13131313, 0x13141313, 0x13141313, 0x13141314,
0x13141314, 0x13141414, 0x13141414, 0x14141414,
0x14141414, 0x14151414, 0x14151414, 0x14151415,
0x14151415, 0x14151515, 0x14151515, 0x15151515,
0x15151515, 0x15161515, 0x15161515, 0x15161516,
0x15161516, 0x15161616, 0x15161616, 0x16161616,
0x16161616, 0x16171616, 0x16171616, 0x16171617,
0x16171617, 0x16171717, 0x16171717, 0x17171717,
0x17171717, 0x17181717, 0x17181717, 0x17181718,
0x17181718, 0x17181818, 0x17181818, 0x18181818,
0x18181818, 0x18191818, 0x18191818, 0x18191819,
0x18191819, 0x18191919, 0x18191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919,
0x19191919, 0x19191919, 0x19191919, 0x19191919
},
#if WIN32
{ 0 }, // RValLo (for RGB16)
{ 0 }, // GValLo (for RGB16)
{ 0 }, // BValLo (for RGB16)
{ 0 }, // RValHi (for RGB16)
{ 0 }, // GValHi (for RGB16)
{ 0 }, // BValHi (for RGB16)
{ 0 }, // Padding2
{ 0 }, // UVContrib (for RGB16)
{ 0 }, // RValZ2 (for RGB16ZoomBy2)
{ 0 }, // GValZ2 (for RGB16ZoomBy2)
{ 0 }, // BValZ2 (for RGB16ZoomBy2)
{ 0 }, // Padding3
{ 0 }, // B24Value (for RGB24)
{ 0 }, // Padding4
{ 0 }, // UV24Contrib (for RGB24)
#endif
0 };
#pragma data_seg ()