HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TIL_Defines.h File Reference
#include "TIL_API.h"
#include <IMG/IMG_FileTypes.h>
#include <PXL/PXL_Common.h>
#include <UT/UT_Lock.h>
#include <UT/UT_NonCopyable.h>
#include <UT/UT_SysClone.h>
#include <SYS/SYS_Math.h>
#include <SYS/SYS_Types.h>
#include <limits.h>
+ Include dependency graph for TIL_Defines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  til_AlignedBlock
 

Macros

#define TIL_Lookup   PXL_Lookup
 
#define TIL_Fill   PXL_Fill
 
#define TIL_FillParms   PXL_FillParms
 
#define TIL_Pixel   PXL_Pixel
 
#define TIL_Convert   PXL_Convert
 
#define TIL_MAX_THREADS   32
 
#define TIL_DEFAULT_TILE_SIZE   320
 
#define TIL_DEFAULT_INT8_SIZE   (TIL_DEFAULT_TILE_SIZE*TIL_DEFAULT_TILE_SIZE)
 
#define TIL_DEFAULT_INT16_SIZE   (TIL_DEFAULT_INT8_SIZE * 2)
 
#define TIL_DEFAULT_FLOAT32_SIZE   (TIL_DEFAULT_INT8_SIZE * 4)
 
#define TILE_LOCK_WRITE   0
 
#define TILE_LOCK_READ_ONLY   1
 
#define TIL_DataFormat   PXL_DataFormat
 
#define TILE_INT8   PXL_INT8
 
#define TILE_INT16   PXL_INT16
 
#define TILE_INT32   PXL_INT32
 
#define TILE_FLOAT32   PXL_FLOAT32
 
#define TILE_FLOAT16   PXL_FLOAT16
 
#define TILE_MAX_DATA_FORMAT   PXL_MAX_DATA_FORMAT
 
#define TIL_Packing   PXL_Packing
 
#define TILE_WHITE_8   UCHAR_MAX
 
#define TILE_WHITE_16   USHRT_MAX
 
#define TILE_WHITE_32   UINT_MAX
 
#define TILE_CACHE_MANAGER_MAX_LOCKS   4096
 
#define PLANE_MAX_ARRAY_SIZE   4096
 
#define PLANE_MAX_VECTOR_SIZE   4
 
#define PROXY_TABLE_SIZE   309
 
#define POOL_TABLE_SIZE   509
 
#define FOR_EACH_TILE(list, tile, i)
 
#define GET_TILE(list, tile, i)
 
#define GET_UNCOOKED_TILE(list, tile, i)
 
#define FOR_EACH_UNCOOKED_TILE(list, tile, i)
 
#define FOR_EACH_UNCOOKED_PAIR(outlist, inlist, out, in, i)
 
#define TILE_INPUT1(list, a)
 
#define TILE_INPUT2(list, a, b)
 
#define TILE_INPUT3(list, a, b, c)
 
#define TILE_INPUT4(list, a, b, c, d)
 
#define TILE_SCALAR(list, a)
 
#define TILE_VECTOR2(list, a, b)
 
#define TILE_VECTOR3(list, a, b, c)
 
#define TILE_VECTOR4(list, a, b, c, d)
 
#define TIL_LOCK(loc)   loc.lock()
 
#define TIL_UNLOCK(loc)   loc.unlock()
 
#define TILwait(n)   TILwaitF(n)
 

Typedefs

typedef UT_Lock TIL_FastLock
 

Enumerations

enum  TIL_TypeInfo {
  TIL_TI_UNDEFINED = IMG_TI_UNDEFINED, TIL_TI_POSITION = IMG_TI_POSITION, TIL_TI_VECTOR = IMG_TI_VECTOR, TIL_TI_NORMAL = IMG_TI_NORMAL,
  TIL_TI_COLOR = IMG_TI_COLOR, TIL_TI_SAMPLE_COUNT = IMG_TI_SAMPLE_COUNT
}
 
enum  TIL_Interlace { INTERLACE_OFF = 0, INTERLACE_HALF = 1, INTERLACE_BLACK = 2, INTERLACE_DOUBLE = 3 }
 
enum  TIL_Dominance { ODD_DOMINANT = 0, EVEN_DOMINANT = 1, ODD_ONLY = 2, EVEN_ONLY = 3 }
 
enum  TIL_Extend {
  EXTEND_BLACK = 0, EXTEND_CYCLE, EXTEND_MIRROR, EXTEND_HOLD_FOREVER,
  EXTEND_HOLD
}
 
