Lines Matching defs:startexp
1021 int ret, startexp;
1036 startexp = (currentexp + ROUND_UP_EXP_FOR_FLICKER) / cj;
1037 if (startexp < 1)
1038 startexp = 1;
1039 startexp = (startexp * cj) - 1;
1041 while (startexp > MAX_EXP_102)
1042 startexp -= cj;
1044 while (startexp > MAX_EXP)
1045 startexp -= cj;
1046 sd->params.exposure.coarseExpLo = startexp & 0xff;
1047 sd->params.exposure.coarseExpHi = startexp >> 8;
1048 if (currentexp > startexp) {
1049 if (currentexp > (2 * startexp))
1050 currentexp = 2 * startexp;
1052 COMPGAIN(COMP_RED, currentexp, startexp);
1054 COMPGAIN(COMP_GREEN1, currentexp, startexp);
1056 COMPGAIN(COMP_GREEN2, currentexp, startexp);
1058 COMPGAIN(COMP_BLUE, currentexp, startexp);
1078 startexp = EXP_FROM_COMP(COMP_RED,
1080 startexp += EXP_FROM_COMP(COMP_GREEN1,
1082 startexp += EXP_FROM_COMP(COMP_GREEN2,
1084 startexp += EXP_FROM_COMP(COMP_BLUE,
1086 startexp = startexp >> 2;
1087 while (startexp > MAX_EXP && sd->params.exposure.gain <
1089 startexp = startexp >> 1;
1092 if (FIRMWARE_VERSION(1, 2) && startexp > MAX_EXP_102)
1093 startexp = MAX_EXP_102;
1094 if (startexp > MAX_EXP)
1095 startexp = MAX_EXP;
1096 sd->params.exposure.coarseExpLo = startexp & 0xff;
1097 sd->params.exposure.coarseExpHi = startexp >> 8;