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

ImageDefinitions.h File Reference

#include <phStandard.h>
#include <phStdint.h>

Go to the source code of this file.

Classes

struct  phColorRGB24_t
struct  phColorBGR24_t
struct  phColorRGBA32_t
struct  phColorABGR32_t
struct  phColorBGRA32_t
struct  phColorYUV9_t
struct  phColorHSV_t
struct  phColorGREY8_t
struct  phColorSCT24_t
struct  phColorArray_t
union  phColor_t

Defines

#define phColorTypeArray   0
#define phColorTypeRGB24   1
#define phColorTypeBGR24   2
#define phColorTypeABGR32   3
#define phColorTypeRGBA32   4
#define phColorTypeGREY8   5
#define phColorTypeYUV9   6
#define phColorTypeHSV24   7
#define phColorTypeBGRA32   8
#define phColorTypeSCT24   9
#define phColorCount   10
#define phCOLOR_MAXBYTES   4
#define phCOLOR_MAXELEMS   4
#define phImageGRAY8   phImageGREY8
#define phImageFormatCount   10
#define phImageValidFormatMask
#define phImagePackedFormatMask
#define phImagePlanarFormatMask   phImageYUV9
#define phImageSpecialMask   (phImageZlib | phImageJPEG)
#define phCHANNEL_RED   0
#define phCHANNEL_GREEN   1
#define phCHANNEL_BLUE   2
#define phCHANNEL_ALPHA   3
#define phImageFormatTotalCount   (phImageFormatCount*4)
#define phIMAGE_SIZE(w, h, f)
#define phIMAGE_SIZE_IN_BYTES(s, w, h, f)

Typedefs

typedef phColorRGB24_t phColorRGB24
typedef phColorBGR24_t phColorBGR24
typedef phColorRGBA32_t phColorRGBA32
typedef phColorABGR32_t phColorABGR32
typedef phColorBGRA32_t phColorBGRA32
typedef phColorYUV9_t phColorYUV9
typedef phColorHSV_t phColorHSV24
typedef phColorGREY8_t phColorGREY8
typedef phColorSCT24_t phColorSCT24
typedef phColorArray_t phColorArray
typedef phColor_t phColor

Enumerations

enum  phImageType {
  phImageRGB24 = (1<<0), phImageBGR24 = (1<<1), phImageABGR32 = (1<<2), phImageRGBA32 = (1<<3),
  phImageGREY8 = (1<<4), phImageYUV9 = (1<<5), phImageHSV24 = (1<<6), phImageBGRA32 = (1<<7),
  phImageSCT24 = (1<<8), phImageZlib = (1<<20), phImageJPEG = (1<<21), phImageNOFORMAT = (1<<30)
}
enum  ChannelEnum { phRedChannel = 0, phGreenChannel = 1, phBlueChannel = 2, phAlphaChannel = 3 }

Functions

phColor phColor_new (uint8_t t)
phColor phColor8_new (uint8_t t, uint8_t b)
phColor phColor16_new (uint8_t t, uint8_t b0, uint8_t b1)
phColor phColor24_new (uint8_t t, uint8_t b0, uint8_t b1, uint8_t b2)
phColor phColor32_new (uint8_t t, uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3)
phColor phColorArray24_new (uint8_t b0, uint8_t b1, uint8_t b2)
phColor phColorArray32_new (uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3)
phColor phColorRGB24_new (uint8_t r, uint8_t g, uint8_t b)
phColor phColorRGBA32_new (uint8_t r, uint8_t g, uint8_t b, uint8_t a)
phColor phColorBGR24_new (uint8_t b, uint8_t g, uint8_t r)
phColor phColorABGR32_new (uint8_t a, uint8_t b, uint8_t g, uint8_t r)
phColor phColorBGRA32_new (uint8_t b, uint8_t g, uint8_t r, uint8_t a)
phColor phColorYUV9_new (uint8_t y, uint8_t u, uint8_t v)
phColor phColorHSV24_new (uint8_t h, uint8_t s, uint8_t v)
phColor phColorGREY8_new (uint8_t y)
phColor phColorSCT24_new (uint8_t s, uint8_t c, uint8_t t)
uint8_t phColorStringToType (const char *str)
const char * phColorTypeToString (uint8_t type)
uint32_t phColorTypeToFormat (uint8_t type)
uint8_t phColorTypeToDepth (uint8_t type)
const char * phColorToString (const phColor c)
uint32_t phColorToFormat (const phColor c)
uint8_t phColorToDepth (const phColor c)
int phColorEqual (phColor one, phColor two)
int phColorPrint (int fd, phColor color)
int phColorSave (const char *filename, uint32_t num_colors, phColor *colors)
int phColorRead (int fd, uint32_t max_colors, uint32_t *num_colors, phColor **colors)
int phColorLoad (const char *filename, uint32_t max_colors, uint32_t *num_colors, phColor **colors)
uint32_t phImageFormatToIndex (uint32_t f)
const char * phImageFormatToString (uint32_t f)
uint8_t phImageFormatToDepth (uint32_t f)
uint32_t phImageFormatTo32BitMask (uint32_t f, uint32_t c)
uint8_t phImageFormatToColorType (uint32_t f)
void phImageFormatIndecies (uint32_t f, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)

Variables

char * phColorNames [phColorCount]
uint8_t phColorDepth [phColorCount]
int8_t phImageChannelIndex [phImageFormatCount][4]
uint32_t phImageChannelMasks [phImageFormatCount][4]
char * phImageNames [phImageFormatTotalCount]
uint8_t phImageDepth [phImageFormatTotalCount]




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:12 2007 for phission by  doxygen 1.4.4