CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_shadows.h
Go to the documentation of this file.
1
8#pragma once
11
12namespace CaptureMoment::Core {
13
14namespace Operations {
37{
38public:
39 // --- Metadata ---
40 [[nodiscard]] OperationType type() const override { return OperationType::Shadows; }
41 [[nodiscard]] const char* name() const override { return "Shadows"; }
42
43 // --- Range Access (via the centralized ranges) ---
49
55
61
89 [[nodiscard]] Halide::Func appendToFusedPipeline(
90 const Halide::Func& input_func,
91 const Halide::Var& x,
92 const Halide::Var& y,
93 const Halide::Var& c,
94 const Halide::Param<float>& param
95 ) const override;
96};
97
98} // namespace Operations
99
100} // namespace CaptureMoment::Core
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 > &param) 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.
CaptureMoment — footer