9 #ifndef __HOM_Cop2Node_h__
10 #define __HOM_Cop2Node_h__
37 virtual bool isBypassed() = 0;
38 virtual void bypass(
bool on) = 0;
39 virtual bool isDisplayFlagSet() = 0;
40 virtual void setDisplayFlag(
bool on) = 0;
41 virtual bool isRenderFlagSet() = 0;
42 virtual void setRenderFlag(
bool on) = 0;
43 virtual bool isTemplateFlagSet() = 0;
44 virtual void setTemplateFlag(
bool on) = 0;
45 virtual bool isCompressFlagSet() = 0;
46 virtual void setCompressFlag(
bool on) = 0;
48 virtual std::vector<std::string> planes() = 0;
49 virtual std::vector<std::string> components(
const char *plane) = 0;
51 virtual int maskInputIndex() = 0;
54 virtual std::vector<float> getPixelByUV(
const char *plane,
55 double u,
double v,
const char *component=NULL,
56 bool interpolate=
true) = 0;
58 SWIGOUT(%kwargs getPixelHSVByUV);
59 virtual std::vector<float> getPixelHSVByUV(
60 double u,
double v,
bool interpolate=
true) = 0;
62 SWIGOUT(%kwargs getPixelLuminanceByUV);
63 virtual float getPixelLuminanceByUV(
64 double u,
double v,
bool interpolate=
true) = 0;
67 virtual std::vector<float> allPixels(
68 const char *plane=
"C",
const char *component=NULL,
69 bool interleaved=
true,
double time=-1.0) = 0;
70 SWIGOUT(%kwargs allPixelsAsString);
72 const char *plane=
"C",
const char *component=NULL,
75 SWIGOUT(%kwargs setPixelsOfCookingPlane);
76 virtual void setPixelsOfCookingPlane(
77 const std::vector<float> &
values,
78 const char *component=NULL,
bool interleaved=
true,
79 bool flip_vertically=
false) = 0;
81 virtual void opaqueSetPixelsOfCookingPlaneFromString(
83 const char *component=NULL,
bool interleaved=
true,
87 virtual std::vector<int> imageBounds(
const char *plane=
"C") = 0;
88 virtual int xRes() = 0;
89 virtual int yRes() = 0;
91 virtual double sequenceStartFrame() = 0;
92 virtual double sequenceEndFrame() = 0;
93 virtual double sequenceFrameLength() = 0;
95 virtual bool isSingleImage() = 0;
97 virtual void saveImage(
const char *file_name,
98 const std::vector<int> &frame_range = std::vector<int>()) = 0;
100 virtual bool hasMetaData(
const char *metadata_name) = 0;
102 virtual int getMetaDataInt(
const char *metadata_name,
int index = 0) = 0;
104 virtual double getMetaDataFloat(
const char *metadata_name,
int index = 0) = 0;
106 virtual std::string getMetaDataString(
const char *metadata_name) = 0;
108 virtual std::vector<int> getMetaDataIntArray(
const char *metadata_name) = 0;
110 virtual std::vector<double> getMetaDataFloatArray(
const char *metadata_name) = 0;
115 %kwargs setPixelsOfCookingPlaneFromString;
116 void setPixelsOfCookingPlaneFromString(
117 InterpreterObject
values,
const char *component=NULL,
119 bool flip_vertically=
false) = 0
122 self->opaqueSetPixelsOfCookingPlaneFromString(
124 component, interleaved,
depth, flip_vertically);
#define HOM_DESTRUCT_OBJECT(pointer)
HOM_Cop2Node(const HOM_Cop2Node &cop_node)
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
GLuint GLsizei GLsizei * length
string __repr__(VtArray< T > const &self)
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER IMFUTIL_EXPORT void saveImage(const std::string &fileName, const Header &hdr, const Image &img, DataWindowSource dws=USE_IMAGE_DATA_WINDOW)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
GLint GLint GLsizei GLsizei GLsizei depth
GLenum GLsizei GLsizei GLint * values
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)