Home
last modified time | relevance | path

Searched full:exposure (Results 1 – 25 of 210) sorted by relevance

123456789

/linux/drivers/media/usb/gspca/
H A Dautogain_functions.c9 /* 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()
[all …]
H A Dcpia1.c117 /* exposure status */
278 } 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()
[all …]
H A Dsonixb.c29 0x19 high-nibble is sensor clock divider, changes exposure on sensors which
115 if we adjust the gain or exposure we must ignore at least the next frame for
282 0x05 Shutter Time Line Offset, this can be used as an exposure control:
283 0 = use full frame time, 255 = no exposure at all
285 When var-framerate control is < 514, no exposure is reached at the max
287 0x06 Shutter Time Pixel Offset, like reg05 this influences exposure, but
358 leave at 1 otherwise we get a jump in our exposure control
359 0x0f Exposure 0-255, 0 = use full frame time, 255 = no exposure at all
416 * shutter 0x47 short exposure? */
418 /* shutter 0x01 long exposure */
[all …]
H A Dmr97310a.c74 struct { /* exposure/min_clockdiv control cluster */
75 struct v4l2_ctrl *exposure; member
699 /* Reg 3 msb and 4 is lsb of the exposure setting*/ in start_vga_cam()
811 int exposure = MR97310A_EXPOSURE_DEFAULT; in setexposure() local
815 /* This cam does not like exposure settings < 300, in setexposure()
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()
[all …]
H A Dpac7302.c52 * 0x0e Exposure bits 0-7, 0-448, 0 = use full frame time
53 * 0x0f Exposure bit 8, 0-448, 448 = no exposure at all
489 u16 exposure; in setexposure() local
493 * no fps according to the formula: 90 / reg. sd->exposure is the in setexposure()
494 * desired exposure time in 0.5 ms. in setexposure()
496 clockdiv = (90 * gspca_dev->exposure->val + 1999) / 2000; in setexposure()
512 * using the partial frame time exposure control. in setexposure()
518 * frame exposure time in ms = 1000 * clockdiv / 90 -> in setexposure()
519 * exposure = (sd->exposure / 2) * 448 / (1000 * clockdiv / 90) in setexposure()
521 exposure = (gspca_dev->exposure->val * 45 * 448) / (1000 * clockdiv); in setexposure()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dext-ctrls-camera.rst23 .. _v4l2-exposure-auto-type:
29 Enables automatic adjustments of the exposure time and/or iris
30 aperture. The effect of manual changes of the exposure time 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
65 Determines the automatic exposure compensation, it is effective only
71 Increasing the exposure compensation value is equivalent to
[all …]
H A Dmetafmt-d4xx.rst58 * - __u32 Exposure
59 - Exposure time (in microseconds) used to capture the frame
63 - 0: manual; 1: automatic exposure
64 * - __u32 Exposure priority
65 - Exposure priority value: 0 - constant frame rate
100 * - __u32 Exposure time
101 - Frame exposure time in microseconds
151 0x00000002 Exposure
154 0x00000010 Exposure priority
167 0x00000008 Exposure time
/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/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_pb0100.c26 auto-exposure
28 * PB_EXPGAIN = R14 = 0x11 (17 dec) : Sets the auto-exposure value
30 auto-exposure routine
42 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()
270 /* Set up auto-exposure */ in pb0100_init()
279 allowed for auto-exposure routine */ in pb0100_init()
282 allowed for auto-exposure routine */ in pb0100_init()
285 /* R15 Expose0 (maximum that auto-exposure may use) */ in pb0100_init()
[all …]
H A Dstv06xx_hdcs.h78 /* Row Exposure Low Register */
80 /* Row Exposure High Register */
84 /* Sub-Row Exposure Low Register */
86 /* Sub-Row Exposure High Register */
94 /* Sub-Row Exposure Register */
/linux/drivers/media/i2c/
H A Dov9650.c65 #define REG_AECH 0x10 /* Exposure value, AEC[9:2] */
86 #define COM8_AEC 0x01 /* Auto exposure enable */
189 #define REG_AECHM 0xa1 /* Exposure value - bits AEC[15:10] */
204 struct v4l2_ctrl *exposure; member
260 /* Exposure row interval in us */
560 struct v4l2_ctrl *ctrl = ov965x->ctrls.exposure; in ov965x_update_exposure_ctrl()
583 /* Update exposure time range to match current frame format. */ in ov965x_update_exposure_ctrl()
589 v4l2_err(&ov965x->sd, "Exposure ctrl range update failed\n"); in ov965x_update_exposure_ctrl()
610 /* Set minimal exposure time for 50/60 HZ lighting */ in ov965x_set_banding_filter()
779 if (!auto_exposure && ctrls->exposure->is_new) { in ov965x_set_exposure()
[all …]
H A Dov5693.c42 /* Exposure */
164 struct v4l2_ctrl *exposure; member
388 u64 exposure; in ov5693_get_exposure() local
391 ret = cci_read(ov5693->regmap, OV5693_EXPOSURE_CTRL_REG, &exposure, in ov5693_get_exposure()
397 *value = exposure >> 4; in ov5693_get_exposure()
403 u32 exposure) in ov5693_exposure_configure() argument
407 exposure = (exposure << 4) & OV5693_EXPOSURE_CTRL_MASK; in ov5693_exposure_configure()
409 cci_write(ov5693->regmap, OV5693_EXPOSURE_CTRL_REG, exposure, &ret); in ov5693_exposure_configure()
423 /* As with exposure, the lowest 4 bits are fractional bits. */ in ov5693_get_gain()
480 /* If VBLANK is altered we need to update exposure to compensate */ in ov5693_s_ctrl()
[all …]
H A Dov8858.c116 struct v4l2_ctrl *exposure; member
473 {0x3500, 0x00}, /* exposure H */
474 {0x3501, 0x4d}, /* exposure M */
475 {0x3502, 0x40}, /* exposure L */
476 {0x3503, 0x80}, /* gain delay ?, exposure delay 1 frame, real gain */
482 {0x3510, 0x00}, /* short exposure H */
483 {0x3511, 0x02}, /* short exposure M */
484 {0x3512, 0x00}, /* short exposure L */
734 {0x3501, 0x4d}, /* exposure M */
735 {0x3502, 0x40}, /* exposure L */
[all …]
H A Dimx412.c32 /* Exposure control */
125 * @exp_ctrl: Pointer to exposure control
536 * imx412_update_exp_gain() - Set updated exposure and gain
538 * @exposure: updated exposure value
543 static int imx412_update_exp_gain(struct imx412 *imx412, u32 exposure, u32 gain) in imx412_update_exp_gain() argument
551 exposure, gain, lpfr); in imx412_update_exp_gain()
561 ret = imx412_write_reg(imx412, IMX412_REG_EXPOSURE_CIT, 2, exposure); in imx412_update_exp_gain()
590 u32 exposure; in imx412_set_ctrl() local
613 exposure = ctrl->val; in imx412_set_ctrl()
617 exposure, analog_gain); in imx412_set_ctrl()
[all …]
H A Dmt9v011.c59 u16 global_gain, exposure; member
177 u16 exposure; in set_balance() local
180 exposure = core->exposure; in set_balance()
196 mt9v011_write(sd, R09_MT9V011_SHUTTER_WIDTH, exposure); in set_balance()
438 core->exposure = ctrl->val; in mt9v011_s_ctrl()
550 core->exposure = 0x01fc; in mt9v011_probe()
H A Dov08d10.c37 /* Exposure controls from sensor */
531 struct v4l2_ctrl *exposure; member
724 static int ov08d10_set_exposure(struct ov08d10 *ov08d10, u32 exposure) in ov08d10_set_exposure() argument
741 exposure = exposure * exp_cal / (cur_vts - OV08D10_EXPOSURE_MAX_MARGIN); in ov08d10_set_exposure()
747 /* update exposure */ in ov08d10_set_exposure()
748 val = ((exposure >> 16) & 0xFF); in ov08d10_set_exposure()
753 val = ((exposure >> 8) & 0xFF); in ov08d10_set_exposure()
758 val = exposure & 0xFF; in ov08d10_set_exposure()
858 /* Update max exposure while meeting expected vblanking */ in ov08d10_set_ctrl()
861 __v4l2_ctrl_modify_range(ov08d10->exposure, in ov08d10_set_ctrl()
[all …]
H A Dimx334.c31 /* Exposure control */
134 * @exp_ctrl: Pointer to exposure control
652 * imx334_update_exp_gain() - Set updated exposure and gain
654 * @exposure: updated exposure value
659 static int imx334_update_exp_gain(struct imx334 *imx334, u32 exposure, u32 gain) in imx334_update_exp_gain() argument
665 shutter = lpfr - exposure; in imx334_update_exp_gain()
668 exposure, gain, shutter, lpfr); in imx334_update_exp_gain()
707 u32 exposure; in imx334_set_ctrl() local
731 exposure = ctrl->val; in imx334_set_ctrl()
735 exposure, analog_gain); in imx334_set_ctrl()
[all …]
H A Dov9282.c40 /* Exposure control */
160 * @exp_ctrl: Pointer to exposure control
577 * ov9282_update_exp_gain() - Set updated exposure and gain
579 * @exposure: updated exposure value
584 static int ov9282_update_exp_gain(struct ov9282 *ov9282, u32 exposure, u32 gain) in ov9282_update_exp_gain() argument
589 exposure, gain); in ov9282_update_exp_gain()
595 ret = ov9282_write_reg(ov9282, OV9282_REG_EXPOSURE, 3, exposure << 4); in ov9282_update_exp_gain()
658 u32 exposure; in ov9282_set_ctrl() local
685 exposure = ctrl->val; in ov9282_set_ctrl()
689 exposure, analog_gain); in ov9282_set_ctrl()
[all …]
/linux/drivers/staging/media/atomisp/i2c/
H 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()
804 /*Save the first exposure values while stream is off*/ in mt9m114_s_exposure()
825 * 3A provide real exposure time. in mt9m114_s_exposure()
831 v4l2_err(client, "%s: fail to set exposure time\n", __func__); in mt9m114_s_exposure()
890 * This returns the exposure time being used. This should only be used
[all …]
H A Datomisp-ov2722.c299 /* set exposure */ in __ov2722_set_exposure()
335 static int ov2722_set_exposure(struct v4l2_subdev *sd, int exposure, in ov2722_set_exposure() argument
342 ret = __ov2722_set_exposure(sd, exposure, gain, digitgain); in ov2722_set_exposure()
349 struct atomisp_exposure *exposure) in ov2722_s_exposure() argument
351 int exp = exposure->integration_time[0]; in ov2722_s_exposure()
352 int gain = exposure->gain[0]; in ov2722_s_exposure()
353 int digitgain = exposure->gain[1]; in ov2722_s_exposure()
377 /* This returns the exposure time being used. This should only be used
386 /* get exposure */ in ov2722_q_exposure()
445 .name = "exposure",
H A Datomisp-gc2235.c259 static int gc2235_set_exposure(struct v4l2_subdev *sd, int exposure, in gc2235_set_exposure() argument
266 ret = __gc2235_set_exposure(sd, exposure, gain, digitgain); in gc2235_set_exposure()
273 struct atomisp_exposure *exposure) in gc2235_s_exposure() argument
275 int exp = exposure->integration_time[0]; in gc2235_s_exposure()
276 int gain = exposure->gain[0]; in gc2235_s_exposure()
277 int digitgain = exposure->gain[1]; in gc2235_s_exposure()
302 * This returns the exposure time being used. This should only be used
311 /* get exposure */ in gc2235_q_exposure()
357 .name = "exposure",
/linux/drivers/media/usb/pwc/
H A Dpwc-v4l.c237 /* auto exposure, exposure */ in pwc_init_controls()
259 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
261 /* CODEC2: separate auto gain & auto exposure */ in pwc_init_controls()
271 pdev->exposure = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
273 /* CODEC3: both gain and exposure controlled by autogain */ 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()
627 /* For CODEC2 models which have separate autogain and auto exposure */
[all …]
/linux/drivers/staging/media/atomisp/pci/
H A Dia_css_event_public.h109 /** Exposure id for EOF/FRAME_TAGGED/FW_WARNING event (not valid for other events)
110 The exposure ID is unique only within a logical stream and it is
113 Most outputs produced by the CSS are tagged with an exposure ID.
118 Exposure IDs start at IA_CSS_MIN_EXPOSURE_ID, increment by one
122 in the exposure IDs. Therefor applications should not use this
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-isp.h87 /* Auto/manual exposure */
89 /* Manual exposure value */
90 struct v4l2_ctrl *exposure; member
93 /* Exposure metering mode */
/linux/include/net/netns/
H A Dsctp.h120 * Disable Potentially-Failed state exposure, ignored by default
122 * - 1 : disable pf state exposure
123 * - 2 : enable pf state exposure

123456789