⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bmp.h

📁 在linux framebuffer上显示模拟的动态水波效果
💻 H
字号:
#ifndef BMP__H#define BMP__H#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#define BMP_TORASTER_OFFSET	10#define BMP_SIZE_OFFSET		18#define BMP_BPP_OFFSET		28#define BMP_RLE_OFFSET		30#define BMP_COLOR_OFFSET	54#define FH_ERROR_OK 0#define FH_ERROR_FILE 1			/* read/access error */#define FH_ERROR_FORMAT 2		/* file format error */#define fill4B(a)	( ( 4 - ( (a) % 4 ) ) & 0x03)struct color {	unsigned char red;	unsigned char green;	unsigned char blue;};extern void *fb_convert(unsigned char *rgbbuff, unsigned long count,						int bpp);extern int fh_bmp_load(char *name, unsigned char *buffer, int x, int y);extern int fh_bmp_id(char *name);extern int fh_bmp_getsize(char *name, int *x, int *y);#endif	//BMP__H

⌨️ 快捷键说明

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