Searched refs:avg_lum (Results 1 – 9 of 9) sorted by relevance
/linux-3.4.99/drivers/media/video/gspca/ |
D | autogain_functions.h | 28 int avg_lum, in auto_gain_n_exposure() argument 43 steps = abs(desired_avg_lum - avg_lum) / deadzone; in auto_gain_n_exposure() 46 avg_lum, desired_avg_lum, steps); in auto_gain_n_exposure() 49 if (avg_lum > desired_avg_lum) { in auto_gain_n_exposure() 112 int avg_lum, in coarse_grained_expo_autogain() argument 131 steps = (desired_avg_lum - avg_lum) / deadzone; in coarse_grained_expo_autogain() 134 avg_lum, desired_avg_lum, steps); in coarse_grained_expo_autogain()
|
D | sn9c20x.c | 102 atomic_t avg_lum; member 2148 static void do_autoexposure(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autoexposure() argument 2158 if (avg_lum < MIN_AVG_LUM) { in do_autoexposure() 2178 if (avg_lum > MAX_AVG_LUM) { in do_autoexposure() 2198 static void do_autogain(struct gspca_dev *gspca_dev, u16 avg_lum) in do_autogain() argument 2202 if (avg_lum < MIN_AVG_LUM) { in do_autogain() 2208 if (avg_lum > MAX_AVG_LUM) { in do_autogain() 2219 int avg_lum; in sd_dqcallback() local 2224 avg_lum = atomic_read(&sd->avg_lum); in sd_dqcallback() 2226 do_autogain(gspca_dev, avg_lum); in sd_dqcallback() [all …]
|
D | pac207.c | 70 atomic_t avg_lum; member 310 atomic_set(&sd->avg_lum, -1); in sd_start() 327 int avg_lum = atomic_read(&sd->avg_lum); in pac207_do_auto_gain() local 329 if (avg_lum == -1) in pac207_do_auto_gain() 334 else if (gspca_auto_gain_n_exposure(gspca_dev, avg_lum, in pac207_do_auto_gain() 371 atomic_set(&sd->avg_lum, data[needed - 1]); in sd_pkt_scan()
|
D | pac7311.c | 77 atomic_t avg_lum; member 521 atomic_set(&sd->avg_lum, -1); in sd_start() 555 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 558 if (avg_lum == -1) in do_autogain() 566 else if (gspca_auto_gain_n_exposure(gspca_dev, avg_lum, desired_lum, in do_autogain() 659 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan() 662 atomic_set(&sd->avg_lum, -1); in sd_pkt_scan()
|
D | pac7302.c | 105 atomic_t avg_lum; member 706 atomic_set(&sd->avg_lum, 270 + sd->ctrls[BRIGHTNESS].val); in sd_start() 740 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 752 auto_gain_n_exposure(gspca_dev, avg_lum, desired_lum, in do_autogain() 824 atomic_set(&sd->avg_lum, data[-lum_offset] + in sd_pkt_scan()
|
D | sonixb.c | 75 atomic_t avg_lum; member 1009 int avg_lum = atomic_read(&sd->avg_lum); in do_autogain() local 1012 avg_lum == -1 || !sd->ctrls[AUTOGAIN].val) in do_autogain() 1032 result = coarse_grained_expo_autogain(gspca_dev, avg_lum, in do_autogain() 1037 result = auto_gain_n_exposure(gspca_dev, avg_lum, in do_autogain() 1245 atomic_set(&sd->avg_lum, -1); in sd_start() 1377 atomic_set(&sd->avg_lum, lum); in sd_pkt_scan()
|
D | sonixj.c | 59 atomic_t avg_lum; member 2824 delta = atomic_read(&sd->avg_lum); in do_autogain() 2882 int avg_lum; in set_lum() local 2888 avg_lum = (data[27] << 8) + data[28] /* w3 */ in set_lum() 2897 avg_lum >>= 10; in set_lum() 2898 atomic_set(&sd->avg_lum, avg_lum); in set_lum()
|
D | gspca.h | 235 int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum,
|
D | gspca.c | 2511 int gspca_auto_gain_n_exposure(struct gspca_dev *gspca_dev, int avg_lum, in gspca_auto_gain_n_exposure() argument 2546 steps = abs(desired_avg_lum - avg_lum) / deadzone; in gspca_auto_gain_n_exposure() 2549 avg_lum, desired_avg_lum, steps); in gspca_auto_gain_n_exposure() 2552 if (avg_lum > desired_avg_lum) { in gspca_auto_gain_n_exposure()
|