11 #ifndef __IMG_FILE_PARMS_H__
12 #define __IMG_FILE_PARMS_H__
79 void readAlphaAsPlane();
89 void selectPlanes(
const char *
pattern);
94 void selectPlaneNames(
const char *
name);
104 void selectMipLevel(
int level);
107 void setEnableMipLevel0Cache(
bool val);
119 {
return mySelectPlaneName; }
121 {
return mySelectPlaneIndex; }
143 {
return myEnableMipLevel0Cache; }
145 {
return myReadDataWindowOnly; }
147 {
return myReadAreaFlag; }
150 {
return myReadUVAreaFlag; }
170 bool preserve_aspect =
true);
180 void setDataWindowOnly();
187 void setWindow(
float u1,
float v1,
float u2,
float v2);
199 void flipImageVertical();
200 void flipImageHorizontal();
213 void applyLUT(
const char *lut,
220 void applyGamma(
fpreal gamma,
225 void adjustGammaForFormat(
IMG_Stat &stat,
263 void detectAlphaDetails();
268 void setOption(
const char *option,
const char *
value);
272 void setOptions(
const char **options);
275 void setOptionsString(
const char *option_pair_string);
287 { myMetadata.add(key, item); }
304 { myMetadata.add(key, val); }
314 { myMetadata.merge(opts, overwrite); }
320 {
return myMetadata.import(name, val); }
322 {
return myMetadata.import(name, val); }
324 {
return myMetadata.import(name, val); }
326 {
return myMetadata.import(name, val); }
328 {
return myMetadata.import(name, val); }
330 {
return myMetadata.import(name, val); }
336 void useTileInterface();
341 { myContinueOnError =
true; }
343 {
return myContinueOnError; }
347 void setIsNormal(
bool f=
true) { myIsNormal =
f; }
393 fpreal myScaleX, myScaleY;
401 bool myFlipHorizontal : 1,
404 myReadDataWindowOnly :1,
406 myReadUVAreaFlag : 1,
411 myPreserveAspect : 1,
413 myContinueOnError : 1,
417 myEnableMipLevel0Cache : 1;
IMG_Interleave interleaved() const
const UT_StringHolder & ocioSourceView() const
const UT_StringHolder & ocioLooks() const
bool flipVertical() const
bool readDataWindowOnly() const
#define SYS_DEPRECATED(__V__)
const UT_IntArray & selectPlaneIndex() const
void setGainOffset(fpreal gain, fpreal offset)
IMG_ImageType
Type of image we want to create or have opened.
IMG_ComponentOrder componentOrder() const
const UT_StringHolder & selectPlaneName() const
const UT_StringHolder & lutScope() const
const UT_StringHolder & ocioView() const
GLsizei const GLfloat * value
const fpreal * getReadUVArea() const
Class which writes ASCII or binary JSON streams.
IMG_ColorModel colorModel() const
GLfloat GLfloat GLfloat v2
void setFileParm(const UT_StringHolder &key, fpreal64 val)
void setFileParm(const UT_StringHolder &key, const UT_JSONValue &val)
IMG_DataType dataType() const
const UT_SharedPtr< img_MipCache > & mipCache() const
void setMipCache(const UT_SharedPtr< img_MipCache > &c)
const UT_StringHolder & ocioDestSpace() const
void setFileParm(const UT_StringHolder &key, const UT_OptionEntry &val)
bool flipHorizontal() const
const UT_StringHolder & gammaScope() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
void setFileParm(const UT_StringHolder &key, int64 val)
void merge(const IMG_Metadata &opts, bool overwrite=true)
GLint GLint GLsizei GLint GLenum format
IMG_XOrientation orientX() const
GLdouble GLdouble GLint GLint order
#define SYS_NO_DISCARD_RESULT
bool enableMipLevel0Cache() const
GLuint const GLchar * name
SYS_NO_DISCARD_RESULT bool continueOnError() const
const UT_DimRect getReadArea() const
A map of string to various well defined value types.
bool isReadUVArea() const
const UT_StringHolder & ocioSourceDisplay() const
IMG_YOrientation orientY() const
PXL_LumFunction lumFunc() const
const UT_StringHolder & lutFilename() const
void setContinueOnError()
File options for manipulating image data on load or save. This class allows you to modify the incomin...
void setOption(const UT_StringHolder &key, const IMG_MetadataItem &item)
Set metadata option.
void setFileParm(const UT_StringHolder &key, const UT_StringHolder &val)
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...
GLubyte GLubyte GLubyte GLubyte w
bool preserveAspect() const
const IMG_Metadata & metadata() const
UT_FilterType filterType() const
GA_API const UT_StringHolder area
void setFileParm(const UT_StringHolder &key, bool val)