26 UT_SMALLOBJECT_CLEANPAGES_OFF, 250,
27 UT_SMALLOBJECT_THREADSAFE_ON>
42 int64 getMemoryUsage(
bool inclusive)
const;
57 bool isCompatible(
const TIL_Plane &)
const;
61 const char *
getName()
const {
return myName; }
62 void setName(
const char *name);
64 bool isAlphaPlane()
const;
65 bool isColorPlane()
const;
66 bool isPointPlane()
const;
67 bool isNormalPlane()
const;
68 bool isDepthPlane()
const;
69 bool isGeometricPlane()
const;
78 { myTypeInfo = (
unsigned char)typeinfo; }
85 void setArraySize(
int n);
89 void setVectorSize(
int n);
93 {
return (i>=0 && i<myVectorSize) ? mySubName[i] : 0; }
95 void setSubName(
const char *subname,
int i);
96 int hasElement(
const char *planename);
104 {
return (i>=0 && i<myVectorSize) ? myPlaneMask[i]:0; }
106 void setPlaneMask(
int enable,
int i);
107 void copyPlaneMask(
const TIL_Plane &plane);
109 {
for(
int i=myVectorSize; i--;) myPlaneMask[i]=(
char)enable; }
111 bool isScoped()
const;
112 bool isPartiallyScoped()
const;
113 bool scopeMatches(
const TIL_Plane &plane)
const;
116 int getArrayMask(
int i)
const;
117 void setArrayMask(
int start,
int end,
int step);
120 bool isConstantPlane()
const;
121 bool isConstantComponent(
int i)
const;
122 bool isAnyComponentConstant()
const;
123 void setConstantFlag(
int i,
bool enable);
126 int usesBlackWhitePoints()
const;
128 unsigned int &
w)
const
129 { b = myBlackPoint; w = myWhitePoint; }
130 void getBlackWhitePoints(
float &
b,
float &
w)
const;
131 void setBlackWhitePoints(
unsigned int b,
unsigned int w);
133 void debugPrint(std::ostream &os)
const;
134 int64 getMemSize()
const;
140 myOCIOColorSpace = ocio;
145 unsigned getHash()
const;
152 unsigned short myArraySize;
153 unsigned char myFormat;
154 unsigned char myTypeInfo;
155 unsigned char myVectorSize;
161 int myArrayMaskStart;
172 unsigned int myBlackPoint;
173 unsigned int myWhitePoint;
174 unsigned int myNameAlloc :1,
int operator==(const TIL_Plane &eq) const
Class which writes ASCII or binary JSON streams.
int getPlaneMask(int i) const
void getBlackWhitePoints(unsigned int &b, unsigned int &w) const
int operator!=(const TIL_Plane &eq) const
const UT_StringHolder & getOCIOColorSpace() const
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
const char * getName() const
GLint GLint GLsizei GLint GLenum format
void setTypeInfo(TIL_TypeInfo typeinfo)
const char * getSubName(int i) const
#define PLANE_MAX_VECTOR_SIZE
TIL_DataFormat getFormat() const
GLuint const GLchar * name
TIL_TypeInfo getTypeInfo() const
GLboolean GLboolean GLboolean b
LeafData & operator=(const LeafData &)=delete
PXL_ColorSpace getColorSpace() const
GLubyte GLubyte GLubyte GLubyte w
int getVectorSize() const
void setColorSpace(PXL_ColorSpace cs, const UT_StringHolder &ocio=UT_StringHolder())
void setScoped(int enable)