/linux-4.4.14/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 29 int avg_lum, gspca_expo_autogain() 46 steps = abs(desired_avg_lum - avg_lum) / deadzone; gspca_expo_autogain() 49 avg_lum, desired_avg_lum, steps); gspca_expo_autogain() 52 if (avg_lum > desired_avg_lum) { gspca_expo_autogain() 111 int avg_lum, gspca_coarse_grained_expo_autogain() 131 steps = (desired_avg_lum - avg_lum) / deadzone; gspca_coarse_grained_expo_autogain() 134 avg_lum, desired_avg_lum, steps); gspca_coarse_grained_expo_autogain() 27 gspca_expo_autogain( struct gspca_dev *gspca_dev, int avg_lum, int desired_avg_lum, int deadzone, int gain_knee, int exposure_knee) gspca_expo_autogain() argument 109 gspca_coarse_grained_expo_autogain( struct gspca_dev *gspca_dev, int avg_lum, int desired_avg_lum, int deadzone) gspca_coarse_grained_expo_autogain() argument
|
H A D | sn9c2028.h | 48 sd->avg_lum = (m[i] << 8) + sd->avg_lum_l; sn9c2028_find_sof()
|
H A D | pac207.c | 74 atomic_t avg_lum; member in struct:sd 335 atomic_set(&sd->avg_lum, -1); sd_start() 357 int avg_lum = atomic_read(&sd->avg_lum); pac207_do_auto_gain() local 359 if (avg_lum == -1) pac207_do_auto_gain() 364 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, pac207_do_auto_gain() 400 atomic_set(&sd->avg_lum, data[needed - 1]); sd_pkt_scan()
|
H A D | sn9c20x.c | 104 atomic_t avg_lum; member in struct:sd 2081 static void do_autoexposure(struct gspca_dev *gspca_dev, u16 avg_lum) do_autoexposure() argument 2094 if (avg_lum < MIN_AVG_LUM) { do_autoexposure() 2113 if (avg_lum > MAX_AVG_LUM) { do_autoexposure() 2132 static void do_autogain(struct gspca_dev *gspca_dev, u16 avg_lum) do_autogain() argument 2137 if (avg_lum < MIN_AVG_LUM && cur_gain < sd->gain->maximum) do_autogain() 2139 if (avg_lum > MAX_AVG_LUM && cur_gain > sd->gain->minimum) do_autogain() 2146 int avg_lum; sd_dqcallback() local 2151 avg_lum = atomic_read(&sd->avg_lum); sd_dqcallback() 2153 do_autogain(gspca_dev, avg_lum); sd_dqcallback() 2155 do_autoexposure(gspca_dev, avg_lum); sd_dqcallback() 2245 int avg_lum, is_jpeg; sd_pkt_scan() local 2252 avg_lum = ((data[35] >> 2) & 3) | sd_pkt_scan() 2255 avg_lum += ((data[35] >> 4) & 3) | sd_pkt_scan() 2258 avg_lum += ((data[35] >> 6) & 3) | sd_pkt_scan() 2261 avg_lum += (data[36] & 3) | sd_pkt_scan() 2264 avg_lum += ((data[36] >> 2) & 3) | sd_pkt_scan() 2267 avg_lum += ((data[36] >> 4) & 3) | sd_pkt_scan() 2270 avg_lum += ((data[36] >> 6) & 3) | sd_pkt_scan() 2273 avg_lum += ((data[44] >> 4) & 3) | sd_pkt_scan() 2276 avg_lum >>= 9; sd_pkt_scan() 2277 atomic_set(&sd->avg_lum, avg_lum); sd_pkt_scan()
|
H A D | pac7311.c | 85 atomic_t avg_lum; member in struct:sd 479 atomic_set(&sd->avg_lum, -1); sd_start() 505 int avg_lum = atomic_read(&sd->avg_lum); do_autogain() local 508 if (avg_lum == -1) do_autogain() 516 else if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, do_autogain() 611 atomic_set(&sd->avg_lum, data[-lum_offset] + sd_pkt_scan() 614 atomic_set(&sd->avg_lum, -1); sd_pkt_scan()
|
H A D | sonixb.c | 44 0x1c auto_exposure area (for avg_lum) startx (startx = register-value * 32) 45 0x1d auto_exposure area (for avg_lum) starty (starty = register-value * 32) 46 0x1e auto_exposure area (for avg_lum) stopx (hsize = (0x1e - 0x1c) * 32) 47 0x1f auto_exposure area (for avg_lum) stopy (vsize = (0x1f - 0x1d) * 32) 66 atomic_t avg_lum; member in struct:sd 886 int deadzone, desired_avg_lum, avg_lum; do_autogain() local 888 avg_lum = atomic_read(&sd->avg_lum); do_autogain() 889 if (avg_lum == -1) do_autogain() 898 different avg_lum values for the same picture brightness */ do_autogain() 912 if (gspca_coarse_grained_expo_autogain(gspca_dev, avg_lum, do_autogain() 917 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_avg_lum, do_autogain() 1243 atomic_set(&sd->avg_lum, -1); sd_start() 1375 atomic_set(&sd->avg_lum, lum); sd_pkt_scan()
|
H A D | gspca.h | 235 int gspca_expo_autogain(struct gspca_dev *gspca_dev, int avg_lum, 238 int avg_lum, int desired_avg_lum, int deadzone);
|
H A D | sn9c2028.c | 39 int avg_lum; member in struct:sd 844 sd->avg_lum = -1; sd_start() 865 static void do_autogain(struct gspca_dev *gspca_dev, int avg_lum) do_autogain() argument 870 if (avg_lum == -1) do_autogain() 873 if (avg_lum < MIN_AVG_LUM) { do_autogain() 879 if (avg_lum > MAX_AVG_LUM) { do_autogain() 895 do_autogain(gspca_dev, sd->avg_lum); sd_dqcallback()
|
H A D | pac7302.c | 136 atomic_t avg_lum; member in struct:sd 712 atomic_set(&sd->avg_lum, 270 + sd->brightness->val); sd_start() 741 int avg_lum = atomic_read(&sd->avg_lum); do_autogain() local 753 if (gspca_expo_autogain(gspca_dev, avg_lum, desired_lum, do_autogain() 829 atomic_set(&sd->avg_lum, data[-lum_offset] + sd_pkt_scan()
|
H A D | sonixj.c | 38 atomic_t avg_lum; member in struct:sd 2595 delta = atomic_read(&sd->avg_lum); do_autogain() 2653 int avg_lum; set_lum() local 2659 avg_lum = (data[27] << 8) + data[28] /* w3 */ set_lum() 2668 avg_lum >>= 10; set_lum() 2669 atomic_set(&sd->avg_lum, avg_lum); set_lum()
|