im_util.h File Reference
Detailed Description
See Copyright Notice in im_lib.h- Id
- im_util.h,v 1.5 2005/12/12 00:18:29 scuri Exp
Go to the source code of this file.
Defines | |
| #define | IM_MIN(_a, _b) (_a < _b? _a: _b) |
| #define | IM_MAX(_a, _b) (_a > _b? _a: _b) |
| #define | imColorModeSpace(_cm) (_cm & 0xFF) |
| #define | imColorModeMatch(_cm1, _cm2) (imColorModeSpace(_cm1) == imColorModeSpace(_cm2)) |
| #define | imColorModeHasAlpha(_cm) (_cm & IM_ALPHA) |
| #define | imColorModeIsPacked(_cm) (_cm & IM_PACKED) |
| #define | imColorModeIsTopDown(_cm) (_cm & IM_TOPDOWN) |
| #define | IM_BYTECROP(_v) (_v < 0? 0: _v > 255? 255: _v) |
| #define | IM_CROPMAX(_v, _max) (_v < 0? 0: _v > _max? _max: _v) |
Typedefs | |
| typedef unsigned char | imbyte |
| typedef unsigned short | imushort |
Enumerations | |
| enum | imByteOrder { IM_LITTLEENDIAN, IM_BIGENDIAN } |
Functions | |
| int | imStrEqual (const char *str1, const char *str2) |
| int | imStrNLen (const char *str, int max_len) |
| int | imStrCheck (const void *data, int count) |
| int | imImageDataSize (int width, int height, int color_mode, int data_type) |
| int | imImageLineSize (int width, int color_mode, int data_type) |
| int | imImageLineCount (int width, int color_mode) |
| int | imImageCheckFormat (int color_mode, int data_type) |
| long | imColorEncode (unsigned char red, unsigned char green, unsigned char blue) |
| void | imColorDecode (unsigned char *red, unsigned char *green, unsigned char *blue, long color) |
| const char * | imColorModeSpaceName (int color_mode) |
| int | imColorModeDepth (int color_mode) |
| int | imColorModeToBitmap (int color_mode) |
| int | imColorModeIsBitmap (int color_mode, int data_type) |
| int | imDataTypeSize (int data_type) |
| const char * | imDataTypeName (int data_type) |
| unsigned long | imDataTypeIntMax (int data_type) |
| long | imDataTypeIntMin (int data_type) |
| int | imBinCPUByteOrder (void) |
| void | imBinSwapBytes (void *data, int count, int size) |
| void | imBinSwapBytes2 (void *data, int count) |
| void | imBinSwapBytes4 (void *data, int count) |
| void | imBinSwapBytes8 (void *data, int count) |
| int | imCompressDataZ (const void *src_data, int src_size, void *dst_data, int dst_size, int zip_quality) |
| int | imCompressDataUnZ (const void *src_data, int src_size, void *dst_data, int dst_size) |
| int | imCompressDataLZF (const void *src_data, int src_size, void *dst_data, int dst_size, int zip_quality) |
| int | imCompressDataUnLZF (const void *src_data, int src_size, void *dst_data, int dst_size) |