Compare commits

...

5 Commits

Author SHA1 Message Date
jarianc
a1cc4d2e27 Merge pull request 'fix(#16): remove panic = abort to enable backtraces' (#29) from fix/issue-16 into master
Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / security (push) Has been cancelled
CI / build-result (push) Has been cancelled
2026-07-05 09:52:46 -05:00
opencode
09e02f93c9 fix(#16): remove panic = abort to enable backtraces in release 2026-07-05 14:52:33 +00:00
jarianc
b34b6e4ffb Merge pull request 'fix(#15): convert EV stops to brightness multiplier (2^exposure)' (#28) from fix/issue-15 into master 2026-07-05 09:52:26 -05:00
opencode
70d925a46b fix(#15): convert EV stops to brightness multiplier for libraw_set_bright 2026-07-05 14:52:05 +00:00
jarianc
ec60c2b598 Merge pull request 'fix(#14): add LibRawGuard RAII Drop guard for memory cleanup' (#27) from fix/issue-14 into master 2026-07-05 09:51:53 -05:00
2 changed files with 3 additions and 2 deletions

View File

@ -18,4 +18,3 @@ path = "src/main.rs"
opt-level = "z" # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1
panic = "abort"

View File

@ -362,7 +362,9 @@ fn apply_image_parameters(lr: *mut libraw_data_t, args: &Args) {
// Apply exposure adjustment
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)