CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_highlights.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::Highlights; }
41 [[nodiscard]] const char* name() const override { return "Highlights"; }
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
99} // namespace Operations
100
101} // namespace CaptureMoment::Core
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 > &param) 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.
CaptureMoment — footer