9 #ifndef __COP2_Python_h__
10 #define __COP2_Python_h__
35 COP2_Context &,
int &maxp,
int &maxn,
int &op)
const override;
45 float copTimeTransform(
52 {
return myCookContext != NULL; }
56 bool getInputPlaneWhileCookingFromPython(
57 std::vector<float> &
result,
int input_index,
const char *plane_name,
58 const char *component,
bool interleaved,
UT_WorkBuffer &error_message);
62 bool getInputPlaneWhileCookingFromPython(
67 bool setOutputPlaneWhileCookingFromPython(
69 const char *component,
bool interleaved,
bool flip_vertically,
79 void copySequenceInfoFromFirstInput();
80 void matchFrameRangeOfInputs();
81 float timeToCookInput(
int input_index,
float time);
84 void runPythonToGetPlanesToCook();
85 TIL_Plane *addPlaneToSequence(
const char *name);
86 void runPythonToOverrideFrameRange();
87 void runPythonToOverrideResolution();
89 void buildRequiredInputPlanes();
90 void runPythonToGetRequiredInputPlanes(
const TIL_Plane &output_plane);
93 void clearComponentsNotWrittenTo();
95 bool runFunctionInsidePythonCookCode(
96 const char *function_name,
const char *parms_tuple,
99 bool hasFunctionInsidePythonCookCode(
const char *function_name);
100 bool ensurePythonCookCodeHasRun();
102 bool isValidInputPlaneForOutputPlane(
103 const char *output_plane_name,
105 const char *input_plane_name);
107 template <
typename T>
108 bool templatedGetInputPlaneWhileCookingFromPython(
109 T &
result,
int input_index,
const char *plane_name,
110 const char *component,
TIL_DataFormat til_format,
bool interleaved,
113 void addPythonError(
const char *
message,
115 void addPythonWarning(
const char *
message,
126 std::vector<UT_Tuple<int, std::string> > myInputIndicesAndPlanes;
131 std::map<std::string, PlaneToCook> myPlanesToCook;
GLuint GLsizei const GLchar * message
virtual bool isSlowOperation() const
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
**But if you need a result
virtual OP_ERROR cookMyTile(COP2_Context &context, TIL_TileList *tiles)
virtual void getMaxNumThreadsInCook(COP2_Context &, int &plane, int &node, int &op) const
#define PLANE_MAX_VECTOR_SIZE
GLuint const GLchar * name
virtual bool isTimeModifier() const
bool isCookingThisNode() const
virtual void computeImageBounds(COP2_Context &context)
GLenum GLsizei GLsizei GLint * values
virtual void getInputDependenciesForOutputArea(COP2_CookAreaInfo &output_area, const COP2_CookAreaList &input_areas, COP2_CookAreaList &needed_areas)
virtual TIL_Sequence * cookSequenceInfo(OP_ERROR &error)=0