MAN page from RedHat Other XITE-3.3-3.i386.rpm
BIFFSWAP
Section: User Commands (1)
Updated: 16 Mar 1998
Index
NAME
biffswap - swap byte order for bands in biff-file
SYNTAX
biffswap <infile> <outfile>
DESCRIPTION
Swap byte order for bands in biff-file. Works for all pixeltypes, including complex and double complex.
There is usually no need to use this program, because XITEtakes care of swapping bytes automatically. If an image(with multi-byte pixeltype) is written with an XITE versionprior to 3.0 and read with version 3.0 or later, or viceversa, use the following procedure.
- Determine the version of your XITE copy either by running
- xshowwith option -veror by reading the file$XITE_HOME/etc/.install/VERSION. If the option is notrecognized and the file does not exist, the version numberis less than 3.0.
- Determine the endian-ness of the writing and reading hosts.
- Examples of little-endian computers: DecStation, Dec alpha,PC (Intel x86).
Examples of big-endian computers: Sun, Silicon Graphics.
- Image written with version < 3.0, read with version >= 3.0
- If the writing host was little-endian, convert the imagefirst with the biffswapprogram (of version >= 3.0) on thereading host (regardless of reading host's endian-ness).Otherwise, no explicit conversion is necessary.
- Image written with version >= 3.0, read with version < 3.0
- This should not happen too often.
Writing host was little-endianWith a little-endian reading-host, convert the image withbiffswap(of version >= 3.0) on a big-endian machine.With a big-endian reading-host, the image can not be used.In this case, solve your problem by upgrading XITE on thereading-host.
Writing host was big-endianWith a little-endian reading-host, convert the image withbiffswap(of version >= 3.0) on a big-endian host or withbiffswap(of version < 3.0) on a little-endian host.With a big-endian reading-host, no explicit conversion isnecessary.
RETURN VALUE
0
SEE ALSO
biff_swap(3)
AUTHOR
Otto Milvang
ID
$Id: biffswap.c,v 1.17 1996/11/08 14:02:55 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RETURN VALUE
- SEE ALSO
- AUTHOR
- ID
This document was created byman2html,using the manual pages.