10139N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
10139N/A<!
ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A<
refmeta><
refentrytitle>TIFFswab</
refentrytitle><
manvolnum>3tiff</
manvolnum>
10139N/A<
refmiscinfo class="date">05 Apr 2004</
refmiscinfo>
10139N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
10139N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
10139N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
10139N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
10139N/A<
indexterm><
primary>TIFFswab</
primary></
indexterm><
indexterm><
primary>byte-
10139N/Aand bit-swapping routines</
primary></
indexterm>
10139N/A<
refnamediv id="TIFFswab-3tiff-name"><
refdescriptor>TIFFswab</
refdescriptor>
10139N/A<
refname>TIFFGetBitRevTable<?
Pub Caret></
refname><
refname>TIFFReverseBits
10139N/A</
refname><
refname>TIFFSwabShort</
refname><
refname>TIFFSwabLong</
refname>
10139N/A<
refname>TIFFSwabArrayOfShort</
refname><
refname>TIFFSwabArrayOfLong</
refname>
10139N/A<
refpurpose>byte- and bit-swapping routines</
refpurpose></
refnamediv>
10139N/A<
refsect1 id="TIFFswab-3tiff-synp"><
title>&synp-tt;</
title>
10139N/Aconst unsigned char* TIFFGetBitRevTable(int reversed);
10139N/Avoid TIFFReverseBits(u_char* data, unsigned long nbytes)
10139N/Avoid TIFFSwabShort(uint16* data)
10139N/Avoid TIFFSwabArrayOfShort(uint16* data, unsigned long nshorts)
10139N/Avoid TIFFSwabArrayOfLong(uint32* data, unsigned long nlongs)
10139N/A<
refsect1 id="TIFFswab-3tiff-desc"><
title>&desc-tt;</
title>
10139N/A<
para>The following routines are used by the library to swap 16- and 32-bit
10139N/Adata and to reverse the order of bits in bytes.</
para>
10139N/A<
para><
literal>TIFFSwabShort</
literal> and <
literal>TIFFSwabLong</
literal>
10139N/Aswap the bytes in a single 16-bit and 32-bit item, respectively.</
para>
10139N/A<
para><
literal>TIFFSwabArrayOfShort</
literal> and <
literal>TIFFSwabArrayOfLong
10139N/A</
literal> swap the bytes in an array of 16-bit and 32-bit items, respectively.
10139N/A<
para><
literal>TIFFReverseBits</
literal> replaces each byte in data with the
10139N/Aequivalent bit-reversed value. This operation is done with a lookup table, <
literal>
10139N/ATIFFBitRevTable</
literal>, which is declared public. A second table, <
literal>
10139N/ATIFFNoBitRevTable</
literal>, is also declared public, and is a lookup table
10139N/Athat can be used as an identity function. That is, <
literal>TIFFNoBitRevTable[n]
10139N/A<
refsect1 id="TIFFswab-3tiff-attr"><
title>&attr-tt;</
title>
10139N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
10139N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
10139N/Afor descriptions of the following attributes:</
para>
10139N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
10139N/A<
colspec colname="COLSPEC1" colwidth="1*">
10139N/A<
row><
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry><
entry align="center" 10139N/Avalign="middle">ATTRIBUTE VALUE</
entry></
row>
10139N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry 13623N/Acolname="COLSPEC1"><
para>Uncommitted</
para></
entry></
row>
10139N/A<
refsect1 id="TIFFswab-3tiff-also"><
title>&also-tt;</
title>
10139N/A<!--Reference to another man page--> 10139N/A<!--Reference to a Help manual--> 10139N/A<
para><
citerefentry><
refentrytitle>libtiff</
refentrytitle><
manvolnum>3</
manvolnum>
10139N/A<
refsect1 id="TIFFswab-3tiff-note"><
title>¬e-tt;</
title>
10139N/A<
para>This man page was originally written by Sam Leffler. Updated by Breda
10139N/AMcColgan, Sun Microsystems Inc., 2004.</
para>