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

ImageDefinitions.c File Reference

#include <phStandard.h>
#include <phByteOrderPrivate.h>
#include <ImageDefinitions.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <phError.h>
#include <phFile.h>
#include <phMemory.h>
#include <phPrint.h>

Go to the source code of this file.


#define phColorMIN(a, b)   ((a < b) ? a : b)


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)
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)
uint32_t phColorTypeToFormat (uint8_t type)
uint8_t phColorTypeToDepth (uint8_t type)
uint8_t phColorStringToType (const char *str)
const char * phColorTypeToString (uint8_t type)
uint32_t phColorToFormat (const phColor c)
uint8_t phColorToDepth (const phColor c)
const char * phColorToString (const phColor c)
int phColorEqual (phColor one, phColor two)


char * phColorNames [phColorCount]
uint8_t phColorDepth [phColorCount] = { 4,3,3,4,4,1,1,3,4,3 }
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 ( )
University Of Massachusetts at Lowell
Robotics Lab Logo

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