/*
 * Copyright 1990 by Baylor College of Medicine ALL RIGHTS RESERVED. 
 *
 * This program is subject to a license agreement between 
 * Baylor College of Medicine and MIT. Any use inconsistent with
 * said license and any use by persons other than the faculty, 
 * students and staff at MIT or any use on a computer not operated 
 * as part of the Athena Computing Environment (ACE) is expressly 
 * prohibited.
 */
#ifndef __RAST_IMG__
#define __RAST_IMG__

/* Structure defining an image read in from a rasterfile */
/* 68000 byte and bit ordering */
/* Every line rounded up to even multiple of 16 bits */

#define CMAP_NONE 0
#define CMAP_RGB 1

struct rgba
{
	unsigned char a,b,g,r ;
};

typedef struct
{
   unsigned char *data;            /* Image data */
   int width;                      /* Width in pixels of image */
   int height;                     /* Height in pixels of image */
   int depth;                      /* Depth of image:
                                      1 => 1 bit per pixel
                                      2-8 => 8 bits per pixel
                                      9-24 => 24 bits per pixel */
   int cmap_type;                  /* Color map type */
   union
   {
      struct
      {
         int map_size;             /* # of map entries */
         struct rgb
         {
            unsigned char r,g,b;   /* Red, green, and blue */
         } *map;
      } rgb;
   } cmap_data;
} Rast_Img;

#endif
