11 #ifndef TIL_FILE_SEQUENCE_H
12 #define TIL_FILE_SEQUENCE_H
15 #include <sys/types.h>
36 int64 getMemoryUsage(
bool inclusive)
const;
41 int setNewPattern(
const char *filepattern);
46 int override_size = 0,
47 int override_range = 0,
50 bool useframe =
false,
int frame = 0,
52 bool coloronly =
false,
53 bool fractional =
false);
56 bool override_size =
true,
60 bool coloronly =
false);
64 bool getFrameRange(
int &
start,
int &
end,
bool fractional=
false);
68 bool getFilename(
UT_String &name,
int frame = 0x80000000);
70 bool doesFrameExist(
const UT_String &framename)
const;
71 bool doesFrameExist(
int frame)
const;
72 int getClosestFrame(
int to_frame)
const;
73 int getClosestPrevFrame(
int to_frame)
const;
74 int getClosestNextFrame(
int to_frame)
const;
76 int getPlaneIndex(
const char *name)
const;
79 fpreal getPlaneColorSpaceGamma(
int plane_index)
const;
98 bool isMovieFile()
const;
106 bool getFileDigits(
int &digits)
const;
107 void setFileDigits(
int digits);
109 int getFractionFrameIndex(
float frame)
const;
114 fpreal getRenderTime(
int frame)
const;
115 int64 getRenderMemory(
int frame)
const;
119 void markBadFrame(
int frame);
121 void resetBadFrames();
126 void setComment(
const UT_String &comment,
int frame);
127 void getComment(
UT_String &comment,
int frame)
const;
129 static int getInfoForFilename(
const char *name,
TIL_Sequence &seq_info,
130 bool override_size =
true,
132 bool use_rgba =
false,
133 bool clearseq =
true,
134 bool coloronly =
false,
135 bool *topfirst = NULL,
139 int lookupRange(
char sepchar,
bool fractional);
140 void removeBadFrames();
141 void reorganizeFractions();
142 void clearBoundsCache();
143 void clearRenderTimesCache();
144 bool prepRenderTimeCache(
int &frame)
const;
147 static int compareFileToRange(
const char *
filename,
void *me);
148 static int checkExist(
const char *
filename,
void *me);
152 int myFileNumberDigits;
162 int myFrameHasFraction;
163 float myFrameFractionScale;
169 bool myUserSpecifiedDigits;
173 mutable UT_Lock myCachedRenderTimesLock;
GT_API const UT_StringHolder filename
const UT_IntArray & getBadFrames() const
GLuint const GLchar * name
bool isSingleFrame() const
Base Integer Rectangle class.
LeafData & operator=(const LeafData &)=delete
bool isTopFirstImage() const
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
IMG_ColorModel getColorModel() const