MCPcopy Create free account
hub / github.com/NetHack/NetHack / IMG_HEADER

Class IMG_HEADER

outdated/include/load_img.h:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5/* Header of GEM Image Files */
6typedef struct IMG_HEADER {
7 short version; /* Img file format version (1) */
8 short length; /* Header length in words (8) */
9 short planes; /* Number of bit-planes (1) */
10 short pat_len; /* length of Patterns (2) */
11 short pix_w; /* Pixel width in 1/1000 mmm (372) */
12 short pix_h; /* Pixel height in 1/1000 mmm (372) */
13 short img_w; /* Pixels per line (=(x+7)/8 Bytes) */
14 short img_h; /* Total number of lines */
15 long magic; /* Contains "XIMG" if standard color */
16 short paltype; /* palette type (0=RGB (short each)) */
17 short *palette; /* palette etc. */
18 char *addr; /* Address for the depacked bit-planes */
19} IMG_header;
20
21/* ------------------------------------------- */
22/* error codes */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected