41 [[nodiscard]]
const char*
name()
const override {
return "Highlights"; }
90 const Halide::Func& input_func,
94 const Halide::Param<float>& param
Interface for providing the Halide fusion logic of an operation.
Adjusts the highlight tones of an image region.
static constexpr float MAX_HIGHLIGHTS_VALUE
Maximum allowed highlights value. Defined by OperationRanges::getHighlightsMaxValue().
const char * name() const override
Gets the constant name of the operation.
static constexpr float MIN_HIGHLIGHTS_VALUE
Minimum allowed highlights value. Defined by OperationRanges::getHighlightsMinValue().
Halide::Func appendToFusedPipeline(const Halide::Func &input_func, const Halide::Var &x, const Halide::Var &y, const Halide::Var &c, const Halide::Param< float > ¶m) const override
Appends this operation's logic to a fused Halide pipeline. This method is used by the PipelineBuilder...
static constexpr float DEFAULT_HIGHLIGHTS_VALUE
Default highlights value. Defined by OperationRanges::getHighlightsDefaultValue().
OperationType type() const override
Gets the unique type identifier of the operation.
Interface for providing the Halide fusion logic of an operation.
OperationType
Identifies the type of an image processing operation.
@ Highlights
Highlights adjustment. Adjusts the luminosity of the brightest areas of the image....
Manages the lifecycle of a single IWorkingImage instance.
Declaration of the OperationRanges struct.
static consteval float getHighlightsDefaultValue()
Gets the default value for the Highlights operation.
static consteval float getHighlightsMinValue()
Gets the minimum allowed value for the Highlights operation.
static consteval float getHighlightsMaxValue()
Gets the maximum allowed value for the Highlights operation.