IparsePixtyp
[ XITE Reference Manual | XITE home ]
Name
IparsePixtyp - return the BIFF pixeltype from a string
representation
Syntax
#include <xite/biff.h>
IPIXTYP IparsePixtyp( char *pixtyp );
Description
Return the pixeltype of pixtyp. Pixeltype is defined by
the pixeltype definitions in biff.h.
Legal forms of pixtyp are the pixeltype numbers, the
full pixeltype name (as defined by Ipixname) and short forms
of the pixeltype name.
Full name Short name Number Symbolic number
-----------------------------------------------
uns_bit ui 0 Ibit_typ
uns_2bit u2i 1 Ibit2_typ
uns_nibble un 2 Inibble_typ
uns_byte ub 3 Iu_byte_typ
sign_byte sb 4 Is_byte_typ
uns_short us 5 Iu_short_typ
sign_short ss 6 Is_short_typ
integer i 7 Integer_typ
real r/f 8 Ireal_typ
complex c 9 Icomplex_typ
double d 10 Idouble_typ
dcomplex dc 11 Id_complex_typ
See also
Ipixname(5), Ipixtyp(5), Ipixsize(5)
Return value
Pixeltype if pixtyp is ok, Iunknown_typ otherwise.
Author
Tor Lønnestad and Svein Bøe, BLAB, Ifi, UiO