Home
last modified time | relevance | path

Searched refs:exposure (Results 1 – 25 of 68) sorted by relevance

123

/linux/drivers/media/usb/gspca/
H A Dautogain_functions.c22 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()
[all …]
H A Dcpia1.c278 } exposure; member
520 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command()
521 sd->params.exposure.fineExp = gspca_dev->usb_buf[1]; in do_command()
522 sd->params.exposure.coarseExpLo = gspca_dev->usb_buf[2]; in do_command()
523 sd->params.exposure.coarseExpHi = gspca_dev->usb_buf[3]; in do_command()
524 sd->params.exposure.redComp = gspca_dev->usb_buf[4]; in do_command()
525 sd->params.exposure.green1Comp = gspca_dev->usb_buf[5]; in do_command()
526 sd->params.exposure.green2Comp = gspca_dev->usb_buf[6]; in do_command()
527 sd->params.exposure.blueComp = gspca_dev->usb_buf[7]; in do_command()
628 params->exposure.gainMode = 4; in reset_camera_params()
[all …]
H A Dmr97310a.c75 struct v4l2_ctrl *exposure; member
811 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local
817 exposure = (expo * 9267) / 10000 + 300; in setexposure()
818 sensor_write1(gspca_dev, 3, exposure >> 4); in setexposure()
819 sensor_write1(gspca_dev, 4, exposure & 0x0f); in setexposure()
821 exposure = expo; in setexposure()
822 exposure >>= 3; in setexposure()
823 sensor_write1(gspca_dev, 3, exposure >> 8); in setexposure()
824 sensor_write1(gspca_dev, 4, exposure & 0xff); in setexposure()
846 exposure = (60 * 511 * expo) / (8000 * clockdiv); in setexposure()
[all …]
H A Dpac7302.c489 u16 exposure; in setexposure() local
496 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure()
521 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure()
523 exposure = 448 - exposure; in setexposure()
527 reg_w(gspca_dev, 0x0e, exposure & 0xff); in setexposure()
528 reg_w(gspca_dev, 0x0f, exposure >> 8); in setexposure()
584 gspca_dev->exposure->val = PAC7302_EXPOSURE_DEFAULT; in sd_s_ctrl()
609 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
662 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
H A Ddtcs033.c182 struct v4l2_ctrl *exposure; member
206 sd->exposure->val, ctrl->val); in sd_s_ctrl()
224 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls()
236 v4l2_ctrl_cluster(2, &sd->exposure); in dtcs033_init_controls()
H A Dsonixj.c41 u32 exposure; member
1653 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1816 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1821 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1825 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1829 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1833 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1837 sd->exposure = expo_adjust(gspca_dev, expo); in setbrightness()
1954 rexpo[3] = gspca_dev->exposure->val >> 8; in setexposure()
1958 rexpo[3] = gspca_dev->exposure->val; in setexposure()
[all …]
H A Dtopro.c3982 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain()
3986 setexposure(gspca_dev, gspca_dev->exposure->val, in sd_setgain()
4237 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start()
4242 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in cx0342_6800_start()
4457 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start()
4462 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6800_start()
4496 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start()
4501 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start()
4533 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start()
4538 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure), in soi763a_6810_start()
[all …]
H A Dpac207.c214 gspca_dev->exposure->val = PAC207_EXPOSURE_DEFAULT; in sd_s_ctrl()
227 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
229 gspca_dev->exposure->val); in sd_s_ctrl()
259 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
299 v4l2_ctrl_g_ctrl(gspca_dev->exposure)); /* PXCK = 12MHz /n */ in sd_start()
H A Dpac7311.c369 gspca_dev->exposure->val = PAC7311_EXPOSURE_DEFAULT; in sd_s_ctrl()
382 if (gspca_dev->exposure->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
383 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl()
413 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
442 setexposure(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->exposure)); in sd_start()
H A Dnw80x.c1981 if (gspca_dev->exposure->is_new) in sd_s_ctrl()
1983 gspca_dev->exposure->val); in sd_s_ctrl()
1989 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl()
2014 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2026 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
H A Dsn9c20x.c76 struct v4l2_ctrl *exposure; member
1706 set_exposure(gspca_dev, sd->exposure->val); in sd_s_ctrl()
1759 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2055 if (sd->exposure) in sd_start()
2056 set_exposure(gspca_dev, v4l2_ctrl_g_ctrl(sd->exposure)); in sd_start()
2095 s32 cur_exp = v4l2_ctrl_g_ctrl(sd->exposure); in do_autoexposure()
2096 s32 max = sd->exposure->maximum - sd->exposure_step; in do_autoexposure()
2097 s32 min = sd->exposure->minimum + sd->exposure_step; in do_autoexposure()
2114 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure()
2132 v4l2_ctrl_s_ctrl(sd->exposure, new_exp); in do_autoexposure()
H A Dov534_9.c1307 static void setexposure(struct gspca_dev *gspca_dev, s32 exposure) in setexposure() argument
1312 sccb_write(gspca_dev, 0x10, expo[exposure]); /* aec[9:2] */ in setexposure()
1729 if (!ctrl->val && gspca_dev->exposure->is_new) in sd_s_ctrl()
1730 setexposure(gspca_dev, gspca_dev->exposure->val); in sd_s_ctrl()
1766 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
/linux/Documentation/userspace-api/media/drivers/
H A Dvgxy61.rst11 captures of the same scene using two different exposure periods.
19 - The merger outputs a long exposure capture as long as it is not
22 - This involves subtracting the short exposure frame from the long
23 exposure frame.
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-camera.rst24 .. _v4l2-exposure-auto-type:
30 Enables automatic adjustments of the exposure time and/or iris
31 aperture. The effect of manual changes of the exposure time or iris
43 - Automatic exposure time, automatic iris aperture.
45 - Manual exposure time, manual iris.
47 - Manual exposure time, auto iris.
49 - Auto exposure time, manual iris.
54 Determines the exposure time of the camera sensor. The exposure time
66 Determines the automatic exposure compensation, it is effective only
72 Increasing the exposure compensation value is equivalent to
[all …]
/linux/drivers/media/i2c/
H A Dov7251.c146 struct v4l2_ctrl *exposure; member
864 static int ov7251_set_exposure(struct ov7251 *ov7251, s32 exposure) in ov7251_set_exposure() argument
870 val[0] = (exposure & 0xf000) >> 12; /* goes to OV7251_AEC_EXPO_0 */ in ov7251_set_exposure()
871 val[1] = (exposure & 0x0ff0) >> 4; /* goes to OV7251_AEC_EXPO_1 */ in ov7251_set_exposure()
872 val[2] = (exposure & 0x000f) << 4; /* goes to OV7251_AEC_EXPO_2 */ in ov7251_set_exposure()
1032 /* If VBLANK is altered we need to update exposure to compensate */ in ov7251_s_ctrl()
1038 __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_s_ctrl()
1039 ov7251->exposure->minimum, in ov7251_s_ctrl()
1041 ov7251->exposure->step, in ov7251_s_ctrl()
1042 min(ov7251->exposure in ov7251_s_ctrl()
[all...]
H A Dov5640.c414 struct v4l2_ctrl *exposure; member
1752 /* read exposure, in number of line periods */
1774 /* write exposure, given number of line periods */
1775 static int ov5640_set_exposure(struct ov5640_dev *sensor, u32 exposure) in ov5640_set_exposure() argument
1779 exposure <<= 4; in ov5640_set_exposure()
1783 exposure & 0xff); in ov5640_set_exposure()
1788 (exposure >> 8) & 0xff); in ov5640_set_exposure()
1793 (exposure >> 16) & 0x0f); in ov5640_set_exposure()
2147 * exposure calculation
2271 /* exposure reac in ov5640_set_mode_exposure_calc()
[all...]
H A Dov8865.c680 struct v4l2_ctrl *exposure; member
2124 static int ov8865_exposure_configure(struct ov8865_sensor *sensor, u32 exposure) in ov8865_exposure_configure() argument
2128 /* The sensor stores exposure in units of 1/16th of a line */ in ov8865_exposure_configure()
2129 exposure *= 16; in ov8865_exposure_configure()
2132 OV8865_EXPOSURE_CTRL_HH(exposure)); in ov8865_exposure_configure()
2137 OV8865_EXPOSURE_CTRL_H(exposure)); in ov8865_exposure_configure()
2142 OV8865_EXPOSURE_CTRL_L(exposure)); in ov8865_exposure_configure()
2455 /* If VBLANK is altered we need to update exposure to compensate */ in ov8865_s_ctrl()
2461 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ov8865_s_ctrl()
2462 sensor->ctrls.exposure in ov8865_s_ctrl()
[all...]
H A Dov02c10.c383 struct v4l2_ctrl *exposure; member
424 /* Update max exposure while meeting expected vblanking */ in ov02c10_set_ctrl()
426 __v4l2_ctrl_modify_range(ov02c10->exposure, in ov02c10_set_ctrl()
427 ov02c10->exposure->minimum, in ov02c10_set_ctrl()
428 exposure_max, ov02c10->exposure->step, in ov02c10_set_ctrl()
543 ov02c10->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov02c10_ctrl_ops, in ov02c10_init_controls()
H A Dgc05a2.c94 struct v4l2_ctrl *exposure; member
707 ret = __v4l2_ctrl_modify_range(gc05a2->exposure, GC05A2_EXP_MIN, in gc05a2_update_cur_mode_controls()
711 dev_err(gc05a2->dev, "exposure ctrl range update failed\n"); in gc05a2_update_cur_mode_controls()
894 /* Update max exposure while meeting expected vblanking */ in gc05a2_set_ctrl()
896 __v4l2_ctrl_modify_range(gc05a2->exposure, in gc05a2_set_ctrl()
897 gc05a2->exposure->minimum, in gc05a2_set_ctrl()
898 exposure_max, gc05a2->exposure->step, in gc05a2_set_ctrl()
1184 gc05a2->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &gc05a2_ctrl_ops, in gc05a2_init_controls()
H A Dgc08a3.c94 struct v4l2_ctrl *exposure; member
682 ret = __v4l2_ctrl_modify_range(gc08a3->exposure, GC08A3_EXP_MIN, in gc08a3_update_cur_mode_controls()
686 dev_err(gc08a3->dev, "exposure ctrl range update failed\n"); in gc08a3_update_cur_mode_controls()
864 /* Update max exposure while meeting expected vblanking */ in gc08a3_set_ctrl()
866 __v4l2_ctrl_modify_range(gc08a3->exposure, in gc08a3_set_ctrl()
867 gc08a3->exposure->minimum, in gc08a3_set_ctrl()
868 exposure_max, gc08a3->exposure->step, in gc08a3_set_ctrl()
1128 gc08a3->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &gc08a3_ctrl_ops, in gc08a3_init_controls()
H A Dov5675.c510 struct v4l2_ctrl *exposure; member
709 /* Update max exposure while meeting expected vblanking */ in ov5675_set_ctrl()
712 __v4l2_ctrl_modify_range(ov5675->exposure, in ov5675_set_ctrl()
713 ov5675->exposure->minimum, in ov5675_set_ctrl()
714 exposure_max, ov5675->exposure->step, in ov5675_set_ctrl()
735 * for ov5675, the unit of exposure is different from other in ov5675_set_ctrl()
736 * OmniVision sensors, its exposure value is twice of the in ov5675_set_ctrl()
737 * register value, the exposure should be divided by 2 before in ov5675_set_ctrl()
822 ov5675->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
/linux/drivers/media/usb/pwc/
H A Dpwc-v4l.c259 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
271 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
276 pdev->autogain_expo_cluster[2] = pdev->exposure; in pwc_init_controls()
561 pdev->exposure->val = pdev->last_exposure; in pwc_g_volatile_ctrl()
566 &pdev->exposure->val); in pwc_g_volatile_ctrl()
569 pdev->last_exposure = pdev->exposure->val; in pwc_g_volatile_ctrl()
676 if (pdev->exposure->is_new) { in pwc_set_exposure_auto()
679 pdev->exposure->val); in pwc_set_exposure_auto()
715 if (pdev->exposure->is_new) { in pwc_set_autogain_expo()
718 pdev->exposure->val); in pwc_set_autogain_expo()
/linux/drivers/staging/media/atomisp/i2c/
H A Datomisp-ov2722.c289 /* set exposure */ in __ov2722_set_exposure()
325 static int ov2722_set_exposure(struct v4l2_subdev *sd, int exposure, in ov2722_set_exposure() argument
332 ret = __ov2722_set_exposure(sd, exposure, gain, digitgain); in ov2722_set_exposure()
339 struct atomisp_exposure *exposure) in ov2722_s_exposure() argument
341 int exp = exposure->integration_time[0]; in ov2722_s_exposure()
342 int gain = exposure->gain[0]; in ov2722_s_exposure()
343 int digitgain = exposure->gain[1]; in ov2722_s_exposure()
367 /* This returns the exposure time being used. This should only be used
376 /* get exposure */ in ov2722_q_exposure()
435 .name = "exposure",
[all...]
/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_pb0100.c42 struct v4l2_ctrl *exposure; member
93 err = pb0100_set_exposure(gspca_dev, ctrls->exposure->val); in pb0100_s_ctrl()
136 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
/linux/drivers/platform/x86/intel/int1092/
H A DKconfig5 This driver helps to limit the exposure of human body to RF frequency by

123