2018.3.28周三
今日份疑惑
一、*(pmskRlt->pData + pmskRlt->lMaskLine*lCurY) = (MUInt8)((sum + hlfArea) / area);???
四舍五入!!!
二、
MUInt32 lShift = 22; ????
MUInt32 lDiv = (1 << lShift) / area;
MUInt32 lHalfDiv = 1 << (lShift - 1);
*pu8Rlt = (MUInt8)((sum*lDiv + lHalfDiv) >> lShift);