HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IMG_FileTypes.h File Reference
#include "IMG_API.h"
#include <PXL/PXL_Common.h>
+ Include dependency graph for IMG_FileTypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IMG_DT_ALL   ((IMG_DataType)0x1F)
 
#define IMG_CM_SIZE   0x0F
 
#define IMG_CM_ALL   ((IMG_ColorModel)0x0F)
 

Enumerations

enum  IMG_DataType {
  IMG_DT_UNDEFINED = -1, IMG_DT_ANY = 0x00, IMG_UCHAR = 0x01, IMG_INT8 = 0x01,
  IMG_USHORT = 0x02, IMG_INT16 = 0x02, IMG_UINT = 0x04, IMG_INT32 = 0x04,
  IMG_FLOAT = 0x08, IMG_FLOAT32 = 0x08, IMG_HALF = 0x10, IMG_FLOAT16 = 0x10
}
 
enum  IMG_TypeInfo {
  IMG_TI_UNDEFINED = 0, IMG_TI_POSITION, IMG_TI_VECTOR, IMG_TI_NORMAL,
  IMG_TI_COLOR, IMG_TI_SAMPLE_COUNT
}
 How the channel data should be interpreted. More...
 
enum  IMG_ColorModel {
  IMG_CM_UNDEFINED = -1, IMG_CM_ANY = 0, IMG_1CHAN = 0x01, IMG_2CHAN = 0x02,
  IMG_RGB = 0x04, IMG_RGBA = 0x08, IMG_CM_REVERSED = 0x10, IMG_BGR = (IMG_RGB | IMG_CM_REVERSED),
  IMG_ABGR = (IMG_RGBA | IMG_CM_REVERSED)
}
 
enum  IMG_Interleave { IMG_INTERLEAVE_AS_IS, IMG_INTERLEAVED, IMG_NON_INTERLEAVED }
 
enum  IMG_ComponentOrder { IMG_COMPONENT_AS_IS, IMG_COMPONENT_RGBA, IMG_COMPONENT_ABGR }
 
enum  IMG_XOrientation { IMG_ORIENT_X_NONE, IMG_ORIENT_LEFT_FIRST, IMG_ORIENT_RIGHT_FIRST }
 
enum  IMG_YOrientation { IMG_ORIENT_Y_NONE, IMG_ORIENT_TOP_FIRST, IMG_ORIENT_BOTTOM_FIRST }
 
enum  IMG_DeepRasterColor { IMG_DEEP_RGBA_SPLIT, IMG_DEEP_RGBA_COMBINED, IMG_DEEP_RGBA_DONT_CARE }
 
enum  IMG_FileAlphaInfo {
  IMG_ALPHA_OPAQUE, IMG_ALPHA_CONSTANT, IMG_ALPHA_CUTOUT, IMG_ALPHA_VARYING,
  IMG_ALPHA_OUT_OF_BOUNDS, IMG_ALPHA_NONE
}
 
enum  IMG_ImageType { IMG_TYPE_2D = 1 << 0, IMG_TYPE_DEEP_PIXEL = 1 << 1 }
 Type of image we want to create or have opened. More...
 
enum  IMG_DepthInterp { IMG_DI_UNDEFINED = -1, IMG_DI_DISCRETE = 0, IMG_DI_LINEAR = 1 }
 

Functions

IMG_API const char * IMGgetNameFromDataType (IMG_DataType type)
 
IMG_API IMG_DataType IMGgetDataTypeFromName (const char *name)
 
IMG_API const char * IMGgetNameFromTypeInfo (IMG_TypeInfo type_info)
 
IMG_API IMG_TypeInfo IMGgetTypeInfoFromName (const char *name)
 
IMG_API const char * IMGgetNameFromColorModel (IMG_ColorModel type_info)
 
IMG_API IMG_ColorModel IMGgetColorModelFromName (const char *name)
 
IMG_API const char * IMGgetNameFromDepthInterp (IMG_DepthInterp type)
 
IMG_API IMG_DepthInterp IMGgetDepthInterpFromName (const char *name)
 

Macro Definition Documentation

