Home
last modified time | relevance | path

Searched refs:ctrL (Results 1 – 1 of 1) sorted by relevance

/external/neven/Embedded/common/src/b_ImageEm/
DToneDownBGSupp.c97 uint32 sumL, ctrL; in bim_ToneDownBGSupp_BGGreyLevelOutside() local
127 ctrL = 0; in bim_ToneDownBGSupp_BGGreyLevelOutside()
130 ctrL += rectIxYMinL * imgA->widthE; in bim_ToneDownBGSupp_BGGreyLevelOutside()
140 ctrL += ( imgA->heightE - rectIxYMaxL ) * imgA->widthE; in bim_ToneDownBGSupp_BGGreyLevelOutside()
155 ctrL += bbs_max( 0, rectIxXMinL ); in bim_ToneDownBGSupp_BGGreyLevelOutside()
164 ctrL += ( int32 )imgA->widthE - ( int32 )rectIxXMaxL; in bim_ToneDownBGSupp_BGGreyLevelOutside()
176 *meanBGGrayLevelA = ( sumL << 16 ) / ( uint32 ) ctrL; in bim_ToneDownBGSupp_BGGreyLevelOutside()
179 *meanBGGrayLevelA = sumL / ctrL; /* integer division */ in bim_ToneDownBGSupp_BGGreyLevelOutside()
180 sumL = sumL - *meanBGGrayLevelA * ctrL; /* result always greater than or equal to zero */ in bim_ToneDownBGSupp_BGGreyLevelOutside()
182 *meanBGGrayLevelA = *meanBGGrayLevelA + ( sumL << 16 ) / ctrL; /* add residue */ in bim_ToneDownBGSupp_BGGreyLevelOutside()
[all …]