Utilities. More...

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_MAXDEPTH 5 |
| #define | IM_BYTECROP(_v) (_v < 0? 0: _v > 255? 255: _v) |
| #define | IM_FLOATCROP(_v) (_v < 0? 0: _v > 1.0f? 1.0f: _v) |
| #define | IM_CROPMAX(_v, _max) (_v < 0? 0: _v > _max? _max: _v) |
| #define | IM_CROPMINMAX(_v, _min, _max) (_v < _min? _min: _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) |
| const char * | imColorModeComponentName (int color_space, int component) |
| 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 | imCompressDataUnLZF (const void *src_data, int src_size, void *dst_data, int dst_size) |
| int | imCompressDataLZ4 (const void *src_data, int src_size, void *dst_data, int dst_size) |
| int | imCompressDataUnLZ4 (const void *src_data, int src_size, void *dst_data, int dst_size) |
See Copyright Notice in im_lib.h
1.7.1