17 return powf(
x, power);
49 fac =
MIN2(1.0f, fac);
50 const float mfac = 1.0f - fac;
52 output[0] = mfac * input_color[0] +
54 output[1] = mfac * input_color[1] +
56 output[2] = mfac * input_color[2] +
58 output[3] = input_color[3];
64 const float *in_factor = p.
ins[0];
65 const float *in_color = p.
ins[1];
66 const float fac =
MIN2(1.0f, in_factor[0]);
67 const float fac_m = 1.0f - fac;
68 p.
out[0] = fac_m * in_color[0] +
70 p.
out[1] = fac_m * in_color[1] +
72 p.
out[2] = fac_m * in_color[2] +
74 p.
out[3] = in_color[3];
_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 execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
SocketReader * input_color_operation_
void update_memory_buffer_row(PixelCursor &p) override
ColorBalanceASCCDLOperation()
void init_execution() override
void deinit_execution() override
SocketReader * input_value_operation_
void add_output_socket(DataType datatype)
SocketReader * get_input_socket_reader(unsigned int index)
NodeOperationFlags flags_
void read_sampled(float result[4], float x, float y, PixelSampler sampler)
void add_input_socket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
void set_canvas_input_index(unsigned int index)
set the index of the input socket that will determine the canvas of this operation
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
ccl_global KernelShaderEvalInput ccl_global float * output
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
float colorbalance_cdl(float in, float offset, float power, float slope)
Array< const float * > ins