1 /* Zgv v2.7 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux. 2 * Copyright (C) 1993-5 Russell Marks. See README for license details. 3 * 4 * readbmp.h - header for readbmp.c. 5 * 6 * BMP support by Carsten Engelmann (cengelm@gwdg.de) 7 */ 8 9 /* these are no longer read directly from the file, so 10 * endianness, short/int lengths, and struct packing shouldn't 11 * be a problem any more. 12 * -rjm 2001 May 25. 13 */ 14 15 typedef struct 16 { 17 unsigned int biSize; 18 unsigned int biWidth; 19 unsigned int biHeight; 20 unsigned short biPlanes; 21 unsigned short biBitCount; 22 unsigned int biCompression; 23 unsigned int biSizeImage; 24 unsigned int biXPelsPerMeter; 25 unsigned int biYPelsPerMeter; 26 unsigned int biClrUsed; 27 unsigned int biClrImportant; 28 } BITMAPINFOHEADER; 29 30 typedef struct 31 { 32 unsigned int bcSize; 33 unsigned short bcWidth; 34 unsigned short bcHeight; 35 unsigned short bcPlanes; 36 unsigned short bcBitCount; 37 } BITMAPCOREHEADER; 38 39 extern void aborted_file_bmp_cleanup(); 40 extern int read_bmp_file (char *filename, hffunc howfarfunc, 41 unsigned char **bmap, unsigned char **pal, 42 int *output_type, PICINFO *pp); 43