CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_whites.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::Whites; }
41 [[nodiscard]] const char* name() const override { return "Whites"; }
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 white point of an image region.
const char * name() const override
Gets the constant name of the operation.
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 MIN_WHITES_VALUE
Minimum allowed whites value. Defined by OperationRanges::getWhitesMinValue().
static constexpr float MAX_WHITES_VALUE
Maximum allowed whites value. Defined by OperationRanges::getWhitesMaxValue().
OperationType type() const override
Gets the unique type identifier of the operation.
static constexpr float DEFAULT_WHITES_VALUE
Default whites value. Defined by OperationRanges::getWhitesDefaultValue().
Interface for providing the Halide fusion logic of an operation.
OperationType
Identifies the type of an image processing operation.
@ Whites
Whites adjustment. Adjusts the luminosity of the white point of the image. Increasing whites makes th...
Manages the lifecycle of a single IWorkingImage instance.
Declaration of the OperationRanges struct.
static consteval float getWhitesDefaultValue()
Gets the default value for the Whites operation.
static consteval float getWhitesMinValue()
Gets the minimum allowed value for the Whites operation.
static consteval float getWhitesMaxValue()
Gets the maximum allowed value for the Whites operation.
CaptureMoment — footer