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

Go to the source code of this file.

Macros

#define PXL_WHITE_8   UCHAR_MAX
 
#define PXL_WHITE_16   USHRT_MAX
 
#define PXL_WHITE_32   UINT_MAX
 

Enumerations

enum  PXL_DataFormat {
  PXL_INT8 = 0, PXL_INT16, PXL_INT32, PXL_FLOAT32,
  PXL_FLOAT16, PXL_MAX_DATA_FORMAT
}
 
enum  PXL_Packing {
  PACK_SINGLE =0, PACK_DUAL, PACK_DUAL_NI, PACK_RGB,
  PACK_RGBA, PACK_RGB_NI, PACK_RGBA_NI, PACK_UNKNOWN = 255
}
 
enum  PXL_ColorSpace {
  PXL_CS_UNKNOWN, PXL_CS_LINEAR, PXL_CS_GAMMA2_2, PXL_CS_CUSTOM_GAMMA,
  PXL_CS_OCIO, PXL_CS_SRGB, PXL_CS_REC709, PXL_CS_MAX_SPACES
}
 

Functions

PXL_API const char * PXLgetColorSpaceName (PXL_ColorSpace cs)
 
PXL_API PXL_ColorSpace PXLgetColorSpace (const char *csname)
 
UT_GPUType PXLconvertToUTGPUType (PXL_DataFormat t)
 
int PXLformatDepth (PXL_DataFormat d)
 
int PXLpackingComponents (PXL_Packing p)
 
int PXLpackingDepth (PXL_Packing p)
 
unsigned int PXLwhitePoint (PXL_DataFormat dt)
 
PXL_API void PXLdetermineProcCaps ()
 
PXL_API bool PXLcpuHasMMX ()
 
PXL_API int PXLcpuHasSSE ()
 
PXL_API bool PXLcpuHasXMMX ()
 
PXL_API bool PXLcpuHasCondMov ()
 
int PXLclampChar (int t)
 
int PXLclampShort (int t)
 

Variables

PXL_API const int pxlDefinesDepth [6]
 
PXL_API const int pxlDefinesPComp [256]
 
PXL_API const int pxlDefinesPDepth [256]
 
PXL_API const unsigned int pxlDefinesWhite [6]
 

Macro Definition Documentation

#define PXL_WHITE_16   USHRT_MAX

Definition at line 65 of file PXL_Common.h.

#define PXL_WHITE_32   UINT_MAX

Definition at line 66 of file PXL_Common.h.

#define PXL_WHITE_8   UCHAR_MAX

Definition at line 64 of file PXL_Common.h.

Enumeration Type Documentation

Enumerator
PXL_CS_UNKNOWN 
PXL_CS_LINEAR 
PXL_CS_GAMMA2_2 
PXL_CS_CUSTOM_GAMMA 
PXL_CS_OCIO 
PXL_CS_SRGB 
PXL_CS_REC709 
PXL_CS_MAX_SPACES 

Definition at line 42 of file PXL_Common.h.

Enumerator
PXL_INT8 
PXL_INT16 
PXL_INT32 
PXL_FLOAT32 
PXL_FLOAT16 
PXL_MAX_DATA_FORMAT 

Definition at line 19 of file PXL_Common.h.

Enumerator
PACK_SINGLE 
PACK_DUAL 
PACK_DUAL_NI 
PACK_RGB 
PACK_RGBA 
PACK_RGB_NI 
PACK_RGBA_NI 
PACK_UNKNOWN 

Definition at line 29 of file PXL_Common.h.

Function Documentation

int PXLclampChar ( int  t)
inline

Definition at line 109 of file PXL_Common.h.

int PXLclampShort ( int  t)
inline

Definition at line 119 of file PXL_Common.h.

UT_GPUType PXLconvertToUTGPUType ( PXL_DataFormat  t)
inline

Definition at line 73 of file PXL_Common.h.

PXL_API bool PXLcpuHasCondMov ( )
PXL_API bool PXLcpuHasMMX ( )
PXL_API int PXLcpuHasSSE ( )
PXL_API bool PXLcpuHasXMMX ( )
PXL_API void PXLdetermineProcCaps ( )
int PXLformatDepth ( PXL_DataFormat  d)
inline

Definition at line 89 of file PXL_Common.h.

PXL_API PXL_ColorSpace PXLgetColorSpace ( const char *  csname)
PXL_API const char* PXLgetColorSpaceName ( PXL_ColorSpace  cs)
int PXLpackingComponents ( PXL_Packing  p)
inline

Definition at line 92 of file PXL_Common.h.

int PXLpackingDepth ( PXL_Packing  p)
inline

Definition at line 95 of file PXL_Common.h.

unsigned int PXLwhitePoint ( PXL_DataFormat  dt)
inline

Definition at line 98 of file PXL_Common.h.

Variable Documentation

PXL_API const int pxlDefinesDepth[6]
PXL_API const int pxlDefinesPComp[256]
PXL_API const int pxlDefinesPDepth[256]
PXL_API const unsigned int pxlDefinesWhite[6]