libtiff/html/man/TIFFswab.3t.html
1999-11-23 04:29:23 +00:00

109 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML><HEAD><TITLE>Manpage of SWAB</TITLE>
</HEAD><BODY BGCOLOR=WHITE><FONT FACE="helvetica, sans, arial">
<H1>SWAB</H1>
Section: Misc. Reference Manual Pages (3T)<BR>Updated: December 16, 1991<BR><A HREF="#index">Index</A>
<BR><A HREF="index.html">Return to Main Contents</A>
<HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
TIFFReverseBits, TIFFSwabShort, TIFFSwabLong, TIFFSwabArrayOfShort, TIFFSwabArrayOfLong - byte- and bit-swapping routines
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>#include &lt;<A HREF="file:/usr/include/tiffio.h">tiffio.h</A>&gt;</B>
<BR>
<B>const unsigned char* TIFFGetBitRevTable(int reversed);</B>
<BR>
<B>void TIFFReverseBits(u_char* data, unsigned long nbytes)</B>
<BR>
<B>void TIFFSwabShort(uint16* data)</B>
<BR>
<B>void TIFFSwabLong(uint32* data)</B>
<BR>
<B>void TIFFSwabArrayOfShort(uint16* data, unsigned long nshorts)</B>
<BR>
<B>void TIFFSwabArrayOfLong(uint32* data, unsigned long nlongs)</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The following routines are used by the library to swap
16- and 32-bit data and to reverse the order of bits in bytes.
<P>
<I>TIFFSwabShort</I>
and
<I>TIFFSwabLong</I>
swap the bytes in a single 16-bit and 32-bit item, respectively.
<I>TIFFSwabArrayOfShort</I>
and
<I>TIFFSwabArrayOfLong</I>
swap the bytes in an array of 16-bit and 32-bit items, respectively.
<P>
<I>TIFFReverseBits</I>
replaces each byte in
<I>data</I>
with the equivalent bit-reversed value.
This operation is done with a lookup table,
<I>TIFFBitRevTable</I>
which is declared public.
A second table,
<I>TIFFNoBitRevTable</I>
is also declared public; it is a lookup table that
can be used as an
<I>identity function</I>;
i.e.
<I>TIFFNoBitRevTable[n] == n</I>.
<A NAME="lbAE">&nbsp;</A>
<H2>DIAGNOSTICS</H2>
None.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<I><A HREF="libtiff.3t.html">libtiff</A></I>(3T),
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">DIAGNOSTICS</A><DD>
<DT><A HREF="#lbAF">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="index.html">man2html</A>,
using the manual pages.<BR>
Time: 01:31:39 GMT, November 23, 1999
</BODY>
</HTML>