CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_blacks.h
Go to the documentation of this file.
1
8#pragma once
11
12namespace CaptureMoment::Core {
13
14namespace Operations {
34{
35public:
36 // --- Metadata ---
37 [[nodiscard]] OperationType type() const override { return OperationType::Blacks; }
38 [[nodiscard]] const char* name() const override { return "Blacks"; }
39
40 // --- Range Access (via the centralized ranges) ---
46
52
58
86 [[nodiscard]] Halide::Func appendToFusedPipeline(
87 const Halide::Func& input_func,
88 const Halide::Var& x,
89 const Halide::Var& y,
90 const Halide::Var& c,
91 const Halide::Param<float>& param
92 ) const override;
93};
94
95} // namespace Operations
96
97} // namespace CaptureMoment::Core
Interface for providing the Halide fusion logic of an operation.
Adjusts the black point of an image region.
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...
OperationType type() const override
Gets the unique type identifier of the operation.
static constexpr float MAX_BLACKS_VALUE
Maximum allowed blacks value. Defined by OperationRanges::getBlacksMaxValue().
const char * name() const override
Gets the constant name of the operation.
static constexpr float MIN_BLACKS_VALUE
Minimum allowed blacks value. Defined by OperationRanges::getBlacksMinValue().
static constexpr float DEFAULT_BLACKS_VALUE
Default blacks value. Defined by OperationRanges::getBlacksDefaultValue().
Interface for providing the Halide fusion logic of an operation.
OperationType
Identifies the type of an image processing operation.
@ Blacks
Blacks adjustment. Adjusts the luminosity of the black point of the image. Increasing blacks makes th...
Manages the lifecycle of a single IWorkingImage instance.
Declaration of the OperationRanges struct.
static consteval float getBlacksMinValue()
Gets the minimum allowed value for the Blacks operation.
static consteval float getBlacksMaxValue()
Gets the maximum allowed value for the Blacks operation.
static consteval float getBlacksDefaultValue()
Gets the default value for the Blacks operation.
CaptureMoment — footer