*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ifl/TIFFswab (3)              
Title
Content
Arch
Section
 

Contents


SWAB(3T)	  Image	Format Library C++ Reference Manual	      SWAB(3T)


NAME    [Toc]    [Back]

     TIFFReverseBits, TIFFSwabShort, TIFFSwabLong, TIFFSwabArrayOfShort,
     TIFFSwabArrayOfLong - byte- and bit-swapping routines

SYNOPSIS    [Toc]    [Back]

     #include <tiffio.h>
     const unsigned char* TIFFGetBitRevTable(int reversed);
     void TIFFReverseBits(u_char* data,	unsigned long nbytes)
     void TIFFSwabShort(uint16*	data)
     void TIFFSwabLong(uint32* data)
     void TIFFSwabArrayOfShort(uint16* data, unsigned long nshorts)
     void TIFFSwabArrayOfLong(uint32* data, unsigned long nlongs)

DESCRIPTION    [Toc]    [Back]

     The following routines are	used by	the library to swap 16-	and 32-bit
     data and to reverse the order of bits in bytes.

     TIFFSwabShort and TIFFSwabLong swap the bytes in a	single 16-bit and 32-
     bit item, respectively.  TIFFSwabArrayOfShort and TIFFSwabArrayOfLong
     swap the bytes in an array	of 16-bit and 32-bit items, respectively.

     TIFFReverseBits replaces each byte	in data	with the equivalent bitreversed
 value.  This operation is	done with a lookup table,
     TIFFBitRevTable which is declared public.	A second table,
     TIFFNoBitRevTable is also declared	public;	it is a	lookup table that can
     be	used as	an identity function; i.e.  TIFFNoBitRevTable[n] == n.

DIAGNOSTICS    [Toc]    [Back]

     None.

SEE ALSO    [Toc]    [Back]

      
      
     libtiff(3T),


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
bswap64 NetBSD byte-order swapping functions
bswap NetBSD byte-order swapping functions
bswap16 NetBSD byte-order swapping functions
bswap32 NetBSD byte-order swapping functions
remote_nfs_swap HP-UX enable swapping across NFS
putshort Tru64 Places short byte quantities into the byte stream
putlong Tru64 Places long byte quantities into the byte stream
swapon FreeBSD specify devices for paging and swapping
swapctl FreeBSD specify devices for paging and swapping
swapoff FreeBSD specify devices for paging and swapping
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service