53 #define DEF_TYPERESOLVER(FORMAT, CPPTYPE) \
54 template <> struct PXL_DataFormatResolver<CPPTYPE> { \
55 static constexpr PXL_DataFormat format = FORMAT; \
57 template <> struct PXL_TypeResolver<FORMAT> { \
66 #undef DEF_TYPERESOLVER
90 #define PXL_WHITE_8 UCHAR_MAX
91 #define PXL_WHITE_16 USHRT_MAX
92 #define PXL_WHITE_32 UINT_MAX
116 {
return pxlDefinesDepth[(
int) d]; }
119 {
return pxlDefinesPComp[(
int) p]; }
122 {
return pxlDefinesPDepth[(
int) p]; }
125 {
return pxlDefinesWhite[ (
int) dt]; }
PXL_API const int pxlDefinesPDepth[256]
int PXLpackingComponents(PXL_Packing p)
#define DEF_TYPERESOLVER(FORMAT, CPPTYPE)
unsigned int PXLwhitePoint(PXL_DataFormat dt)
PXL_API bool PXLcpuHasMMX()
PXL_API int PXLcpuHasSSE()
PXL_API bool PXLcpuHasCondMov()
PXL_API const char * PXLgetColorSpaceName(PXL_ColorSpace cs)
UT_GPUType PXLconvertToUTGPUType(PXL_DataFormat t)
int PXLpackingDepth(PXL_Packing p)
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
PXL_API const unsigned int pxlDefinesWhite[6]
PXL_API const int pxlDefinesDepth[6]
PXL_API bool PXLcpuHasXMMX()
int PXLformatDepth(PXL_DataFormat d)
PXL_API PXL_ColorSpace PXLgetColorSpace(const char *csname)
PXL_API const int pxlDefinesPComp[256]
PXL_API void PXLdetermineProcCaps()