pRawx [0] = (mng_uint8)(pRawx [0] + ((pRawx_prev [0] + pPriorx [0]) >> 1));
*pRawx = (mng_uint8)(*pRawx + ((*pRawx_prev + *pPriorx) >> 1));
mng_retcode filter_average (mng_datap pData){  mng_int32  iBpp;  mng_uint8p pRawx;  mng_uint8p pRawx_prev;  mng_uint8p pPriorx;  mng_int32  iX;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_FILTER_AVERAGE, MNG_LC_START)#endif  iBpp       = pData->iFilterbpp;  pRawx      = pData->pWorkrow + 1;  pPriorx    = pData->pPrevrow + 1;  pRawx_prev = pData->pWorkrow + 1;  for (iX = 0; iX < iBpp; iX++)  {    pRawx [0] = (mng_uint8)(pRawx [0] + (pPriorx [0] >> 1));    pRawx++;    pPriorx++;  }  for (iX = iBpp; iX < pData->iRowsize; iX++)  {    pRawx [0] = (mng_uint8)(pRawx [0] + ((pRawx_prev [0] + pPriorx [0]) >> 1));    pRawx++;    pPriorx++;    pRawx_prev++;  }#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_FILTER_AVERAGE, MNG_LC_END)#endif  return MNG_NOERROR;}