Previous: Translation Routines Up: Translation Routines Next: x/ zvtrans_in

x/ zvtrans

call xvtrans(buf, source, dest, npix)
zvtrans(buf, source, dest, npix);

Translate pixels from one format to another. One of the translation setup routines must have been called first to set up the translation buffer. This routine is the only standard way to translate data in the VICAR system, both between host representations (e.g. VAX to IEEE) and between data types (e.g. integer to real). Any other routines to do translations should be merely syntactic sugar for this routine.

This routine is coded to be very efficient, so it may be called inside a tight loop with very little performance penalty.