41 [[nodiscard]]
const char*
name()
const override {
return "Shadows"; }
90 const Halide::Func& input_func,
94 const Halide::Param<float>& param
Interface for providing the Halide fusion logic of an operation.
Adjusts the shadow tones of an image region.
static constexpr float DEFAULT_SHADOWS_VALUE
Default shadows value. Defined by OperationRanges::getShadowsDefaultValue().
OperationType type() const override
Gets the unique type identifier of the operation.
static constexpr float MAX_SHADOWS_VALUE
Maximum allowed shadows value. Defined by OperationRanges::getShadowsMaxValue().
static constexpr float MIN_SHADOWS_VALUE
Minimum allowed shadows value. Defined by OperationRanges::getShadowsMinValue().
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...
const char * name() const override
Gets the constant name of the operation.
Interface for providing the Halide fusion logic of an operation.
OperationType
Identifies the type of an image processing operation.
@ Shadows
Shadows adjustment. Adjusts the luminosity of the darkest areas of the image. Increasing shadows brig...
Manages the lifecycle of a single IWorkingImage instance.
Declaration of the OperationRanges struct.
static consteval float getShadowsMaxValue()
Gets the maximum allowed value for the Shadows operation.
static consteval float getShadowsDefaultValue()
Gets the default value for the Shadows operation.
static consteval float getShadowsMinValue()
Gets the minimum allowed value for the Shadows operation.