11 #ifndef __IMG_FILE_PARMS_H__
12 #define __IMG_FILE_PARMS_H__
78 void readAlphaAsPlane();
88 void selectPlanes(
const char *
pattern);
93 void selectPlaneNames(
const char *
name);
103 void selectMipLevel(
int level);
106 void setEnableMipLevel0Cache(
bool val);
118 {
return mySelectPlaneName; }
120 {
return mySelectPlaneIndex; }
142 {
return myEnableMipLevel0Cache; }
144 {
return myReadDataWindowOnly; }
146 {
return myReadAreaFlag; }
149 {
return myReadUVAreaFlag; }
169 bool preserve_aspect =
true);
179 void setDataWindowOnly();
186 void setWindow(
float u1,
float v1,
float u2,
float v2);
198 void flipImageVertical();
199 void flipImageHorizontal();
212 void applyLUT(
const char *lut,
219 void applyGamma(
fpreal gamma,
224 void adjustGammaForFormat(
IMG_Stat &stat,
262 void detectAlphaDetails();
267 void setOption(
const char *option,
const char *
value);
271 void setOptions(
const char **options);
274 void setOptionsString(
const char *option_pair_string);
286 { myMetadata.add(key, item); }
309 { myMetadata.merge(opts, overwrite); }
315 {
return myMetadata.import(name, val); }
317 {
return myMetadata.import(name, val); }
319 {
return myMetadata.import(name, val); }
321 {
return myMetadata.import(name, val); }
323 {
return myMetadata.import(name, val); }
325 {
return myMetadata.import(name, val); }
331 void useTileInterface();
336 { myContinueOnError =
true; }
338 {
return myContinueOnError; }
342 void setIsNormal(
bool f=
true) { myIsNormal =
f; }
388 fpreal myScaleX, myScaleY;
396 bool myFlipHorizontal : 1,
399 myReadDataWindowOnly :1,
401 myReadUVAreaFlag : 1,
406 myPreserveAspect : 1,
408 myContinueOnError : 1,
412 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
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
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
UT_FilterType filterType() const
GA_API const UT_StringHolder area
void setFileParm(const UT_StringHolder &key, bool val)