CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
operation_ranges.h
Go to the documentation of this file.
1
9#pragma once
10
12
20
21 // --- Brightness Operation Ranges and Default ---
26 [[nodiscard]] consteval static float getBrightnessMinValue() {
27 return -1.0f;
28 }
29
34 [[nodiscard]] consteval static float getBrightnessMaxValue() {
35 return 1.0f;
36 }
37
42 [[nodiscard]] consteval static float getBrightnessDefaultValue() {
43 return 0.0f;
44 }
45
46 // --- Contrast Operation Ranges and Default ---
51 [[nodiscard]] consteval static float getContrastMinValue() {
52 return 0.0f;
53 }
54
59 [[nodiscard]] consteval static float getContrastMaxValue() {
60 return 2.0f;
61 }
62
67 [[nodiscard]] consteval static float getContrastDefaultValue() {
68 return 1.0f;
69 }
70
71 // --- Highlights Operation Ranges and Default ---
76 [[nodiscard]] consteval static float getHighlightsMinValue() {
77 return -1.0f;
78 }
79
84 [[nodiscard]] consteval static float getHighlightsMaxValue() {
85 return 1.0f;
86 }
87
92 [[nodiscard]] consteval static float getHighlightsDefaultValue() {
93 return 0.0f;
94 }
95
96 // --- Shadows Operation Ranges and Default ---
101 [[nodiscard]] consteval static float getShadowsMinValue() {
102 return -1.0f;
103 }
104
109 [[nodiscard]] consteval static float getShadowsMaxValue() {
110 return 1.0f;
111 }
112
117 [[nodiscard]] consteval static float getShadowsDefaultValue() {
118 return 0.0f;
119 }
120
121 // --- Whites Operation Ranges and Default ---
126 [[nodiscard]] consteval static float getWhitesMinValue() {
127 return -1.0f;
128 }
129
134 [[nodiscard]] consteval static float getWhitesMaxValue() {
135 return 1.0f;
136 }
137
142 [[nodiscard]] consteval static float getWhitesDefaultValue() {
143 return 0.0f;
144 }
145
146 // --- Blacks Operation Ranges and Default ---
151 [[nodiscard]] consteval static float getBlacksMinValue() {
152 return -1.0f;
153 }
154
159 [[nodiscard]] consteval static float getBlacksMaxValue() {
160 return 1.0f;
161 }
162
167 [[nodiscard]] consteval static float getBlacksDefaultValue() {
168 return 0.0f;
169 }
170
171};
172
173} // namespace CaptureMoment::Core::Operations
Centralized definition of value ranges and default values for different operations using consteval....
static consteval float getBlacksMinValue()
Gets the minimum allowed value for the Blacks operation.
static consteval float getBrightnessMaxValue()
Gets the maximum allowed value for the Brightness operation.
static consteval float getContrastMinValue()
Gets the minimum allowed value for the Contrast operation.
static consteval float getBrightnessMinValue()
Gets the minimum allowed value for the Brightness operation.
static consteval float getShadowsMaxValue()
Gets the maximum allowed value for the Shadows operation.
static consteval float getContrastDefaultValue()
Gets the default value for the Contrast operation.
static consteval float getHighlightsDefaultValue()
Gets the default value for the Highlights operation.
static consteval float getShadowsDefaultValue()
Gets the default value for the Shadows operation.
static consteval float getHighlightsMinValue()
Gets the minimum allowed value for the Highlights operation.
static consteval float getShadowsMinValue()
Gets the minimum allowed value for the Shadows operation.
static consteval float getBrightnessDefaultValue()
Gets the default value for the Brightness operation.
static consteval float getBlacksMaxValue()
Gets the maximum allowed value for the Blacks operation.
static consteval float getWhitesDefaultValue()
Gets the default value for the Whites operation.
static consteval float getBlacksDefaultValue()
Gets the default value for the Blacks operation.
static consteval float getWhitesMinValue()
Gets the minimum allowed value for the Whites operation.
static consteval float getHighlightsMaxValue()
Gets the maximum allowed value for the Highlights operation.
static consteval float getWhitesMaxValue()
Gets the maximum allowed value for the Whites operation.
static consteval float getContrastMaxValue()
Gets the maximum allowed value for the Contrast operation.
CaptureMoment — footer