Lines Matching full:exposure

9 /* auto gain and exposure algorithm based on the knee algorithm described here:
12 Returns 0 if no changes were made, 1 if the gain and or exposure settings
22 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local
29 orig_exposure = exposure = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in gspca_expo_autogain()
42 else if (exposure > exposure_knee) in gspca_expo_autogain()
43 exposure--; in gspca_expo_autogain()
46 else if (exposure > gspca_dev->exposure->minimum) in gspca_expo_autogain()
47 exposure--; in gspca_expo_autogain()
55 else if (exposure < exposure_knee) in gspca_expo_autogain()
56 exposure++; in gspca_expo_autogain()
59 else if (exposure < gspca_dev->exposure->maximum) in gspca_expo_autogain()
60 exposure++; in gspca_expo_autogain()
72 if (exposure != orig_exposure) { in gspca_expo_autogain()
73 v4l2_ctrl_s_ctrl(gspca_dev->exposure, exposure); in gspca_expo_autogain()
79 gain, exposure); in gspca_expo_autogain()
84 /* Autogain + exposure algorithm for cameras with a coarse exposure control
85 (usually this means we can only control the clockdiv to change exposure)
87 example, will lead to a huge exposure change (it effectively doubles),
89 80 %) and if that does not help, only then changes exposure. This leads
91 certain points of the knee graph will only try to adjust exposure,
92 which leads to oscillating as one exposure step is huge.
94 Returns 0 if no changes were made, 1 if the gain and or exposure settings
102 s32 gain_low, gain_high, gain, orig_gain, exposure, orig_exposure; in gspca_coarse_grained_expo_autogain() local
109 orig_exposure = exposure = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in gspca_coarse_grained_expo_autogain()
124 exposure < gspca_dev->exposure->maximum) { in gspca_coarse_grained_expo_autogain()
129 exposure > gspca_dev->exposure->minimum) { in gspca_coarse_grained_expo_autogain()
144 exposure--; in gspca_coarse_grained_expo_autogain()
147 exposure++; in gspca_coarse_grained_expo_autogain()
155 if (exposure != orig_exposure) { in gspca_coarse_grained_expo_autogain()
156 v4l2_ctrl_s_ctrl(gspca_dev->exposure, exposure); in gspca_coarse_grained_expo_autogain()
162 gain, exposure); in gspca_coarse_grained_expo_autogain()