29 this->m_inputImageProgram =
nullptr;
36 this->m_limit_range = this->m_limit_max - this->m_limit_min;
38 switch (this->m_limit_method) {
42 const int matte_channel = this->m_matte_channel - 1;
43 const int limit_channel = this->m_limit_channel - 1;
44 this->m_ids[0] = matte_channel;
45 this->m_ids[1] = limit_channel;
46 this->m_ids[2] = limit_channel;
51 switch (this->m_matte_channel) {
82 this->m_inputImageProgram =
nullptr;
93 const float limit_max = this->m_limit_max;
94 const float limit_min = this->m_limit_min;
95 const float limit_range = this->m_limit_range;
97 this->m_inputImageProgram->
readSampled(inColor,
x,
y, sampler);
100 alpha = inColor[this->m_ids[0]] -
MAX2(inColor[this->m_ids[1]], inColor[this->m_ids[2]]);
106 if (
alpha > limit_max) {
109 else if (
alpha < limit_min) {
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
void initExecution() override
void deinitExecution() override
void readSampled(float result[4], float x, float y, PixelSampler sampler)
void addInputSocket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
void addOutputSocket(DataType datatype)
SocketReader * getInputSocketReader(unsigned int inputSocketindex)
static CCL_NAMESPACE_BEGIN const double alpha