diffmax = (int) ((_param->scdthr * _info.height * _info.width * 331.0f) / 100.0f);
diffmax =      (int) ((root * 331.0f) / 100.0f);
vidCNR2::setup (void){  if (_param->sceneChroma)    diffmax =      (int) ((_param->scdthr * _info.height * _info.width * 331.0f) / 100.0f);  else    diffmax =      (int) ((_param->scdthr * _info.height * _info.width * 219.0f) / 100.0f);  memset (lt, 0, 513);		// for safety  memset (ut, 0, 513);  memset (vt, 0, 513);  keepTrack = -39482;  const double pi = M_PI;  bool Y = true, U = true, V = true;  if (_param->mode & 0xFF0000 )    Y = false;  if (_param->mode & 0x00FF00 )    U = false;  if (_param->mode & 0x0000FF )    V = false;  int i, j;  for (i = -256; i < 256; ++i)    lt[i + 256] = 0;  for (j = -_param->ln; j <= _param->ln; ++j)    {      if (Y)	lt[j + 256] =	  (int) ((_param->lm / 2) *		 (1 + cos ((j * j * pi) / (_param->ln * _param->ln))));      else	lt[j + 256] =	  (int) ((_param->lm / 2) * (1 + cos ((j * pi) / _param->ln)));    }  for (i = -256; i < 256; ++i)    ut[i + 256] = 0;  for (j = -_param->un; j <= _param->un; ++j)    {      if (U)	ut[j + 256] =	  (int) ((_param->um / 2) *		 (1 + cos ((j * j * pi) / (_param->un * _param->un))));      else	ut[j + 256] =	  (int) ((_param->um / 2) * (1 + cos ((j * pi) / _param->un)));    }  for (i = -256; i < 256; ++i)    vt[i + 256] = 0;  for (j = -_param->vn; j <= _param->vn; ++j)    {      if (V)	vt[j + 256] =	  (int) ((_param->vm / 2) *		 (1 + cos ((j * j * pi) / (_param->vn * _param->vn))));      else	vt[j + 256] =	  (int) ((_param->vm / 2) * (1 + cos ((j * pi) / _param->vn)));    }    return 1;}