#define IMG_CM_ALL   ((IMG_ColorModel)0x0F)
Examples:
IMG/IMG_Sample.C.

Definition at line 180 of file IMG_FileTypes.h.

#define IMG_CM_SIZE   0x0F

Definition at line 179 of file IMG_FileTypes.h.

#define IMG_DT_ALL   ((IMG_DataType)0x1F)
Examples:
IMG/IMG_Sample.C.

Definition at line 91 of file IMG_FileTypes.h.

Enumeration Type Documentation

Enumerator
IMG_CM_UNDEFINED 
IMG_CM_ANY 
IMG_1CHAN 
IMG_2CHAN 
IMG_RGB 
IMG_RGBA 
IMG_CM_REVERSED 
IMG_BGR 
IMG_ABGR 

Definition at line 53 of file IMG_FileTypes.h.

Enumerator
IMG_COMPONENT_AS_IS 
IMG_COMPONENT_RGBA 
IMG_COMPONENT_ABGR 

Definition at line 84 of file IMG_FileTypes.h.

Enumerator
IMG_DT_UNDEFINED 
IMG_DT_ANY 
IMG_UCHAR 
IMG_INT8 
IMG_USHORT 
IMG_INT16 
IMG_UINT 
IMG_INT32 
IMG_FLOAT 
IMG_FLOAT32 
IMG_HALF 
IMG_FLOAT16 

Definition at line 17 of file IMG_FileTypes.h.

Enumerator
IMG_DEEP_RGBA_SPLIT 
IMG_DEEP_RGBA_COMBINED 
IMG_DEEP_RGBA_DONT_CARE 

Definition at line 236 of file IMG_FileTypes.h.

Enumerator
IMG_DI_UNDEFINED 
IMG_DI_DISCRETE 
IMG_DI_LINEAR 

Definition at line 264 of file IMG_FileTypes.h.

Enumerator
IMG_ALPHA_OPAQUE 
IMG_ALPHA_CONSTANT 
IMG_ALPHA_CUTOUT 
IMG_ALPHA_VARYING 
IMG_ALPHA_OUT_OF_BOUNDS 
IMG_ALPHA_NONE 

Definition at line 245 of file IMG_FileTypes.h.

Type of image we want to create or have opened.

Enumerator
IMG_TYPE_2D 
IMG_TYPE_DEEP_PIXEL 

The image is a 2D image.

Definition at line 256 of file IMG_FileTypes.h.

Enumerator
IMG_INTERLEAVE_AS_IS 
IMG_INTERLEAVED 
IMG_NON_INTERLEAVED 

Definition at line 77 of file IMG_FileTypes.h.

How the channel data should be interpreted.

Enumerator
IMG_TI_UNDEFINED 
IMG_TI_POSITION 
IMG_TI_VECTOR 
IMG_TI_NORMAL 
IMG_TI_COLOR 
IMG_TI_SAMPLE_COUNT 

Definition at line 39 of file IMG_FileTypes.h.

Enumerator
IMG_ORIENT_X_NONE 
IMG_ORIENT_LEFT_FIRST 
IMG_ORIENT_RIGHT_FIRST 

Definition at line 221 of file IMG_FileTypes.h.

Enumerator
IMG_ORIENT_Y_NONE 
IMG_ORIENT_TOP_FIRST 
IMG_ORIENT_BOTTOM_FIRST 

Definition at line 228 of file IMG_FileTypes.h.

Function Documentation

IMG_API IMG_ColorModel IMGgetColorModelFromName ( const char *  name)
IMG_API IMG_DataType IMGgetDataTypeFromName ( const char *  name)
IMG_API IMG_DepthInterp IMGgetDepthInterpFromName ( const char *  name)
IMG_API const char* IMGgetNameFromColorModel ( IMG_ColorModel  type_info)
IMG_API const char* IMGgetNameFromDataType ( IMG_DataType  type)
IMG_API const char* IMGgetNameFromDepthInterp ( IMG_DepthInterp  type)
IMG_API const char* IMGgetNameFromTypeInfo ( IMG_TypeInfo  type_info)
IMG_API IMG_TypeInfo IMGgetTypeInfoFromName ( const char *  name)