Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/drivers/media/usb/gspca/
A Dautogain_functions.c43 exposure--; in gspca_expo_autogain()
46 else if (exposure > gspca_dev->exposure->minimum) in gspca_expo_autogain()
47 exposure--; in gspca_expo_autogain()
56 exposure++; in gspca_expo_autogain()
59 else if (exposure < gspca_dev->exposure->maximum) in gspca_expo_autogain()
73 v4l2_ctrl_s_ctrl(gspca_dev->exposure, exposure); in gspca_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()
[all …]
A Dcpia1.c277 } exposure; member
629 params->exposure.gainMode = 4; in reset_camera_params()
631 params->exposure.compMode = 1; in reset_camera_params()
633 params->exposure.gain = 0; in reset_camera_params()
634 params->exposure.fineExp = 0; in reset_camera_params()
841 sd->params.exposure.gain, in command_setexposure()
857 sd->params.exposure.gain, in command_setexposure()
1032 sd->params.exposure.gain = 0; in set_flicker()
1088 ++sd->params.exposure.gain; in set_flicker()
1343 --sd->params.exposure.gain; in monitor_exposure()
[all …]
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()
821 exposure = expo; in setexposure()
822 exposure >>= 3; in setexposure()
847 if (exposure > 511) in setexposure()
848 exposure = 511; in setexposure()
851 exposure = 511 - exposure; in setexposure()
853 buf[0] = exposure & 0xff; in setexposure()
854 buf[1] = exposure >> 8; in setexposure()
[all …]
A Dsonixb.c687 u16 reg = gspca_dev->exposure->val; in setexposure()
699 u8 reg = gspca_dev->exposure->val; in setexposure()
751 reg10 = (gspca_dev->exposure->val * 15 * reg10_max) in setexposure()
796 if (gspca_dev->exposure->val < 200) { in setexposure()
804 framerate_ctrl = (gspca_dev->exposure->val - 200) in setexposure()
826 if (gspca_dev->exposure->val < 150) { in setexposure()
827 i2cpexpo[3] = 150 - gspca_dev->exposure->val; in setexposure()
833 framerate_ctrl = (gspca_dev->exposure->val - 150) in setexposure()
903 if (gspca_dev->exposure->maximum < 500) { in do_autogain()
967 gspca_dev->exposure->val = gspca_dev->exposure->default_value; in sd_s_ctrl()
[all …]
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()
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()
A Dsonixj.c41 u32 exposure; member
1954 rexpo[3] = gspca_dev->exposure->val >> 8; in setexposure()
1958 rexpo[3] = gspca_dev->exposure->val; in setexposure()
2597 expotimes = sd->exposure; in do_autogain()
2601 sd->exposure = expo_adjust(gspca_dev, in do_autogain()
2605 expotimes = sd->exposure >> 8; in do_autogain()
2609 sd->exposure = expo_adjust(gspca_dev, in do_autogain()
2614 expotimes = sd->exposure; in do_autogain()
2618 sd->exposure = expo_adjust(gspca_dev, in do_autogain()
2626 expotimes = sd->exposure; in do_autogain()
[all …]
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()
4568 v4l2_ctrl_g_ctrl(gspca_dev->exposure), in sd_start()
4574 v4l2_ctrl_g_ctrl(gspca_dev->exposure), in sd_start()
4744 expo = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in sd_dq_callback()
4752 int new_expo = v4l2_ctrl_g_ctrl(gspca_dev->exposure); in sd_dq_callback()
4886 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
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()
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()
/linux-6.3-rc2/Documentation/userspace-api/media/drivers/
A Dst-vgxy61.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-6.3-rc2/Documentation/userspace-api/media/v4l/
A Dext-ctrls-camera.rst23 .. _v4l2-exposure-auto-type:
29 Enables automatic adjustments of the exposure time and/or iris
42 - Automatic exposure time, automatic iris aperture.
44 - Manual exposure time, manual iris.
46 - Manual exposure time, auto iris.
48 - Auto exposure time, manual iris.
53 Determines the exposure time of the camera sensor. The exposure time
76 .. _v4l2-exposure-metering:
83 the frame exposure. Possible values are:
326 different exposure times. [#f1]_
[all …]
/linux-6.3-rc2/drivers/media/i2c/
A Dov9650.c204 struct v4l2_ctrl *exposure; member
560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
779 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure()
780 unsigned int exposure = (ctrls->exposure->val * 100) in ov965x_set_exposure() local
789 (exposure >> 2) & 0xff); in ov965x_set_exposure()
792 (exposure >> 10) & 0x3f); in ov965x_set_exposure()
794 ctrls->exposure->val = ((exposure * ov965x->exp_row_interval) in ov965x_set_exposure()
857 unsigned int exposure, gain, m; in __g_volatile_ctrl() local
891 exposure = ((reg2 & 0x3f) << 10) | (reg1 << 2) | in __g_volatile_ctrl()
893 ov965x->ctrls.exposure->val = ((exposure * in __g_volatile_ctrl()
[all …]
A Dov5693.c181 struct v4l2_ctrl *exposure; member
519 u32 exposure; in ov5693_get_exposure() local
527 *value = exposure >> 4; in ov5693_get_exposure()
533 u32 exposure) in ov5693_exposure_configure() argument
537 exposure = (exposure << 4) & OV5693_EXPOSURE_CTRL_MASK; in ov5693_exposure_configure()
617 ov5693->ctrls.exposure->minimum, in ov5693_s_ctrl()
619 ov5693->ctrls.exposure->step, in ov5693_s_ctrl()
620 min(ov5693->ctrls.exposure->val, in ov5693_s_ctrl()
1010 __v4l2_ctrl_modify_range(ov5693->ctrls.exposure, in ov5693_set_fmt()
1012 ov5693->ctrls.exposure->step, in ov5693_set_fmt()
[all …]
A Dmt9v011.c61 u16 global_gain, exposure; member
179 u16 exposure; in set_balance() local
182 exposure = core->exposure; in set_balance()
198 mt9v011_write(sd, R09_MT9V011_SHUTTER_WIDTH, exposure); in set_balance()
424 core->exposure = ctrl->val; in mt9v011_s_ctrl()
544 core->exposure = 0x01fc; in mt9v011_probe()
A Dov7251.c147 struct v4l2_ctrl *exposure; member
865 static int ov7251_set_exposure(struct ov7251 *ov7251, s32 exposure) in ov7251_set_exposure() argument
871 val[0] = (exposure & 0xf000) >> 12; /* goes to OV7251_AEC_EXPO_0 */ in ov7251_set_exposure()
1037 __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_s_ctrl()
1038 ov7251->exposure->minimum, in ov7251_s_ctrl()
1040 ov7251->exposure->step, in ov7251_s_ctrl()
1041 min(ov7251->exposure->val, in ov7251_s_ctrl()
1239 ret = __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_set_format()
1245 ret = __v4l2_ctrl_s_ctrl(ov7251->exposure, in ov7251_set_format()
1409 ret = __v4l2_ctrl_modify_range(ov7251->exposure, in ov7251_set_frame_interval()
[all …]
A Dov08d10.c531 struct v4l2_ctrl *exposure; member
727 static int ov08d10_set_exposure(struct ov08d10 *ov08d10, u32 exposure) in ov08d10_set_exposure() argument
744 exposure = exposure * exp_cal / (cur_vts - OV08D10_EXPOSURE_MAX_MARGIN); in ov08d10_set_exposure()
751 val = ((exposure >> 16) & 0xFF); in ov08d10_set_exposure()
756 val = ((exposure >> 8) & 0xFF); in ov08d10_set_exposure()
761 val = exposure & 0xFF; in ov08d10_set_exposure()
864 __v4l2_ctrl_modify_range(ov08d10->exposure, in ov08d10_set_ctrl()
865 ov08d10->exposure->minimum, in ov08d10_set_ctrl()
866 exposure_max, ov08d10->exposure->step, in ov08d10_set_ctrl()
979 ov08d10->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov08d10_ctrl_ops, in ov08d10_init_controls()
A Dimx334.c401 static int imx334_update_exp_gain(struct imx334 *imx334, u32 exposure, u32 gain) in imx334_update_exp_gain() argument
407 shutter = lpfr - exposure; in imx334_update_exp_gain()
410 exposure, gain, shutter, lpfr); in imx334_update_exp_gain()
449 u32 exposure; in imx334_set_ctrl() local
473 exposure = ctrl->val; in imx334_set_ctrl()
477 exposure, analog_gain); in imx334_set_ctrl()
479 ret = imx334_update_exp_gain(imx334, exposure, analog_gain); in imx334_set_ctrl()
A Dimx335.c393 static int imx335_update_exp_gain(struct imx335 *imx335, u32 exposure, u32 gain) in imx335_update_exp_gain() argument
399 shutter = lpfr - exposure; in imx335_update_exp_gain()
402 exposure, gain, shutter, lpfr); in imx335_update_exp_gain()
441 u32 exposure; in imx335_set_ctrl() local
464 exposure = ctrl->val; in imx335_set_ctrl()
468 exposure, analog_gain); in imx335_set_ctrl()
470 ret = imx335_update_exp_gain(imx335, exposure, analog_gain); in imx335_set_ctrl()
A Dimx412.c545 static int imx412_update_exp_gain(struct imx412 *imx412, u32 exposure, u32 gain) in imx412_update_exp_gain() argument
551 shutter = lpfr - exposure; in imx412_update_exp_gain()
554 exposure, gain, shutter, lpfr); in imx412_update_exp_gain()
593 u32 exposure; in imx412_set_ctrl() local
616 exposure = ctrl->val; in imx412_set_ctrl()
620 exposure, analog_gain); in imx412_set_ctrl()
622 ret = imx412_update_exp_gain(imx412, exposure, analog_gain); in imx412_set_ctrl()
A Dov2685.c94 struct v4l2_ctrl *exposure; member
542 __v4l2_ctrl_modify_range(ov2685->exposure, in ov2685_set_ctrl()
543 ov2685->exposure->minimum, max_expo, in ov2685_set_ctrl()
544 ov2685->exposure->step, in ov2685_set_ctrl()
545 ov2685->exposure->default_value); in ov2685_set_ctrl()
647 ov2685->exposure = v4l2_ctrl_new_std(handler, &ov2685_ctrl_ops, in ov2685_initialize_controls()
A Dar0521.c109 struct v4l2_ctrl *exposure; member
519 ret = __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_set_fmt()
520 sensor->ctrls.exposure->minimum, in ar0521_set_fmt()
522 sensor->ctrls.exposure->step, in ar0521_set_fmt()
523 sensor->ctrls.exposure->default_value); in ar0521_set_fmt()
542 __v4l2_ctrl_modify_range(sensor->ctrls.exposure, in ar0521_s_ctrl()
543 sensor->ctrls.exposure->minimum, in ar0521_s_ctrl()
544 exp_max, sensor->ctrls.exposure->step, in ar0521_s_ctrl()
545 sensor->ctrls.exposure->default_value); in ar0521_s_ctrl()
647 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, 0, in ar0521_init_controls()
/linux-6.3-rc2/drivers/media/i2c/m5mols/
A Dm5mols_controls.c238 static int m5mols_set_exposure(struct m5mols_info *info, int exposure) in m5mols_set_exposure() argument
243 if (exposure == V4L2_EXPOSURE_AUTO) { in m5mols_set_exposure()
260 if (exposure == V4L2_EXPOSURE_MANUAL) { in m5mols_set_exposure()
264 info->exposure->val); in m5mols_set_exposure()
267 info->exposure->val); in m5mols_set_exposure()
270 __func__, info->exposure->val); in m5mols_set_exposure()
561 info->exposure = v4l2_ctrl_new_std(&info->handle, in m5mols_init_controls()
/linux-6.3-rc2/drivers/staging/media/atomisp/i2c/
A Datomisp-mt9m114.c780 struct atomisp_exposure *exposure) in mt9m114_s_exposure() argument
792 exposure->integration_time[0], exposure->gain[0], in mt9m114_s_exposure()
793 exposure->gain[1]); in mt9m114_s_exposure()
795 coarse_integration = exposure->integration_time[0]; in mt9m114_s_exposure()
801 analog_gain = exposure->gain[0]; in mt9m114_s_exposure()
802 digital_gain = exposure->gain[1]; in mt9m114_s_exposure()
1407 struct atomisp_exposure exposure; in mt9m114_s_stream() local
1416 exposure.integration_time[0] = dev->first_exp; in mt9m114_s_stream()
1417 exposure.gain[0] = dev->first_gain; in mt9m114_s_stream()
1418 exposure.gain[1] = dev->first_diggain; in mt9m114_s_stream()
[all …]
/linux-6.3-rc2/drivers/media/usb/pwc/
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()

Completed in 105 milliseconds

12345