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

pi_run.c File Reference

#include "General.h"
#include "Runtime.h"

Go to the source code of this file.

Functions

CMError CWMatchBitmap (CMWorldRef Storage, CMBitmap *bitMap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitMap)
CMError CWCheckBitmap (CMWorldRef Storage, const CMBitmap *bitMap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitMap)
CMError CWMatchBitmapPlane (CMWorldRef Storage, LH_CMBitmapPlane *bitMap, CMBitmapCallBackUPP progressProc, void *refCon, LH_CMBitmapPlane *matchedBitMap)
CMError CWCheckBitmapPlane (CMWorldRef Storage, LH_CMBitmapPlane *bitMap, CMBitmapCallBackUPP progressProc, void *refCon, LH_CMBitmapPlane *CheckedBitMap)
CMError CWMatchColors (CMWorldRef Storage, CMColor *myColors, unsigned long count)
CMError CWCheckColorsMS (CMWorldRef Storage, CMColor *myColors, unsigned long count, UINT8 *result)
CMError CWCheckColors (CMWorldRef Storage, CMColor *myColors, unsigned long count, unsigned char *result)
CMError CWGetColorSpaces (CMWorldRef cw, CMBitmapColorSpace *In, CMBitmapColorSpace *Out)


Function Documentation

CMError CWCheckBitmap CMWorldRef  Storage,
const CMBitmap bitMap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
CMBitmap resultBitMap
 

Definition at line 113 of file lh_open/pi_run.c.

00119 { 00120 CMError err = noErr; 00121 CMMModelPtr aPtr; 00122 00123 if( Storage == 0 )return cmparamErr; 00124 LOCK_DATA( Storage ); 00125 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00126 err = LHCheckBitMapPrivate( aPtr, 00127 (const CMBitmap*)bitMap, 00128 progressProc, 00129 refCon, 00130 resultBitMap ); 00131 UNLOCK_DATA( Storage ); 00132 return err; 00133 }

CMError CWCheckBitmapPlane CMWorldRef  Storage,
LH_CMBitmapPlane bitMap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
LH_CMBitmapPlane CheckedBitMap
 

Definition at line 224 of file lh_open/pi_run.c.

00230 { 00231 Storage=Storage; 00232 bitMap=bitMap; 00233 progressProc=progressProc; 00234 refCon=refCon; 00235 CheckedBitMap=CheckedBitMap; 00236 return cmparamErr; 00237 /*CMError err = noErr; 00238 CMMModelPtr aPtr; 00239 00240 if( Storage == 0 )return cmparamErr; 00241 LOCK_DATA( Storage ); 00242 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00243 err = LHMatchBitMapPlanePrivate( aPtr, 00244 (const LH_CMBitmapPlane*)bitMap, 00245 progressProc, 00246 refCon, 00247 CheckedBitMap ); 00248 UNLOCK_DATA( Storage ); 00249 return err;*/ 00250 }

CMError CWCheckColors CMWorldRef  Storage,
CMColor myColors,
unsigned long  count,
unsigned char *  result
 

Definition at line 359 of file lh_open/pi_run.c.

00364 { 00365 CMError err = noErr; 00366 CMMModelPtr aPtr; 00367 00368 if( Storage == 0 )return cmparamErr; 00369 LOCK_DATA( Storage ); 00370 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00371 err = LHCheckColorsPrivate( aPtr, myColors, count, result ); 00372 UNLOCK_DATA( Storage ); 00373 return err; 00374 }

CMError CWCheckColorsMS CMWorldRef  Storage,
CMColor myColors,
unsigned long  count,
UINT8 result
 

Definition at line 316 of file lh_open/pi_run.c.

References CMError, CMMModelPtr, cmparamErr, DATA_2_PTR, LHCheckColorsPrivateMS(), LOCK_DATA, noErr, and UNLOCK_DATA.

00321 { 00322 CMError err = noErr; 00323 CMMModelPtr aPtr; 00324 00325 if( Storage == 0 )return cmparamErr; 00326 LOCK_DATA( Storage ); 00327 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00328 err = LHCheckColorsPrivateMS( aPtr, myColors, count, result ); 00329 UNLOCK_DATA( Storage ); 00330 return err; 00331 }

CMError CWGetColorSpaces CMWorldRef  cw,
CMBitmapColorSpace In,
CMBitmapColorSpace Out
 

Definition at line 395 of file lh_open/pi_run.c.

00399 { 00400 CMError err = noErr; 00401 CMMModelPtr aPtr; 00402 00403 if( cw == 0 )return cmparamErr; 00404 LOCK_DATA( cw ); 00405 aPtr = (CMMModelPtr)(DATA_2_PTR( cw )); 00406 *In = aPtr->firstColorSpace; 00407 *Out = aPtr->lastColorSpace; 00408 UNLOCK_DATA( cw ); 00409 return err; 00410 }

CMError CWMatchBitmap CMWorldRef  Storage,
CMBitmap bitMap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
CMBitmap matchedBitMap
 

Definition at line 56 of file lh_open/pi_run.c.

00063 { 00064 CMError err = noErr; 00065 CMMModelPtr aPtr; 00066 00067 if( Storage == 0 )return cmparamErr; 00068 LOCK_DATA( Storage ); 00069 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00070 err = LHMatchBitMapPrivate( aPtr, 00071 (const CMBitmap*)bitMap, 00072 progressProc, 00073 refCon, 00074 matchedBitMap ); 00075 UNLOCK_DATA( Storage ); 00076 return err; 00077 }

CMError CWMatchBitmapPlane CMWorldRef  Storage,
LH_CMBitmapPlane bitMap,
CMBitmapCallBackUPP  progressProc,
void *  refCon,
LH_CMBitmapPlane matchedBitMap
 

Definition at line 168 of file lh_open/pi_run.c.

00174 { 00175 CMError err = noErr; 00176 CMMModelPtr aPtr; 00177 00178 if( Storage == 0 )return cmparamErr; 00179 LOCK_DATA( Storage ); 00180 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00181 err = LHMatchBitMapPlanePrivate( aPtr, 00182 (const LH_CMBitmapPlane*)bitMap, 00183 progressProc, 00184 refCon, 00185 matchedBitMap ); 00186 UNLOCK_DATA( Storage ); 00187 return err; 00188 }

CMError CWMatchColors CMWorldRef  Storage,
CMColor myColors,
unsigned long  count
 

Definition at line 273 of file lh_open/pi_run.c.

00277 { 00278 CMError err = noErr; 00279 CMMModelPtr aPtr; 00280 00281 if( Storage == 0 )return cmparamErr; 00282 LOCK_DATA( Storage ); 00283 aPtr = (CMMModelPtr)(DATA_2_PTR( Storage )); 00284 err = LHMatchColorsPrivate( aPtr, myColors, count ); 00285 UNLOCK_DATA( Storage ); 00286 return err; 00287 }


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