Compare commits
No commits in common. "master" and "fix/issue-14" have entirely different histories.
master
...
fix/issue-
@ -18,3 +18,4 @@ path = "src/main.rs"
|
||||
opt-level = "z" # Optimize for size
|
||||
lto = true # Enable link-time optimization
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
||||
@ -362,9 +362,7 @@ fn apply_image_parameters(lr: *mut libraw_data_t, args: &Args) {
|
||||
|
||||
// Apply exposure adjustment
|
||||
if args.exposure != 0.0 && !lr.is_null() {
|
||||
// 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);
|
||||
libraw_set_bright(lr, args.exposure);
|
||||
}
|
||||
|
||||
// Apply contrast (map to brightness multiplier for tonal range)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user