Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pnmimagetypes/sgi.h

Go to the documentation of this file.
00001 /* Filename: sgi.h
00002  * Created by:  
00003  *
00004  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00005  *
00006  * PANDA 3D SOFTWARE
00007  * Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008  *
00009  * All use of this software is subject to the terms of the Panda 3d
00010  * Software license.  You should have received a copy of this license
00011  * along with this source code; you will also find a current copy of
00012  * the license at http://www.panda3d.org/license.txt .
00013  *
00014  * To contact the maintainers of this program write to
00015  * panda3d@yahoogroups.com .
00016  *
00017  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00018 
00019 #ifndef SGI_IMAGE_H
00020 #define SGI_IMAGE_H
00021 
00022 typedef struct {
00023     short           magic;
00024     char            storage;
00025     char            bpc;            /* pixel size: 1 = bytes, 2 = shorts */
00026     unsigned short  dimension;      /* 1 = single row, 2 = B/W, 3 = RGB */
00027     unsigned short  xsize,          /* width in pixels */
00028                     ysize,          /* height in pixels */
00029                     zsize;          /* # of channels; B/W=1, RGB=3, RGBA=4 */
00030     long            pixmin, pixmax; /* min/max pixel values */
00031     char            dummy1[4];
00032     char            name[80];
00033     long            colormap;
00034     char            dummy2[404];
00035 } Header;
00036 #define HeaderSize  512
00037 
00038 #define SGI_MAGIC           (short)474
00039 
00040 #define STORAGE_VERBATIM    0
00041 #define STORAGE_RLE         1
00042 
00043 #define CMAP_NORMAL         0
00044 #define CMAP_DITHERED       1   /* not supported */
00045 #define CMAP_SCREEN         2   /* not supported */
00046 #define CMAP_COLORMAP       3   /* not supported */
00047 
00048 #endif

Generated on Fri May 2 00:43:26 2003 for Panda by doxygen1.3