|
Namespaces |
namespace | cmlabs |
Classes |
struct | cmlabs::tagBITMAPFILEHEADER |
struct | cmlabs::tagBITMAPINFOHEADER |
struct | cmlabs::tagRGBA |
class | cmlabs::Pixel |
class | cmlabs::Bitmap |
Defines |
#define | AFX_BITMAP_H__7CFDF35A_B689_4481_8F4C_EF7B5AD00BE7__INCLUDED_ |
#define | GET_RGB_FROM_RGBA(a) (a & 0x00ffffff) |
#define | GET_R_FROM_RGBA(a) (unsigned char)(a & 0x000000ff) |
#define | GET_G_FROM_RGBA(a) (unsigned char)((a & 0x0000ff00)>>8) |
#define | GET_B_FROM_RGBA(a) (unsigned char)((a & 0x00ff0000)>>16) |
#define | GET_RGB_FROM_GRAY(a) (unsigned int)(((unsigned int)a<<16) + ((unsigned int)a<<8) + (unsigned int)a) |
#define | GET_RGB_FROM_COMP(r, g, b) (unsigned int)((((unsigned int)b)<<16) + (((unsigned int)g)<<8) + (unsigned int)r) |
#define | GET_GRAY_FROM_RGB(a) (unsigned char)((GET_R_FROM_RGBA(a)+GET_G_FROM_RGBA(a)+GET_B_FROM_RGBA(a))/3) |
#define | GET_DRGB_FROM_2RGBS(a, b) (((unsigned int)GET_R_FROM_RGBA(a)>>3)<<27) + (((unsigned int)GET_G_FROM_RGBA(a)>>2)<<21) + (((unsigned int)GET_B_FROM_RGBA(a)>>3)<<16) + (((unsigned int)GET_R_FROM_RGBA(b)>>3)<<11) + (((unsigned int)GET_G_FROM_RGBA(b)>>2)<<5) + (((unsigned int)GET_B_FROM_RGBA(b)>>3)<<0) |
#define | GET_FIRSTRGB_FROM_DRGB(a) ((unsigned int)((unsigned short)((a>>16)&0xF800)>>8)) | ((unsigned int)((unsigned short)((a>>16)&0xE000)>>13)) | ((unsigned int)((unsigned short)((a>>16)&0x07E0)<<5)) | ((unsigned int)((unsigned short)((a>>16)&0x0600))>>1) | ((unsigned int)((unsigned short)(a>>16)&0x001F)<<19) | (((unsigned int)(unsigned short)(a>>16)&0x001C)<<14) |
#define | GET_SECONDRGB_FROM_DRGB(a) ((unsigned int)((unsigned short)(a&0xF800)>>8)) | ((unsigned int)((unsigned short)(a&0xE000)>>13)) | ((unsigned int)((unsigned short)(a&0x07E0)<<5)) | ((unsigned int)((unsigned short)(a&0x0600))>>1) | ((unsigned int)((unsigned short)a&0x001F)<<19) | (((unsigned int)(unsigned short)a&0x001C)<<14) |
#define | DATACTRL 1 |
#define | RLECTRL 2 |
#define | DIFCTRL 3 |
Typedefs |
typedef unsigned char | cmlabs::BYTE |
typedef unsigned int | cmlabs::UINT |
typedef unsigned int | cmlabs::DWORD |
typedef unsigned short | cmlabs::WORD |
typedef signed int | cmlabs::LONG |
typedef struct
cmlabs::tagBITMAPFILEHEADER | cmlabs::BITMAPFILEHEADER |
typedef struct
cmlabs::tagBITMAPINFOHEADER | cmlabs::BITMAPINFOHEADER |
typedef struct cmlabs::tagRGBA | cmlabs::valRGBA |
Functions |
char * | cmlabs::ImageResizeDown66 (char *bytesource, int &cols, int &rows) |
char * | cmlabs::ImageResizeDown (char *bytesource, int &cols, int &rows, int factor) |
char * | cmlabs::ImageResizeUp66 (char *bytesource, int &cols, int &rows) |
char * | cmlabs::ImageResizeUp (char *bytesource, int &cols, int &rows, int factor) |