enum  TIL_Storage {
  STORE_CACHE = 0, STORE_NO_CACHE, STORE_LOCKED, STORE_PROXY,
  STORE_NEVER
}
 
enum  TIL_HistogramType {
  TIL_RAW_HISTOGRAM = 0, TIL_HUE_HISTOGRAM, TIL_SAT_HISTOGRAM, TIL_LUM_HISTOGRAM,
  TIL_RAW_VS_U, TIL_RAW_VS_V, TIL_HUE_VS_U, TIL_HUE_VS_V,
  TIL_SAT_VS_U, TIL_SAT_VS_V, TIL_LUM_VS_U, TIL_LUM_VS_V,
  TIL_HUE_VS_SAT, TIL_HUE_VS_LUM
}
 
enum  TIL_ViewerType {
  TIL_VIEW_2D = 0, TIL_VIEW_TIME, TIL_VIEW_GRAPH_RAWHIST, TIL_VIEW_GRAPH_HUEHIST,
  TIL_VIEW_GRAPH_SATHIST, TIL_VIEW_GRAPH_LUMHIST, TIL_VIEW_GRAPH_CURVES, TIL_VIEW_GRAPH_RAW_VS_U,
  TIL_VIEW_GRAPH_RAW_VS_V, TIL_VIEW_GRAPH_HUE_VS_U, TIL_VIEW_GRAPH_HUE_VS_V, TIL_VIEW_GRAPH_SAT_VS_U,
  TIL_VIEW_GRAPH_SAT_VS_V, TIL_VIEW_GRAPH_LUM_VS_U, TIL_VIEW_GRAPH_LUM_VS_V, TIL_VIEW_GRAPH_HUE_VS_SAT,
  TIL_VIEW_GRAPH_HUE_VS_LUM
}
 

Functions

int TILformatDepth (PXL_DataFormat d)
 
int TILpackingComponents (PXL_Packing p)
 
int TILpackingDepth (PXL_Packing p)
 
unsigned int TILwhitePoint (PXL_DataFormat dt)
 
TIL_API TIL_DataFormat TILformatConvert (IMG_DataType)
 
TIL_API IMG_DataType TILformatConvert (TIL_DataFormat)
 
TIL_API void TILparsePlaneName (const char *name, UT_String &pname, int &arrayindex)
 
TIL_API void TILgetBWPoints (TIL_DataFormat d, float b, float w, unsigned &ib, unsigned &iw, bool &fast)
 
TIL_API void TILgetFloatBWPoints (TIL_DataFormat d, unsigned ib, unsigned iw, float &b, float &w)
 
TIL_API void TILgetBestFormat (TIL_DataFormat d1, float b1, float w1, TIL_DataFormat d2, float b2, float w2, TIL_DataFormat &best, float &black, float &white)
 
TIL_API void TILlock (UT_Lock &lock, const char *file=0, int line=0)
 
TIL_API void TILprintLockBlockStats ()
 
TIL_API void TILclearTotalWait ()
 
TIL_API void TILwaitF (int n, const char *file=0, int line=0)
 
TIL_API double TILgetTotalWait ()
 
TIL_API bool TILcopyOrRefPlaneName (const char *&dname, const char *name)
 
TIL_API bool TILcopyOrRefCompName (const char *&dname, const char *name)
 
TIL_API void TILinitNameRefs ()
 
TIL_API bool TILcheckConstant (void *idata, TIL_DataFormat format, int xres, int yres)
 
TIL_API bool TILemulationNeeded (int comp, float b, float w, float sc, float sh, float gamma, const char *lut, float aspect, TIL_DataFormat type, bool use8bit, bool hard_accel, bool hardlut, bool frag_shader)
 

Macro Definition Documentation

#define FOR_EACH_TILE (   list,
  tile,
 
)
Value:
for(i=0, tile=list->myItems[0]; i<PLANE_MAX_VECTOR_SIZE; \
i++, tile=list->myItems[SYSmin(i, PLANE_MAX_VECTOR_SIZE-1)])\
if(tile)
#define PLANE_MAX_VECTOR_SIZE
Definition: TIL_Defines.h:167
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define SYSmin(a, b)
Definition: SYS_Math.h:1571

Definition at line 176 of file TIL_Defines.h.

