Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/ray/src/lib/pixmap/format.h File Reference

Image format description class (channels, bits). More...

#include <lib/sconfig.h>

Include dependency graph for format.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

class  PixmapFormat
 This class describes a pixmap format. More...

struct  PixmapFormat::FMT

Defines

#define _PIXMAP_FORMAT_H_   1


Detailed Description

Image format description class (channels, bits).

Author:
Wolfgang Wieser ] wwieser (a) gmx <*> de [
The class PixmapFormat describes a pixmap format, i.e. how many channels (e.g 3 for RGB, 1 for gray) the pixmap has and how many bits are in each channel as well as which format (RGB, RGBA, Gray,...) the pixmap has (this allows correct interpretation of what channel 0,1,2.. stands for).

The class stores a PixmapFormat::Format identifier (Gray,RGB,RGBA,...). From knowledge of this format identifier, it is clear which interpretation the channels should have (e.g. for RGB the channel 0 is red while for Gray, it is the gray indensity). Hence, the number of channels is also known from the PixmapFormat::Format identifier.

Furthermore, the class stores the number of bits in each channel in a separate array. This allows for image formats which have a different number of bits in different channels such as well-known RGB-565 with 5 bits red and blue and 6 bits green.

Note:
however, that not all formats which can be described by this class may be implemented by routines acually operating on pixmaps.

Definition in file format.h.


Define Documentation

#define _PIXMAP_FORMAT_H_   1
 

Definition at line 18 of file format.h.


Generated on Sat Feb 19 22:34:25 2005 for Ray by doxygen 1.3.5