Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

defines.h

Go to the documentation of this file.
00001 /* 00002 File: LHDefines.h 00003 00004 Contains: defines for the CMM 00005 00006 Written by: Werner Neubrand 00007 00008 Version: 00009 00010 Copyright: � 1993-1997 by Heidelberger Druckmaschinen AG, all rights reserved. 00011 00012 */ 00013 00014 #ifndef LHDefines_h 00015 #define LHDefines_h 00016 00017 #ifndef LUTS_ARE_PTR_BASED 00018 #define LUTS_ARE_PTR_BASED 0 00019 #else 00020 #define LUTS_ARE_PTR_BASED 1 00021 #endif 00022 00023 /* made a few changes to get it to compile with MrC and SC. */ 00024 #if LUTS_ARE_PTR_BASED 00025 #define LUT_DATA_TYPE void* 00026 #define CUBE_DATA_TYPE void* 00027 #define DATA_2_PTR 00028 #define GETDATASIZE(x) GetPtrSize(x) 00029 #define SETDATASIZE(x,y) SetPtrSize(x,y) 00030 #define LOCK_DATA(x) 00031 #define UNLOCK_DATA(x) 00032 #define ALLOC_DATA(x,y) SmartNewPtr(x,y) 00033 #define DISPOSE_DATA(x) DisposePtr((Ptr)(x)) 00034 #define DISPOSE_IF_DATA(x) DisposeIfPtr((Ptr)(x)) 00035 #else 00036 #define LUT_DATA_TYPE void** 00037 #define CUBE_DATA_TYPE void** 00038 #define DATA_2_PTR * 00039 #define GETDATASIZE(x) GetHandleSize((Handle)(x)) 00040 #define SETDATASIZE(x,y) SetHandleSize((Handle)(x),(y)) 00041 #define LOCK_DATA(x) HLock((Handle)(x)) 00042 #define UNLOCK_DATA(x) HUnlock((Handle)(x)) 00043 #define ALLOC_DATA(x,y) (void **)SmartNewHandle(x,y) 00044 #define DISPOSE_DATA(x) (void **)DisposeHandle((Handle)(x)) 00045 #define DISPOSE_IF_DATA(x) (void **)DisposeIfHandle((Handle)(x)) 00046 #endif 00047 00048 00049 #define kDoDefaultLut 0 00050 #define kDoGamutLut 1 00051 00052 #define kNoInfo 0 00053 #define kDoXYZ2Lab 1 00054 #define kDoLab2XYZ 2 00055 00056 #define kNumOfRGBchannels 3 00057 #define kNumOfLab_XYZchannels 3 00058 00059 /* these constants are the defaults for Do3D and hardware */ 00060 /*- BYTE ---------------------------------------------------------------------------------- */ 00061 #define adr_bereich_elut 256 /* ElutAdrSize | Elut pixeloriented 256 entries 10 bit each dim. */ 00062 #define adr_breite_elut 8 /* ElutAdrShift | 2^8 = 256 */ 00063 #define bit_breite_elut 10 /* ElutWordSize */ 00064 00065 00066 #define adr_bereich_alut 1024 /* AlutAdrSize | Alut pixeloriented 1024 entries 8 bit each dim. */ 00067 #define adr_breite_alut 10 /* AlutAdrShift | 2^10 = 1024 */ 00068 #define bit_breite_alut 8 00069 00070 /* constants for the profheader-flags * 00071 #define kQualityMask 0x00030000 00072 #define kLookupOnlyMask 0x00040000 00073 #define kCreateGamutLutMask 0x00080000 00074 #define kUseRelColorimetric 0x00100000*/ 00075 00076 #endif

Generated on Sat May 15 19:39:39 2004 for test by doxygen 1.3.7