roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>SWAB</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SWAB

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFGetBitRevTable, TIFFReverseBits, TIFFSwabShort,

roentgen b75cab
TIFFSwabLong, TIFFSwabArrayOfShort, TIFFSwabArrayOfLong
roentgen b75cab
− byte- and bit-swapping routines

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

#include <tiffio.h>

roentgen b75cab
roentgen b75cab

const unsigned char* TIFFGetBitRevTable(int

roentgen b75cab
reversed)
roentgen b75cab
void TIFFReverseBits(u_char *data, unsigned
roentgen b75cab
long nbytes)
roentgen b75cab
void TIFFSwabShort(uint16 *data)
roentgen b75cab
void TIFFSwabLong(uint32 *data)
roentgen b75cab
void TIFFSwabArrayOfShort(uint16 *data,
roentgen b75cab
unsigned long nshorts)
roentgen b75cab
void TIFFSwabArrayOfLong(uint32 *data,
roentgen b75cab
unsigned long nlongs)

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The following routines are used by the library to swap

roentgen b75cab
16- and 32-bit data and to reverse the order of bits in
roentgen b75cab
bytes.

roentgen b75cab
roentgen b75cab

TIFFSwabShort and TIFFSwabLong swap the

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

roentgen b75cab
roentgen b75cab

TIFFReverseBits replaces each byte in data

roentgen b75cab
with the equivalent bit-reversed value. This operation is
roentgen b75cab
performed with a lookup table, which is returned using the
roentgen b75cab
TIFFGetBitRevTable function. reversed
roentgen b75cab
parameter specifies which table should be returned. Supply
roentgen b75cab
1 if you want bit reversal table. Supply 0 to
roentgen b75cab
get the table that do not reverse bit values. It is a lookup
roentgen b75cab
table that can be used as an identity function; i.e.
roentgen b75cab
TIFFNoBitRevTable[n] == n.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DIAGNOSTICS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

None.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab