Lines Matching refs:sumL
96 /* the sum is possibly a large number. e.g. for a 512x512 byte image, maximum brightness, sumL is 7x10E7 */
97 uint32 sumL, ctrL;
126 sumL = 0;
134 sumL += *imgPtrL;
146 sumL += *imgPtrL;
159 sumL += imgPtrL[ iL ];
169 sumL += imgPtrL[ iL ];
173 /* printf( "new sum = %d, new ctr = %d \n", sumL, ctrL ); */
176 *meanBGGrayLevelA = ( sumL << 16 ) / ( uint32 ) ctrL;
179 *meanBGGrayLevelA = sumL / ctrL; /* integer division */
180 sumL = sumL - *meanBGGrayLevelA * ctrL; /* result always greater than or equal to zero */
182 *meanBGGrayLevelA = *meanBGGrayLevelA + ( sumL << 16 ) / ctrL; /* add residue */
197 /* the sum is possibly a large number. e.g. for a 512x512 byte image, maximum brightness, sumL is 7x10E7 */
198 uint32 sumL, ctrL;
270 sumL = 0;
280 sumL += imgPtr0L[ iL ];
281 sumL += imgPtr1L[ iL ];
287 sumL += *imgPtr0L;
288 sumL += *imgPtr1L;
294 /* printf( "new sum = %d, new ctr = %d \n", sumL, ctrL ); */
297 *meanBGGrayLevelA = ( sumL << 16 ) / ( uint32 ) ctrL;
300 *meanBGGrayLevelA = sumL / ctrL; /* integer division */
301 sumL = sumL - *meanBGGrayLevelA * ctrL; /* result always greater than or equal to zero */
303 *meanBGGrayLevelA = *meanBGGrayLevelA + ( sumL << 16 ) / ctrL; /* add residue */
345 int32 opSrcL, opBGL, sumL; /* R=[0.0...255.0], bpb=[24,8] */
487 sumL = opSrcL + opBGL; /* OF impossible */
488 imgPtrL[ iL ] = sumL >> 16; /* round to byte */
509 sumL = opSrcL + opBGL; /* OF impossible */
510 imgPtrL[ iL ] = sumL >> 16; /* round to byte */
528 sumL = opSrcL + opBGL; /* OF impossible */
529 imgPtrL[ iL ] = sumL >> 16; /* round to byte */
543 sumL = opSrcL + opBGL; /* OF impossible */
544 imgPtrL[ iL ] = sumL >> 16; /* round to byte */