1. Type Define
typedef char s8; typedef unsigned char u8; typedef short s16; typedef unsigned short u16; typedef long s32; typedef unsigned long u32; typedef float f32; typedef double f64;
2.Structure Define
struct SGRAY8
{
union
{
u8 val;
u8 m[1];
};
};
struct SGRAY16
{
union
{
u16 val;
u16 m[1];
};
};
struct SRGB8
{
union
{
struct
{
u8 r;
u8 g;
u8 b;
};
u8 m[3];
};
};
struct SRGB16
{
union
{
struct
{
u16 r;
u16 g;
u16 b;
};
u16 m[3];
};
};
Posted by chungki


