Lines Matching defs:startexp
1022 int ret, startexp;
1037 startexp = (currentexp + ROUND_UP_EXP_FOR_FLICKER) / cj;
1038 if (startexp < 1)
1039 startexp = 1;
1040 startexp = (startexp * cj) - 1;
1042 while (startexp > MAX_EXP_102)
1043 startexp -= cj;
1045 while (startexp > MAX_EXP)
1046 startexp -= cj;
1047 sd->params.exposure.coarseExpLo = startexp & 0xff;
1048 sd->params.exposure.coarseExpHi = startexp >> 8;
1049 if (currentexp > startexp) {
1050 if (currentexp > (2 * startexp))
1051 currentexp = 2 * startexp;
1053 COMPGAIN(COMP_RED, currentexp, startexp);
1055 COMPGAIN(COMP_GREEN1, currentexp, startexp);
1057 COMPGAIN(COMP_GREEN2, currentexp, startexp);
1059 COMPGAIN(COMP_BLUE, currentexp, startexp);
1079 startexp = EXP_FROM_COMP(COMP_RED,
1081 startexp += EXP_FROM_COMP(COMP_GREEN1,
1083 startexp += EXP_FROM_COMP(COMP_GREEN2,
1085 startexp += EXP_FROM_COMP(COMP_BLUE,
1087 startexp = startexp >> 2;
1088 while (startexp > MAX_EXP && sd->params.exposure.gain <
1090 startexp = startexp >> 1;
1093 if (FIRMWARE_VERSION(1, 2) && startexp > MAX_EXP_102)
1094 startexp = MAX_EXP_102;
1095 if (startexp > MAX_EXP)
1096 startexp = MAX_EXP;
1097 sd->params.exposure.coarseExpLo = startexp & 0xff;
1098 sd->params.exposure.coarseExpHi = startexp >> 8;