URL
https://opencores.org/ocsvn/wf3d/wf3d/trunk
Subversion Repositories wf3d
[/] [wf3d/] [tags/] [release-1.0/] [bin/] [a2bmp/] [bitmap.h] - Rev 3
Compare with Previous | Blame | View Log
#ifndef __BITMAP_H___ #define __BITMAP_H___ #define FILEHEADERSIZE 14 #define INFOHEADERSIZE 40 #define HEADERSIZE (FILEHEADERSIZE+INFOHEADERSIZE) typedef struct{ unsigned char b; unsigned char g; unsigned char r; }rgb; typedef struct{ int height; int width; rgb *dat; } Image; Image *read_txt(char *filename, int w, int h); int write_bmp(char *filename, Image *img); Image *create_image(int width, int height); void delete_image(Image *img); #endif