27 #ifndef LEPTONICA_PIX_H 28 #define LEPTONICA_PIX_H 210 static const l_int32 L_RED_SHIFT =
212 static const l_int32 L_GREEN_SHIFT =
214 static const l_int32 L_BLUE_SHIFT =
216 static const l_int32 L_ALPHA_SHIFT =
330 #define PIX_SRC (0xc) 331 #define PIX_DST (0xa) 332 #define PIX_NOT(op) ((op) ^ 0x0f) 333 #define PIX_CLR (0x0) 334 #define PIX_SET (0xf) 336 #define PIX_PAINT (PIX_SRC | PIX_DST) 337 #define PIX_MASK (PIX_SRC & PIX_DST) 338 #define PIX_SUBTRACT (PIX_DST & PIX_NOT(PIX_SRC)) 340 #define PIX_XOR (PIX_SRC ^ PIX_DST) 449 #define PIXAA_VERSION_NUMBER 2 450 #define PIXA_VERSION_NUMBER 2 451 #define BOXA_VERSION_NUMBER 2 452 #define BOXAA_VERSION_NUMBER 3 513 #define PTA_VERSION_NUMBER 1 575 #define FPIX_VERSION_NUMBER 2 606 #define DPIX_VERSION_NUMBER 2 650 #define PIXACOMP_VERSION_NUMBER 2 1296 typedef void *(*alloc_fn)(size_t);
static const l_float32 L_RED_WEIGHT
struct PixColormap * colormap
void(* dealloc_fn)(void *)
static const l_float32 L_GREEN_WEIGHT
static const l_float32 L_BLUE_WEIGHT