AddressLib/vopio.c
void incdata(MomImageData data,MomImageType type)

{
  if (!data.u) return;
#ifdef ADDPROF
  if (writecnt) (*writecnt)++;
  if (readcnt) (*readcnt)++;
#endif
  switch (type) {
  case UCHAR_TYPE:
    (*data.u)++;
    return;
  case SHORT_TYPE:
    (*data.s)++;
    return;
  case FLOAT_TYPE:
    (*data.f)+=1.0;
    return;
  }
}
/**********************************************************************/
/*  incdata  increments data from an imagememory                      */
/**********************************************************************/
incdata  increments data from an imagememory
incdata increments data from an imagememory
void incdata(MomImageData data,MomImageType type)
{
  if (!data.u) return;
#ifdef ADDPROF
  if (writecnt) (*writecnt)++;
  if (readcnt) (*readcnt)++;
#endif
  switch (type) {
  case UCHAR_TYPE:
    (*data.u)++;
    return;
  case SHORT_TYPE:
    (*data.s)++;
    return;
  case FLOAT_TYPE:
    (*data.f)+=1.0;
    return;
  }
}
void incdata ( MomImageData data , MomImageType type ) { if ( ! data . u ) return ; #ifdef ADDPROF if ( writecnt ) ( * writecnt ) ++ ; if ( readcnt ) ( * readcnt ) ++ ; #endif switch ( type ) { case UCHAR_TYPE : ( * data . u ) ++ ; return ; case SHORT_TYPE : ( * data . s ) ++ ; return ; case FLOAT_TYPE : ( * data . f ) += 1.0 ; return ; } }
incdata  increments data from an imagememory
incdata increments data from an imagememory