Lines Matching refs:startexp
1076 int ret, startexp;
1089 startexp = (currentexp + ROUND_UP_EXP_FOR_FLICKER) / cj;
1090 if (startexp < 1)
1091 startexp = 1;
1092 startexp = (startexp * cj) - 1;
1094 while (startexp > MAX_EXP_102)
1095 startexp -= cj;
1097 while (startexp > MAX_EXP)
1098 startexp -= cj;
1099 sd->params.exposure.coarseExpLo = startexp & 0xff;
1100 sd->params.exposure.coarseExpHi = startexp >> 8;
1101 if (currentexp > startexp) {
1102 if (currentexp > (2 * startexp))
1103 currentexp = 2 * startexp;
1105 COMPGAIN(COMP_RED, currentexp, startexp);
1107 COMPGAIN(COMP_GREEN1, currentexp, startexp);
1109 COMPGAIN(COMP_GREEN2, currentexp, startexp);
1111 COMPGAIN(COMP_BLUE, currentexp, startexp);
1131 startexp = EXP_FROM_COMP(COMP_RED,
1133 startexp += EXP_FROM_COMP(COMP_GREEN1,
1135 startexp += EXP_FROM_COMP(COMP_GREEN2,
1137 startexp += EXP_FROM_COMP(COMP_BLUE,
1139 startexp = startexp >> 2;
1140 while (startexp > MAX_EXP && sd->params.exposure.gain <
1142 startexp = startexp >> 1;
1145 if (FIRMWARE_VERSION(1, 2) && startexp > MAX_EXP_102)
1146 startexp = MAX_EXP_102;
1147 if (startexp > MAX_EXP)
1148 startexp = MAX_EXP;
1149 sd->params.exposure.coarseExpLo = startexp & 0xff;
1150 sd->params.exposure.coarseExpHi = startexp >> 8;