Compare commits
5 Commits
fix/issue-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1cc4d2e27 | ||
|
|
09e02f93c9 | ||
|
|
b34b6e4ffb | ||
|
|
70d925a46b | ||
|
|
ec60c2b598 |
@ -18,4 +18,3 @@ path = "src/main.rs"
|
|||||||
opt-level = "z" # Optimize for size
|
opt-level = "z" # Optimize for size
|
||||||
lto = true # Enable link-time optimization
|
lto = true # Enable link-time optimization
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
panic = "abort"
|
|
||||||
|
|||||||
@ -362,7 +362,9 @@ fn apply_image_parameters(lr: *mut libraw_data_t, args: &Args) {
|
|||||||
|
|
||||||
// Apply exposure adjustment
|
// Apply exposure adjustment
|
||||||
if args.exposure != 0.0 && !lr.is_null() {
|
if args.exposure != 0.0 && !lr.is_null() {
|
||||||
libraw_set_bright(lr, args.exposure);
|
// Convert EV stops to brightness multiplier: EV 1.0 → 2x, EV -1.0 → 0.5x
|
||||||
|
let multiplier = 2.0f32.powf(args.exposure);
|
||||||
|
libraw_set_bright(lr, multiplier);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply contrast (map to brightness multiplier for tonal range)
|
// Apply contrast (map to brightness multiplier for tonal range)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user