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

SWAB

kusano 7d535a
NAME
kusano 7d535a
SYNOPSIS
kusano 7d535a
DESCRIPTION
kusano 7d535a
DIAGNOSTICS
kusano 7d535a
SEE ALSO
kusano 7d535a
kusano 7d535a

kusano 7d535a
kusano 7d535a

NAME

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

TIFFGetBitRevTable, TIFFReverseBits, TIFFSwabShort,

kusano 7d535a
TIFFSwabLong, TIFFSwabArrayOfShort, TIFFSwabArrayOfLong
kusano 7d535a
− byte- and bit-swapping routines

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

SYNOPSIS

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

#include <tiffio.h>

kusano 7d535a
kusano 7d535a

const unsigned char* TIFFGetBitRevTable(int

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

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

DESCRIPTION

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

The following routines are used by the library to swap

kusano 7d535a
16- and 32-bit data and to reverse the order of bits in
kusano 7d535a
bytes.

kusano 7d535a
kusano 7d535a

TIFFSwabShort and TIFFSwabLong swap the

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

kusano 7d535a
kusano 7d535a

TIFFReverseBits replaces each byte in data

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

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

DIAGNOSTICS

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

None.

kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

SEE ALSO

kusano 7d535a
kusano 7d535a
kusano 7d535a
       cols="2" cellspacing="0" cellpadding="0">
kusano 7d535a
kusano 7d535a
kusano 7d535a
kusano 7d535a

libtiff(3TIFF)

kusano 7d535a
kusano 7d535a

Libtiff library home page:

kusano 7d535a
http://www.remotesensing.org/libtiff/

kusano 7d535a
kusano 7d535a
kusano 7d535a

kusano 7d535a
kusano 7d535a