11 #ifndef TIL_FILE_SEQUENCE_H
12 #define TIL_FILE_SEQUENCE_H
15 #include <sys/types.h>
35 int64 getMemoryUsage(
bool inclusive)
const;
40 int setNewPattern(
const char *filepattern);
45 int override_size = 0,
46 int override_range = 0,
49 bool useframe =
false,
int frame = 0,
51 bool coloronly =
false,
52 bool fractional =
false);
55 bool override_size =
true,
59 bool coloronly =
false);
63 bool getFrameRange(
int &
start,
int &
end,
bool fractional=
false);
67 bool getFilename(
UT_String &name,
int frame = 0x80000000);
69 bool doesFrameExist(
const UT_String &framename)
const;
70 bool doesFrameExist(
int frame)
const;
71 int getClosestFrame(
int to_frame)
const;
72 int getClosestPrevFrame(
int to_frame)
const;
73 int getClosestNextFrame(
int to_frame)
const;
75 int getPlaneIndex(
const char *name)
const;
78 fpreal getPlaneColorSpaceGamma(
int plane_index)
const;
97 bool isMovieFile()
const;
105 bool getFileDigits(
int &digits)
const;
106 void setFileDigits(
int digits);
108 int getFractionFrameIndex(
float frame)
const;
113 fpreal getRenderTime(
int frame)
const;
114 int64 getRenderMemory(
int frame)
const;
117 void markBadFrame(
int frame);
119 void resetBadFrames();
124 void setComment(
const UT_String &comment,
int frame);
125 void getComment(
UT_String &comment,
int frame)
const;
127 static int getInfoForFilename(
const char *name,
TIL_Sequence &seq_info,
128 bool override_size =
true,
130 bool use_rgba =
false,
131 bool clearseq =
true,
132 bool coloronly =
false,
133 bool *topfirst = NULL,
137 int lookupRange(
char sepchar,
bool fractional);
138 void removeBadFrames();
139 void reorganizeFractions();
140 void clearBoundsCache();
141 void clearRenderTimesCache();
142 bool prepRenderTimeCache(
int &frame)
const;
145 static int compareFileToRange(
const char *
filename,
void *me);
146 static int checkExist(
const char *
filename,
void *me);
150 int myFileNumberDigits;
160 int myFrameHasFraction;
161 float myFrameFractionScale;
167 bool myUserSpecifiedDigits;
171 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