36 const float threshold = settings_->
threshold;
41 hsva.z =
math::max(0.0f, hsva.z - threshold);
void hsv_to_rgb_v(const float hsv[3], float r_rgb[3])
void rgb_to_hsv_v(const float rgb[3], float r_hsv[3])
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
#define CLAMP3_MIN(vec, b)
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void determine_canvas(const rcti &preferred_area, rcti &r_area) override
GlareThresholdOperation()
a MemoryBuffer contains access to the data
void add_output_socket(DataType datatype)
NodeOperationFlags flags_
void add_input_socket(DataType datatype, ResizeMode resize_mode=ResizeMode::Center)
virtual void determine_canvas(const rcti &preferred_area, rcti &r_area)
@ FitAny
Fit the width or the height of the input image to the width or height of the working area of the node...
typename BuffersIteratorBuilder< T >::Iterator BuffersIterator
T max(const T &a, const T &b)