47 IMG_Stat(
unsigned xres,
unsigned yres);
51 IMG_Stat(
unsigned xres,
unsigned yres,
56 int64 getMemoryUsage(
bool inclusive)
const;
92 unsigned getXres()
const {
return myXres; }
93 unsigned getYres()
const {
return myYres; }
114 int getNumPlanes()
const;
125 int getPlaneIndex(
const char *
name)
const;
136 const char *c0name = 0,
137 const char *c1name = 0,
138 const char *c2name = 0,
139 const char *c3name = 0);
161 void insertPlane(
IMG_Plane *plane,
int beforeindex);
165 void removePlane(
int pindex);
167 void removePlane(
const char *
name);
169 void removeAllPlanes();
173 void reorderPlane(
IMG_Plane *plane,
int beforeindex);
177 void swapPlaneOrder(
int plane_a,
int plane_b);
191 void setDataWindow(
int x1,
int y1,
int x2,
int y2);
192 void clearDataWindow();
197 void getDataWindow(
int &
x1,
int &
y1,
198 int &x2,
int &y2)
const;
202 bool hasDataWindow()
const;
208 void setBackgroundColor(
fpreal col[4]);
209 void getBackgroundColor(
fpreal col[4])
const;
212 { myDataStreakFlag = streak; }
219 int getDataWidth()
const;
223 int getDataHeight()
const;
252 { myDeepStat = deep; }
254 {
return myDeepStat; }
263 int64 getComponentCount()
const;
267 int64 getDeepPixelComponentCount()
const;
271 int64 bytesPerPixel()
const;
275 int64 bytesPerImage()
const;
279 int64 bytesPerScanline()
const;
285 int64 bytesPerPlaneScan(
int i)
const;
294 int planeOffset(
int i)
const;
314 { myMipRoundMode =
mode; }
321 void recomputeOffsets();
323 void init(
int xres,
int yres);
329 fpreal myDataWindowColor[4];
334 int64 myRenderMemory;
336 unsigned myXres, myYres;
341 bool myDataStreakFlag;
342 bool myHasDataWindow;
fpreal getRenderTime() const
fpreal getAspectRatio() const
IMG_ImageType
Type of image we want to create or have opened.
int64 getRenderMemory() const
void setResolution(unsigned xres, unsigned yres)
Class which writes ASCII or binary JSON streams.
IMG_MipRoundMode getMipRoundMode() const
GLuint const GLchar * name
IMG_ImageType getImageType() const
Describes the format and layout of a single plane in an image The plane specifies the format and name...
void setRenderTime(fpreal t)
Sets the render time from the image file.
const img_DeepStatPtr & getDeepStat() const
Set how deep samples are interpolated.
GLubyte GLubyte GLubyte GLubyte w
void setAspectRatio(fpreal aspect)
void setMipRoundMode(IMG_MipRoundMode mode)
bool isEnvMap() const
isEnvMap() will return true, only if the image is an environment map.
bool getBackgroundStreak() const
GLuint GLfloat GLfloat GLfloat x1
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
UT_SharedPtr< IMG_DeepStat > img_DeepStatPtr
const UT_DimRect & getDataWindow() const
Return the data window for the image.
IMG_Plane * addDefaultPlane()
Add a default 8bit, RGBA plane to the image.
GLuint GLfloat GLfloat GLfloat GLfloat y1
IMG_Stat information used when creating deep images.
void setRenderMemory(int64 mem)
Sets the render time from the image file.
void swapPlaneOrder(const IMG_Plane *p, int plane_b)
IMG_Stat(const IMG_Stat &s)
void setFilename(const char *name)
OIIO_API bool copy(string_view from, string_view to, std::string &err)
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
constexpr T pi()
Pi constant taken from Boost to match old behaviour.
int getPlaneIndex() const
void setBackgroundStreak(bool streak)
const UT_String & getFilename() const
IMG_Stat & operator=(const IMG_Stat &s)
void setNumFrames(int nf)
void setDeepStat(const img_DeepStatPtr &deep)
Set how deep samples are interpolated.