#define FOR_EACH_UNCOOKED_PAIR (   outlist,
  inlist,
  out,
  in,
 
)
Value:
for(i=0, out=outlist->myItems[0], in=inlist->myItems[0]; \
i++, out=outlist->myItems[SYSmin(i,PLANE_MAX_VECTOR_SIZE-1)],\
in=inlist->myItems[SYSmin(i, PLANE_MAX_VECTOR_SIZE-1)]) \
if(out && in && !out->isCooked())
#define PLANE_MAX_VECTOR_SIZE
Definition: TIL_Defines.h:167
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define SYSmin(a, b)
Definition: SYS_Math.h:1571

Definition at line 197 of file TIL_Defines.h.

#define FOR_EACH_UNCOOKED_TILE (   list,
  tile,
 
)
Value:
for(i=0, tile=list->myItems[0]; i<PLANE_MAX_VECTOR_SIZE; \
i++, tile=list->myItems[SYSmin(i, PLANE_MAX_VECTOR_SIZE-1)])\
if(tile && !tile->isCooked())
#define PLANE_MAX_VECTOR_SIZE
Definition: TIL_Defines.h:167
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define SYSmin(a, b)
Definition: SYS_Math.h:1571
Examples:
COP2/COP2_MultiInputWipe.C, COP2/COP2_SampleFilter.C, and COP2/COP2_SampleGenerator.C.

Definition at line 192 of file TIL_Defines.h.

#define GET_TILE (   list,
  tile,
 
)
Value:
for(tile=0, i=0, tile=list->myItems[0]; i<PLANE_MAX_VECTOR_SIZE; \
i++, tile=list->myItems[SYSmin(i, PLANE_MAX_VECTOR_SIZE-1)]) \
if(tile) break;
#define PLANE_MAX_VECTOR_SIZE
Definition: TIL_Defines.h:167
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define SYSmin(a, b)
Definition: SYS_Math.h:1571

Definition at line 181 of file TIL_Defines.h.

#define GET_UNCOOKED_TILE (   list,
  tile,
 
)
Value:
for(tile=0, i=0, tile=list->myItems[0]; \
i++, tile=list->myItems[SYSmin(i, PLANE_MAX_VECTOR_SIZE-1)])\
if(tile && !tile->isCooked()) break;
#define PLANE_MAX_VECTOR_SIZE
Definition: TIL_Defines.h:167
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
#define SYSmin(a, b)
Definition: SYS_Math.h:1571

Definition at line 186 of file TIL_Defines.h.

#define PLANE_MAX_ARRAY_SIZE   4096

Definition at line 166 of file TIL_Defines.h.

#define PLANE_MAX_VECTOR_SIZE   4
Examples:
COP2/COP2_FullImageFilter.C, and COP2/COP2_MultiInputWipe.C.

Definition at line 167 of file TIL_Defines.h.

#define POOL_TABLE_SIZE   509

Definition at line 170 of file TIL_Defines.h.

#define PROXY_TABLE_SIZE   309

Definition at line 169 of file TIL_Defines.h.

#define TIL_Convert   PXL_Convert

Definition at line 28 of file TIL_Defines.h.

#define TIL_DataFormat   PXL_DataFormat

Definition at line 65 of file TIL_Defines.h.

#define TIL_DEFAULT_FLOAT32_SIZE   (TIL_DEFAULT_INT8_SIZE * 4)

Definition at line 44 of file TIL_Defines.h.

#define TIL_DEFAULT_INT16_SIZE   (TIL_DEFAULT_INT8_SIZE * 2)

Definition at line 43 of file TIL_Defines.h.

#define TIL_DEFAULT_INT8_SIZE   (TIL_DEFAULT_TILE_SIZE*TIL_DEFAULT_TILE_SIZE)

Definition at line 42 of file TIL_Defines.h.

#define TIL_DEFAULT_TILE_SIZE   320

Definition at line 40 of file TIL_Defines.h.

#define TIL_Fill   PXL_Fill

Definition at line 25 of file TIL_Defines.h.

Definition at line 26 of file TIL_Defines.h.

#define TIL_LOCK (   loc)    loc.lock()

Definition at line 264 of file TIL_Defines.h.

#define TIL_Lookup   PXL_Lookup

Definition at line 24 of file TIL_Defines.h.

#define TIL_MAX_THREADS   32
Examples:
COP2/COP2_FullImageFilter.h.

Definition at line 38 of file TIL_Defines.h.

#define TIL_Packing   PXL_Packing

Definition at line 73 of file TIL_Defines.h.

#define TIL_Pixel   PXL_Pixel

Definition at line 27 of file TIL_Defines.h.

#define TIL_UNLOCK (   loc)    loc.unlock()

