Lines Matching full:exposure

117 /* 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()
628 params->exposure.gainMode = 4; in reset_camera_params()
629 params->exposure.expMode = 2; /* AEC */ in reset_camera_params()
630 params->exposure.compMode = 1; in reset_camera_params()
631 params->exposure.centreWeight = 1; in reset_camera_params()
632 params->exposure.gain = 0; in reset_camera_params()
633 params->exposure.fineExp = 0; in reset_camera_params()
634 params->exposure.coarseExpLo = 185; in reset_camera_params()
635 params->exposure.coarseExpHi = 0; in reset_camera_params()
636 params->exposure.redComp = COMP_RED; in reset_camera_params()
637 params->exposure.green1Comp = COMP_GREEN1; in reset_camera_params()
638 params->exposure.green2Comp = COMP_GREEN2; in reset_camera_params()
639 params->exposure.blueComp = COMP_BLUE; in reset_camera_params()
836 sd->params.exposure.gainMode, in command_setexposure()
838 sd->params.exposure.compMode, in command_setexposure()
839 sd->params.exposure.centreWeight, in command_setexposure()
840 sd->params.exposure.gain, in command_setexposure()
841 sd->params.exposure.fineExp, in command_setexposure()
842 sd->params.exposure.coarseExpLo, in command_setexposure()
843 sd->params.exposure.coarseExpHi, in command_setexposure()
844 sd->params.exposure.redComp, in command_setexposure()
845 sd->params.exposure.green1Comp, in command_setexposure()
846 sd->params.exposure.green2Comp, in command_setexposure()
847 sd->params.exposure.blueComp); in command_setexposure()
851 if (sd->params.exposure.expMode != 1) { in command_setexposure()
854 sd->params.exposure.expMode, in command_setexposure()
856 sd->params.exposure.gain, in command_setexposure()
857 sd->params.exposure.fineExp, in command_setexposure()
858 sd->params.exposure.coarseExpLo, in command_setexposure()
859 sd->params.exposure.coarseExpHi, in command_setexposure()
1018 int currentexp = sd->params.exposure.coarseExpLo + in set_flicker()
1019 sd->params.exposure.coarseExpHi * 256; in set_flicker()
1026 if (sd->params.exposure.expMode != 2) { in set_flicker()
1027 sd->params.exposure.expMode = 2; in set_flicker()
1030 if (sd->params.exposure.gain >= BITS_PER_TYPE(currentexp)) in set_flicker()
1032 currentexp = currentexp << sd->params.exposure.gain; in set_flicker()
1033 sd->params.exposure.gain = 0; in set_flicker()
1034 /* round down current exposure to nearest value */ in set_flicker()
1045 sd->params.exposure.coarseExpLo = startexp & 0xff; in set_flicker()
1046 sd->params.exposure.coarseExpHi = startexp >> 8; in set_flicker()
1050 sd->params.exposure.redComp = in set_flicker()
1052 sd->params.exposure.green1Comp = in set_flicker()
1054 sd->params.exposure.green2Comp = in set_flicker()
1056 sd->params.exposure.blueComp = in set_flicker()
1059 sd->params.exposure.redComp = COMP_RED; in set_flicker()
1060 sd->params.exposure.green1Comp = COMP_GREEN1; in set_flicker()
1061 sd->params.exposure.green2Comp = COMP_GREEN2; in set_flicker()
1062 sd->params.exposure.blueComp = COMP_BLUE; in set_flicker()
1065 sd->params.exposure.compMode = 0; in set_flicker()
1067 sd->params.exposure.compMode = 1; in set_flicker()
1078 sd->params.exposure.redComp, currentexp); in set_flicker()
1080 sd->params.exposure.green1Comp, currentexp); in set_flicker()
1082 sd->params.exposure.green2Comp, currentexp); in set_flicker()
1084 sd->params.exposure.blueComp, currentexp); in set_flicker()
1086 while (startexp > MAX_EXP && sd->params.exposure.gain < in set_flicker()
1087 sd->params.exposure.gainMode - 1) { in set_flicker()
1089 ++sd->params.exposure.gain; in set_flicker()
1095 sd->params.exposure.coarseExpLo = startexp & 0xff; in set_flicker()
1096 sd->params.exposure.coarseExpHi = startexp >> 8; in set_flicker()
1097 sd->params.exposure.redComp = COMP_RED; in set_flicker()
1098 sd->params.exposure.green1Comp = COMP_GREEN1; in set_flicker()
1099 sd->params.exposure.green2Comp = COMP_GREEN2; in set_flicker()
1100 sd->params.exposure.blueComp = COMP_BLUE; in set_flicker()
1101 sd->params.exposure.compMode = 1; in set_flicker()
1135 /* monitor the exposure and adjust the sensor frame rate if needed */
1172 old_exposure = sd->params.exposure.coarseExpHi * 256 + in monitor_exposure()
1173 sd->params.exposure.coarseExpLo; in monitor_exposure()
1297 sd->params.exposure.coarseExpLo = new_exposure & 0xff; in monitor_exposure()
1298 sd->params.exposure.coarseExpHi = new_exposure >> 8; in monitor_exposure()
1326 sd->params.exposure.coarseExpLo = new_exposure & 0xff; in monitor_exposure()
1327 sd->params.exposure.coarseExpHi = new_exposure >> 8; in monitor_exposure()
1343 if (sd->params.exposure.gain > 0) { in monitor_exposure()
1344 --sd->params.exposure.gain; in monitor_exposure()
1359 if (sd->params.exposure.gain < in monitor_exposure()
1360 sd->params.exposure.gainMode - 1) { in monitor_exposure()
1361 ++sd->params.exposure.gain; in monitor_exposure()
1384 It also adjust the colour balance when an exposure step is detected - as
1401 old_exp = sd->params.exposure.coarseExpLo + in restart_flicker()
1402 sd->params.exposure.coarseExpHi*256; in restart_flicker()
1404 see how far away camera exposure is from a valid in restart_flicker()
1405 flicker exposure value in restart_flicker()
1417 /* exposure is now high enough to switch in restart_flicker()
1452 sd->params.exposure.gainMode > 2) { in sd_config()
1453 sd->params.exposure.gainMode = 2; in sd_config()
1738 /* If AEC is enabled, monitor the exposure and in sd_dq_callback()
1740 if (sd->params.exposure.expMode == 2) in sd_dq_callback()