12 #ifndef __TIL_DeepRaster__
13 #define __TIL_DeepRaster__
32 virtual int64 getMemoryUsage(
bool inclusive)
const;
38 const char *scope = NULL,
39 bool invert_scope =
false);
54 bool change_vector2_to_vector3=
true,
55 bool allocate_raster_storage=
true);
58 {
return mySequence.getNumPlanes(); }
65 bool writeTile(
int plane_index,
66 int x0,
int x1,
int y0,
int y1,
72 int floats_per_sample,
80 bool clearOutside(
int plane_index,
81 int x0,
int x1,
int y0,
int y1,
87 bool stash_samples =
false);
92 bool stash_samples =
false);
98 { myCropWindow = rect; }
100 {
return !myCropWindow.isEmpty(); }
102 {
return myCropWindow; }
104 {
return myCropWindow; }
106 {
return !myWriteBox.isEmpty(); }
108 {
return myWriteBox; }
110 {
return myWriteBox; }
113 void setEdgeStreak(
int plane,
114 int ex0,
int ex1,
int ey0,
int ey1);
115 bool getEdgeStreak(
int plane,
116 int &ex0,
int &ex1,
int &ey0,
int &ey1);
117 void clearEdgeStreak(
int plane);
119 void setBlackPoint(
int plane,
fpreal bpoint);
120 void setWhitePoint(
int plane,
fpreal wpoint);
125 return mySwapped ? readFromDisk() :
true;
138 return myAdaptiveImage.get();
141 int numPlaneSourceComponents(
int planei)
const;
142 int numPlaneDestComponents(
int planei)
const;
144 int planeSourceStartComponent(
int planei)
const;
148 void copyArrays(
TIL_Raster *tmp_Rasters,
int *tmp_BPP,
149 bool *tmp_2Bit,
bool *tmp_EdgeStreakFlag,
156 void removeDiskFile();
int getRasterCount() const
const UT_DimRect & getWrittenWindow() const
const TIL_AdaptiveImage * getAdaptiveImage() const
void writeSamples(short *data, int size)
const UT_StringHolder & getName()
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
bool hasDataWritten() const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
bool hasCropWindow() const
TIL_Raster & getRaster(int i)
GLuint const GLchar * name
OPENVDB_API void initialize()
Global registration of native Grid, Transform, Metadata and Point attribute types. Also initializes blosc (if enabled).
UT_DimRect & getWrittenWindow()
const UT_DimRect & getCropWindow() const
const TIL_Raster & getRaster(int i) const
const TIL_Sequence & getSequence() const
UT_DimRect & getCropWindow()
TIL_Sequence & getSequence()
void setCropWindow(const UT_DimRect &rect)