Definition at line 265 of file TIL_Defines.h.

#define TILE_CACHE_MANAGER_MAX_LOCKS   4096

Definition at line 164 of file TIL_Defines.h.

#define TILE_FLOAT16   PXL_FLOAT16

Definition at line 70 of file TIL_Defines.h.

#define TILE_FLOAT32   PXL_FLOAT32
Examples:
COP2/COP2_FullImageFilter.C, and COP2/COP2_MultiInputWipe.C.

Definition at line 69 of file TIL_Defines.h.

#define TILE_INPUT1 (   list,
  a 
)
Value:
{ \
a = list->myItems[0]; }
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222

Definition at line 205 of file TIL_Defines.h.

#define TILE_INPUT2 (   list,
  a,
  b 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; }
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222

Definition at line 208 of file TIL_Defines.h.

#define TILE_INPUT3 (   list,
  a,
  b,
 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; \
c = list->myItems[2]; }
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222

Definition at line 212 of file TIL_Defines.h.

#define TILE_INPUT4 (   list,
  a,
  b,
  c,
 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; \
c = list->myItems[2]; \
d = list->myItems[3]; }
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222

Definition at line 217 of file TIL_Defines.h.

#define TILE_INT16   PXL_INT16

Definition at line 67 of file TIL_Defines.h.

#define TILE_INT32   PXL_INT32

Definition at line 68 of file TIL_Defines.h.

#define TILE_INT8   PXL_INT8
Examples:
SOP/SOP_CopRaster.C.

Definition at line 66 of file TIL_Defines.h.

#define TILE_LOCK_READ_ONLY   1

Definition at line 48 of file TIL_Defines.h.

#define TILE_LOCK_WRITE   0

Definition at line 47 of file TIL_Defines.h.

#define TILE_MAX_DATA_FORMAT   PXL_MAX_DATA_FORMAT

Definition at line 71 of file TIL_Defines.h.

#define TILE_SCALAR (   list,
  a 
)
Value:
{ \
a = list->myItems[0]; \
if(a && a->isCooked()) a = 0; \
}
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

Definition at line 225 of file TIL_Defines.h.

#define TILE_VECTOR2 (   list,
  a,
  b 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; \
if(a && a->isCooked()) a = 0; \
if(b && b->isCooked()) b = 0; \
}
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

Definition at line 230 of file TIL_Defines.h.

#define TILE_VECTOR3 (   list,
  a,
  b,
 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; \
c = list->myItems[2]; \
if(a && a->isCooked()) a = 0; \
if(b && b->isCooked()) b = 0; \
if(c && c->isCooked()) c = 0; \
}
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

Definition at line 237 of file TIL_Defines.h.

#define TILE_VECTOR4 (   list,
  a,
  b,
  c,
 
)
Value:
{ \
a = list->myItems[0]; \
b = list->myItems[1]; \
c = list->myItems[2]; \
d = list->myItems[3]; \
if(a && a->isCooked()) a = 0; \
if(b && b->isCooked()) b = 0; \
if(c && c->isCooked()) c = 0; \
if(d && d->isCooked()) d = 0; \
}
GLboolean GLboolean GLboolean GLboolean a
Definition: glcorearb.h:1222
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697

Definition at line 246 of file TIL_Defines.h.

#define TILE_WHITE_16   USHRT_MAX

Definition at line 161 of file TIL_Defines.h.

#define TILE_WHITE_32   UINT_MAX

Definition at line 162 of file TIL_Defines.h.

#define TILE_WHITE_8   UCHAR_MAX

Definition at line 160 of file TIL_Defines.h.

#define TILwait (   n)    TILwaitF(n)

Definition at line 266 of file TIL_Defines.h.

Typedef Documentation

Definition at line 55 of file TIL_Defines.h.

Enumeration Type Documentation

Enumerator
ODD_DOMINANT 
EVEN_DOMINANT 
ODD_ONLY 
EVEN_ONLY 

Definition at line 93 of file TIL_Defines.h.

enum TIL_Extend
Enumerator
EXTEND_BLACK 
EXTEND_CYCLE 
EXTEND_MIRROR 
EXTEND_HOLD_FOREVER 
EXTEND_HOLD 

Definition at line 103 of file TIL_Defines.h.

