45 uint32_t compress_type;
uint32_t gp_bmp_palette_size(struct gp_bmp_info_header *header)
Returns palette size in bytes.
int gp_bmp_read_info_header(gp_io *io, struct gp_bmp_info_header *header)
Attempts to parse BMP info header at current offset in the file IO.
int gp_bmp_read_pixels(gp_io *io, struct gp_bmp_info_header *header, gp_pixmap *pixmap, gp_progress_cb *callback)
Reads a pixel data.
gp_bmp_info_header_size
BMP header size.
@ BITMAPINFOHEADER
Most common.
@ BITMAPINFOHEADER3
Undocummented.
@ BITMAPINFOHEADER4
Adds color space + gamma - win 95/NT4.
@ BITMAPCOREHEADER
Old OS/2 format + win 3.0.
@ BITMAPINFOHEADER5
Adds ICC color profiles win 98+.
@ BITMAPINFOHEADER2
Undocummented.
gp_pixel_type gp_bmp_pixel_type(struct gp_bmp_info_header *header)
Returns a pixel type suitable for a BMP info header.
gp_bmp_compress
BMP compression type.
@ COMPRESS_RLE8
Run-length encoded bitmap.
@ COMPRESS_BITFIELDS
Bitfield for each channel.
@ COMPRESS_RGB
Uncompressed.
@ COMPRESS_PNG
Only for printers.
@ COMPRESS_RLE4
Run-length encoded bitmap.
@ COMPRESS_ALPHABITFIELDS
Bitfields for each channel with alpha.
@ COMPRESS_JPEG
Only for printers.
@ COMPRESS_MAX
Terminating entry.
gp_pixel_type
List of all pixel types.