libv4l: avoid overshooting when doing autogain
authorHans de Goede <hdegoede@redhat.com>
Thu, 1 Oct 2009 10:04:14 +0000 (12:04 +0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 24 Feb 2010 00:44:39 +0000 (21:44 -0300)
commitbfcdf2f99d4c6ce3c507f820d2325c27a60c4f98
tree59c539e6b056ecfe3409b2159621f2a6321c2c9a
parent72204b120fad2e21cdf3f670abdfdc3c4b89e975
libv4l: avoid overshooting when doing autogain

If we were decreasing gain/expo and change to increasing, or vica versa,
half the number of steps to avoid overshooting and oscilating.

Priority: normal

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
lib/libv4lconvert/processing/autogain.c
lib/libv4lconvert/processing/libv4lprocessing-priv.h