Enumerator
TIL_RAW_HISTOGRAM 
TIL_HUE_HISTOGRAM 
TIL_SAT_HISTOGRAM 
TIL_LUM_HISTOGRAM 
TIL_RAW_VS_U 
TIL_RAW_VS_V 
TIL_HUE_VS_U 
TIL_HUE_VS_V 
TIL_SAT_VS_U 
TIL_SAT_VS_V 
TIL_LUM_VS_U 
TIL_LUM_VS_V 
TIL_HUE_VS_SAT 
TIL_HUE_VS_LUM 

Definition at line 121 of file TIL_Defines.h.

Enumerator
INTERLACE_OFF 
INTERLACE_HALF 
INTERLACE_BLACK 
INTERLACE_DOUBLE 

Definition at line 85 of file TIL_Defines.h.

Enumerator
STORE_CACHE 
STORE_NO_CACHE 
STORE_LOCKED 
STORE_PROXY 
STORE_NEVER 

Definition at line 112 of file TIL_Defines.h.

Enumerator
TIL_TI_UNDEFINED 
TIL_TI_POSITION 
TIL_TI_VECTOR 
TIL_TI_NORMAL 
TIL_TI_COLOR 
TIL_TI_SAMPLE_COUNT 

Definition at line 75 of file TIL_Defines.h.

Enumerator
TIL_VIEW_2D 
TIL_VIEW_TIME 
TIL_VIEW_GRAPH_RAWHIST 
TIL_VIEW_GRAPH_HUEHIST 
TIL_VIEW_GRAPH_SATHIST 
TIL_VIEW_GRAPH_LUMHIST 
TIL_VIEW_GRAPH_CURVES 
TIL_VIEW_GRAPH_RAW_VS_U 
TIL_VIEW_GRAPH_RAW_VS_V 
TIL_VIEW_GRAPH_HUE_VS_U 
TIL_VIEW_GRAPH_HUE_VS_V 
TIL_VIEW_GRAPH_SAT_VS_U 
TIL_VIEW_GRAPH_SAT_VS_V 
TIL_VIEW_GRAPH_LUM_VS_U 
TIL_VIEW_GRAPH_LUM_VS_V 
TIL_VIEW_GRAPH_HUE_VS_SAT 
TIL_VIEW_GRAPH_HUE_VS_LUM 

Definition at line 139 of file TIL_Defines.h.

Function Documentation

TIL_API bool TILcheckConstant ( void idata,
TIL_DataFormat  format,
int  xres,
int  yres 
)
TIL_API void TILclearTotalWait ( )
TIL_API bool TILcopyOrRefCompName ( const char *&  dname,
const char *  name 
)
TIL_API bool TILcopyOrRefPlaneName ( const char *&  dname,
const char *  name 
)
TIL_API bool TILemulationNeeded ( int  comp,
float  b,
float  w,
float  sc,
float  sh,
float  gamma,
const char *  lut,
float  aspect,
TIL_DataFormat  type,
bool  use8bit,
bool  hard_accel,
bool  hardlut,
bool  frag_shader 
)
TIL_API TIL_DataFormat TILformatConvert ( IMG_DataType  )
TIL_API IMG_DataType TILformatConvert ( TIL_DataFormat  )
int TILformatDepth ( PXL_DataFormat  d)
inline

Definition at line 269 of file TIL_Defines.h.

TIL_API void TILgetBestFormat ( TIL_DataFormat  d1,
float  b1,
float  w1,
TIL_DataFormat  d2,
float  b2,
float  w2,
TIL_DataFormat best,
float black,
float white 
)
TIL_API void TILgetBWPoints ( TIL_DataFormat  d,
float  b,
float  w,
unsigned &  ib,
unsigned &  iw,
bool &  fast 
)
TIL_API void TILgetFloatBWPoints ( TIL_DataFormat  d,
unsigned  ib,
unsigned  iw,
float b,
float w 
)
TIL_API double TILgetTotalWait ( )
TIL_API void TILinitNameRefs ( )
TIL_API void TILlock ( UT_Lock lock,
const char *  file = 0,
int  line = 0 
)
int TILpackingComponents ( PXL_Packing  p)
inline

Definition at line 272 of file TIL_Defines.h.

int TILpackingDepth ( PXL_Packing  p)
inline

Definition at line 275 of file TIL_Defines.h.

TIL_API void TILparsePlaneName ( const char *  name,
UT_String pname,
int arrayindex 
)
TIL_API void TILprintLockBlockStats ( )
TIL_API void TILwaitF ( int  n,
const char *  file = 0,
int  line = 0 
)
unsigned int TILwhitePoint ( PXL_DataFormat  dt)
inline

Definition at line 278 of file TIL_Defines.h.