13 #ifndef TIL_IMAGESOURCE_H
14 #define TIL_IMAGESOURCE_H
27 #define TIL_GLOBAL_TIME (std::numeric_limits<fpreal>::infinity())
76 setAutomatic(gamma, lut);
78 setManual(gamma, lut);
84 myHoudiniAdjust =
false;
92 myHoudiniAdjust =
true;
98 myMode = CS_OCIO_SPACE;
105 myMode = CS_OCIO_SPACE;
113 myMode = CS_OCIO_DISPLAY_VIEW;
114 myOCIODisplay = display;
116 myOCIOForward = forward;
122 float myGamma = 1.0f;
128 bool myOCIOForward =
true;
129 bool myHoudiniAdjust =
true;
134 void bumpRefCount(
int i);
140 virtual fpreal getGlobalTime() =0;
141 virtual fpreal getSampleRate() =0;
142 virtual fpreal getStartTime() =0;
143 virtual fpreal getEndTime() =0;
150 int getImageIndexFromTime(
fpreal t);
151 int getFrameFromTime(
fpreal t);
180 virtual const char *
getName() = 0;
210 return getSequence(t, getDefaultOptions());
220 virtual void getImageBounds(
const TIL_Plane &plane,
238 virtual int getID()
const = 0;
246 int xstart,
int ystart,
247 int xend,
int yend,
float gamma,
249 bool include_alpha =
false,
250 bool is_interactive =
false,
251 int fxres = 0,
int fyres = 0) = 0;
260 virtual int writeImage(
const char *
filename,
264 const ColorSpace &cspace,
265 void (*info)(
void*,
const char*),
267 bool suppress_summary_dialog,
270 virtual int writeImage(
const char *filename,
276 const ColorSpace &cspace,
277 void (*info)(
void*,
const char*),
279 bool suppress_summary_dialog,
282 virtual void writeImageComplete(
int successcount,
299 virtual void setMouseLocation(
int mx,
int my,
300 float radius = 64.0
f);
305 virtual bool getColorCurves(
const char *planename,
309 bool allnodes,
int comp=-1,
310 bool natural_range =
true,
318 const char *planename,
323 virtual bool hasPixelScript(
int slot)
const;
324 virtual bool runPixelScript(
int px,
int py,
int slot);
328 virtual bool isStereoscopicSource(
fpreal t)
const;
329 virtual int getLeftPlaneIndex(
fpreal t)
const;
330 virtual const char *getLeftPlaneName(
fpreal t)
const;
331 virtual int getRightPlaneIndex(
fpreal t)
const;
332 virtual const char *getRightPlaneName(
fpreal t)
const;
335 virtual int64 getMemoryUsage(
bool inclusive)
const = 0;
385 bool isOpen()
const {
return myOpen; }
virtual bool isConstantSequence() const
virtual STY_StyleSheet * getStyleSheet(int x, int y)
GLenum GLuint GLenum GLsizei const GLchar * buf
GT_API const UT_StringHolder filename
virtual bool getPreferredViewingPlane(UT_WorkBuffer &buf) const
*get result *(waiting if necessary)*A common idiom is to fire a bunch of sub tasks at the and then *wait for them to all complete We provide a helper class
virtual int isAnythingLocked()
virtual void removeSequence()
virtual int getApparentFrame(int fr)
bool adjustColorSpace() const
virtual UT_StringHolder getTopRightCaption() const
virtual int isPlaneLocked(const TIL_Plane *, fpreal)
virtual OP_Node * getOp() const
GLenum GLenum GLsizei void * image
virtual fpreal getFrameTime(fpreal t, bool=false, const TIL_Sequence *=0)
virtual void addFrame(int)
UT_StringHolder myOCIODest
const TIL_Sequence * getSequence(fpreal t)
UT_StringHolder myOCIOLook
UT_Array< TIL_CookRegion > TIL_CookRegionList
virtual bool allowUserSelection() const
UT_StringHolder myOCIODisplay
void setOCIO(const UT_StringHolder &dest, const UT_StringHolder &look=UT_StringHolder())
virtual const TIL_Plane * getPreviewPlane(int)
virtual bool getPriorityCircle(float ¢rex, float ¢rey, float &radius) const
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
virtual fpreal getRenderTime(int frame) const
virtual int doesImageExist(int, bool=true)
GLsizei GLsizei GLchar * source
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
virtual int getFrameShift(int fr, bool=false, const TIL_Sequence *=0)
bool ocioAutomatic() const
virtual void close(short)
GLfloat GLfloat GLfloat alpha
virtual void onAutoUpdate()
virtual int isFrameLocked(fpreal)
GLuint const GLchar * name
virtual int getActualFrame(int frame)
void setManual(float gamma, const UT_StringHolder &lut=UT_StringHolder())
virtual bool isSlowOperation() const
A map of string to various well defined value types.
cl_int getInfo(Func f, cl_uint name, T *param)
UT_StringHolder myOCIOView
virtual OP_Node * getMaterialNode(int x, int y)
void setAutomatic(float gamma, const UT_StringHolder &lut=UT_StringHolder())
virtual UT_Options getDefaultOptions() const
virtual size_t getVersion()
virtual int64 getPeakMemUsage(int frame) const
virtual bool canAddFrame()
virtual void bumpVersion(bool)
class OCIOEXPORT ColorSpace
virtual int open(short &, int=0, fpreal=TIL_GLOBAL_TIME)
GLdouble GLdouble GLdouble y2
void setAutomaticManual(bool convert_space, float gamma, const UT_StringHolder &lut)
virtual void removeFrame(int)
virtual UT_StringHolder getBottomLeftCaption() const
UT_StringHolder myLUTFile
virtual bool getStyleSheetJSON(int x, int y, UT_StringHolder &str)
virtual bool isCachingNeeded(int) const
void setOCIODisplayView(const UT_StringHolder &display, const UT_StringHolder &view, bool forward=true)