revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / datatypes / picture / colorhandling.h
blob6324364ea82754ae4885313d1b71235d61470aab
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define CLIP(x) ((x)>0xff ? 0xff : ((x)<0x00 ? 0x00 : (x)))
7 #define MOD2(x) (((x)+1)&~1)
8 #define MOD16(x) (((x)+15)&~15)
10 struct HistEntry
12 unsigned int Count;
13 unsigned long Red;
14 unsigned long Green;
15 unsigned long Blue;
18 BOOL AllocSrcBuffer( struct Picture_Data *pd, long width, long height, ULONG pixelformat, int pixelbytes );
19 BOOL AllocDestBM( struct Picture_Data *pd );
20 void FreeSource( struct Picture_Data *pd );
21 void FreeDest( struct Picture_Data *pd );
22 void InitGreyColTable( struct Picture_Data *pd );
23 void InitRGBColTable( struct Picture_Data *pd );
24 BOOL ConvertBitmap2Chunky( struct Picture_Data *pd );
25 BOOL ConvertChunky2Bitmap( struct Picture_Data *pd );
26 BOOL CreateMaskPlane( struct Picture_Data *pd );
28 BOOL ConvertTC2TC( struct Picture_Data *pd );
29 BOOL ConvertCM2TC( struct Picture_Data *pd );
30 BOOL ConvertCM2CM( struct Picture_Data *pd );
31 BOOL ConvertTC2CM( struct Picture_Data *pd );