bmpfmt.h

来自「convert bitmap for vxworks use format」· C头文件 代码 · 共 49 行

H
49
字号
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef unsigned char BYTE;

typedef struct bitmap_file_header_type {
	u16 type;
	u32 fileSize;
	u32 reserved;
	u32 offset;
} BMP_FILE_HDR;

typedef struct bitmap_info_header_type {
	u32 infoSize;
	u32 width;
	u32 height;
	u16 planes;
	u16 bitCount;
	u32 compression;
	u32 sizeImage;
	u32 xResolution;
	u32 yResolution;
	u32 colorUsed;
	u32 colorImportant;
} BMP_INFO_HDR;

typedef struct bitmap_rgb_quad_type {
	BYTE blue;
	BYTE green;
	BYTE red;
	BYTE reserved;
} BMP_RGB;

typedef struct bitmap_file_format {
struct bitmap_file_header_type filehdr;
	struct bitmap_info_header_type infohdr;
		struct bitmap_rgb_quad_type rgb[16];
} BMP_FMT;

enum bmp_state_define {
BMPSTATE_FILE_HDR,
BMPSTATE_INFO_HDR,
BMPSTATE_RGB,
BMPSTATE_DATA,
BMPSTATE_END
};

#define	 FILEINDEX_RGB 54

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?