This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/v4l-utils.git tree:
Subject: libv4l: take exposure minimum into account when calculating exposure low Author: Hans de Goede <[email protected]> Date: Fri Mar 4 21:09:46 2011 +0100 Take the exposure minimum val into account when calculating the exposure low threshold for sw autogain. Signed-off-by: Hans de Goede <[email protected]> lib/libv4lconvert/processing/autogain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=d7036a26e1e129f4176845156bae56a62e2f0dac diff --git a/lib/libv4lconvert/processing/autogain.c b/lib/libv4lconvert/processing/autogain.c index 3a00b6d..96a4a3a 100644 --- a/lib/libv4lconvert/processing/autogain.c +++ b/lib/libv4lconvert/processing/autogain.c @@ -87,7 +87,7 @@ static int autogain_calculate_lookup_tables( as most exposure controls tend to jump with big steps in the low range, causing oscilation, so we prefer to use gain when exposure has hit this value */ - exposure_low = expoctrl.maximum / 10; + exposure_low = (expoctrl.maximum - expoctrl.minimum) / 10; /* If we have a fine grained exposure control only avoid the last 10 steps */ steps = exposure_low / expoctrl.step; if (steps > 10) _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
