12 #ifndef __IMG_PLANE_INFO_H__
13 #define __IMG_PLANE_INFO_H__
63 int64 getMemoryUsage(
bool inclusive)
const;
99 fpreal getColorSpaceGamma()
const;
119 void setComponentNames(
const char *c1,
123 void setComponentName(
int comp,
const char *name);
126 const char *getComponentName(
int comp)
const;
135 bool hasBlackWhitePoints()
const;
136 void getBlackWhitePoints(
int64 &b,
int64 &w)
const;
141 int getPixelSize()
const;
149 {
return IMGvectorSize(myColorModel); }
155 {
return metadata().find(key, value, metadataKey()); }
164 {
return metadata().begin(); }
166 {
return metadata().end(); }
187 bool pretty_print)
const;
192 {
return metadata().add(key, item); }
210 void setParentStat(
IMG_Stat *stat) { myStat = stat; }
211 void setPlaneIndex(
int index) { myIndex =
index; }
212 void updateComponentNames();
const IMG_Metadata & metadata() const
bool setMetadata(const UT_StringHolder &key, const UT_StringHolder &val)
IMG_Metadata::const_iterator endMetadata() const
IMG_Metadata & metadata()
IMG_TypeInfo
How the channel data should be interpreted.
bool setMetadata(const UT_StringHolder &key, bool val)
int getComponentCount() const
Returns the number of components this plane consists of.
bool setMetadata(const UT_StringHolder &key, const IMG_MetadataItem &item)
Class which writes ASCII or binary JSON streams.
static const char * Opacity
Describes the format and layout of a single plane in an image The plane specifies the format and name...
static const char * DepthComplexity
For deep images, this plane contains the sample count for each pixel.
static const char * Depth
static const char * Normal
bool setMetadata(const UT_StringHolder &key, const UT_JSONValue &val)
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
GLuint const GLchar * name
GLboolean GLboolean GLboolean b
bool setMetadata(const UT_StringHolder &key, int64 val)
LeafData & operator=(const LeafData &)=delete
IMG_Metadata::const_iterator beginMetadata() const
static const char * Color
Class to store JSON objects as C++ objects.
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
bool findMetadata(const UT_StringRef &key, IMG_MetadataItem &value) const
bool setMetadata(const UT_StringHolder &key, fpreal64 val)
GLubyte GLubyte GLubyte GLubyte w
static const char * Alpha
int getPlaneIndex() const
static const char * Position