From eeca8fe4ccd70e7fdcbe9f4a17fd8b3edc16b9e8 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 3 Sep 2024 22:04:07 +0200 Subject: [PATCH] auto: cleanups --- src/process_pipeline.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/process_pipeline.c b/src/process_pipeline.c index 8cc4b77..0b5cf13 100644 --- a/src/process_pipeline.c +++ b/src/process_pipeline.c @@ -385,7 +385,8 @@ update_control(controlstate *control) static int focus; static int focus_phase; -static void auto_focus_start(void) +static void +auto_focus_start(void) { focus_phase = 0; focus = 0; @@ -398,7 +399,8 @@ struct focus_stats { #define PH_SWEEP 5 #define PH_DONE 6 -static void auto_focus_step(const struct focus_stats *stats) +static void +auto_focus_step(const struct focus_stats *stats) { static uint64_t best_sharp, best_focus; static const int debug = 1; @@ -475,8 +477,9 @@ focus_stats(struct focus_stats *stats, const unsigned int *frame, const int widt stats->sharp = sharp; } -/* This does approximately 1.3 EV steps */ -static void update_exp(controlstate *control, int direction) +/* This does approximately 0.3 EV steps */ +static void +update_exp(controlstate *control, int direction) { int step = 0; int min_step = 4;