Tachyon (current)  Current Main Branch
image.h
Go to the documentation of this file.
1 /*
2  * image.h - Image Data Structures and definitions
3  *
4  * (C) Copyright 1994-2022 John E. Stone
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  * $Id: image.h,v 1.4 2022/02/18 17:55:28 johns Exp $
8  *
9  */
10 
11 /*
12  * One day, this file will define a common structure
13  * for all image / animation / volume type data structures.
14  * This will allow me to design and implement a library of
15  * pixel processing routines for pre and post processing of
16  * image data in the rendering process. Good examples will be
17  * image map filtering, animated image maps, DCT/IDCT algorithms,
18  * scalar volume data, a common set of file format readers and converters.
19  */
20 
21 typedef struct {
22  int ID;
23  unsigned int info;
26  unsigned int loaded;
27  unsigned int xs;
28  unsigned int ys;
29  unsigned int zs;
30  unsigned char * data;
31  char filename[FILENAME_MAX];
32 } Frame;
33 
34 
unsigned int info
bitmapped flags and values
Definition: image.h:23
unsigned int loaded
memory residency information
Definition: image.h:26
Definition: image.h:21
unsigned char * data
raw image/volume data
Definition: image.h:30
unsigned int zs
pels in z dimension
Definition: image.h:29
unsigned int xs
pels in x dimension
Definition: image.h:27
int ID
frame number
Definition: image.h:22
unsigned int ys
pels in y dimension
Definition: image.h:28