浏览代码

auto: cleanups

Pavel Machek 2 月之前
父节点
当前提交
eeca8fe4cc
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/process_pipeline.c

+ 7 - 4
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;