Panda3D
panda
src
pnmimagetypes
sgi.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file sgi.h
10
*/
11
12
#ifndef SGI_IMAGE_H
13
#define SGI_IMAGE_H
14
15
typedef
struct
{
16
short
magic;
17
char
storage;
18
char
bpc;
/* pixel size: 1 = bytes, 2 = shorts */
19
unsigned
short
dimension;
/* 1 = single row, 2 = B/W, 3 = RGB */
20
unsigned
short
xsize,
/* width in pixels */
21
ysize,
/* height in pixels */
22
zsize;
/* # of channels; B/W=1, RGB=3, RGBA=4 */
23
long
pixmin, pixmax;
/* min/max pixel values */
24
char
dummy1[4];
25
char
name[80];
26
long
colormap;
27
char
dummy2[404];
28
}
Header
;
29
#define HeaderSize 512
30
31
#define SGI_MAGIC (short)474
32
33
#define STORAGE_VERBATIM 0
34
#define STORAGE_RLE 1
35
36
#define CMAP_NORMAL 0
37
#define CMAP_DITHERED 1
/* not supported */
38
#define CMAP_SCREEN 2
/* not supported */
39
#define CMAP_COLORMAP 3
/* not supported */
40
41
#endif
Header
Definition:
sgi.h:15
Generated on Wed Jan 23 2019 21:40:15 for Panda3D by
1.8.15