auto: cleanups
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user