AddressLib/vopio.c
uchar *xydata(MomImage *image,TCoor x,TCoor y)

{
  if (!image) return 0;
  if (!(image->data)) return 0;
  if (!(image->data->u)) return 0;
  if (x >= image->x) return 0;
  if (y >= image->y) return 0;

  return (image->data->u +  datasize(image)* (x + (y *image->x)));

}
/**********************************************************************/
/*  xydata  get adress of data at positionx,y                         */
/**********************************************************************/
xydata  get adress of data at positionx,y
xydata get adress of data at positionx y
uchar *xydata(MomImage *image,TCoor x,TCoor y)
{
  if (!image) return 0;
  if (!(image->data)) return 0;
  if (!(image->data->u)) return 0;
  if (x >= image->x) return 0;
  if (y >= image->y) return 0;
  return (image->data->u +  datasize(image)* (x + (y *image->x)));
}
uchar * xydata ( MomImage * image , TCoor x , TCoor y ) { if ( ! image ) return 0 ; if ( ! ( image -> data ) ) return 0 ; if ( ! ( image -> data -> u ) ) return 0 ; if ( x >= image -> x ) return 0 ; if ( y >= image -> y ) return 0 ; return ( image -> data -> u + datasize ( image ) * ( x + ( y * image -> x ) ) ) ; }
xydata  get adress of data at positionx,y
xydata get adress of data at positionx y