Lines Matching defs:gain
344 SANE_Byte * gain);
1342 /* get default gain and offset values */
1931 gain[CL_BLUE] = gain[CL_GREEN] = gain[CL_RED] = 0;
1969 /* read gain and offset values from EEPROM */
1993 /* extract gain and offset values */
1998 gain[a] = (offset[a] >> 9) & 0x1f;
2007 gain[a] = 0;
2016 gain[CL_RED], gain[CL_GREEN], gain[CL_BLUE], offset[CL_RED],
8407 /* set gain control mode */
10487 /* set gain control */
11609 /* get register values to perform adc gain calibration */
11622 /* set gain control type */
11665 /* select type of gain parameters to set */
11867 GainOffset_Save (struct st_device *dev, SANE_Int * offset, SANE_Byte * gain)
11871 DBG (DBG_FNC, "+ GainOffset_Save(*offset, *gain):\n");
11876 if ((offset != NULL) && (gain != NULL))
11883 value = (*gain << 9) | *offset;
13741 /*gain[CL_RED]=0x17 gain[CL_GREEN]=0x12 gain[CL_BLUE]=0x17 */
13742 if ((v14b4 != 0) && (gain[CL_RED] != 0) && (gain[CL_GREEN] != 0)
13743 && (gain[CL_BLUE] != 0))
13746 calibdata->gain_offset.vgag1[a] = gain[a];