bmp-internal.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __BARRY_BMP_INTERNAL_H__
00026 #define __BARRY_BMP_INTERNAL_H__
00027
00028 #include "dll.h"
00029 #include <stdint.h>
00030 #include <sys/types.h>
00031
00032 typedef struct BXLOCAL {
00033 char bfType[2];
00034 uint32_t bfSize;
00035 uint16_t bfReserved1;
00036 uint16_t bfReserved2;
00037 uint32_t bfOffBits;
00038 } __attribute__ ((packed)) bmp_file_header_t;
00039
00040 typedef struct BXLOCAL {
00041 uint32_t biSize;
00042 uint32_t biWidth;
00043 uint32_t biHeight;
00044 uint16_t biPlanes;
00045 uint16_t biBitCount;
00046 uint32_t biCompression;
00047 uint32_t biSizeImage;
00048 uint32_t biXPelsPerMeter;
00049 uint32_t biYPelsPerMeter;
00050 uint32_t biClrUsed;
00051 uint32_t biClrImportant;
00052 } __attribute__ ((packed)) bmp_info_header_t;
00053
00054 #endif
00055