~ubuntu-branches/ubuntu/karmic/tiff/karmic-security

« back to all changes in this revision

Viewing changes to html/man/TIFFswab.3t.html

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2004-10-14 07:57:59 UTC
  • Revision ID: james.westby@ubuntu.com-20041014075759-a77e7zuaetya8cp0
Tags: upstream-3.6.1
ImportĀ upstreamĀ versionĀ 3.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<meta name="generator" content="groff -Thtml, see www.gnu.org">
 
4
<meta name="Content-Style" content="text/css">
 
5
<title>SWAB</title>
 
6
</head>
 
7
<body>
 
8
 
 
9
<h1 align=center>SWAB</h1>
 
10
<a href="#NAME">NAME</a><br>
 
11
<a href="#SYNOPSIS">SYNOPSIS</a><br>
 
12
<a href="#DESCRIPTION">DESCRIPTION</a><br>
 
13
<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br>
 
14
<a href="#SEE ALSO">SEE ALSO</a><br>
 
15
 
 
16
<hr>
 
17
<!-- Creator     : groff version 1.17.2 -->
 
18
<!-- CreationDate: Mon Dec 22 00:39:27 2003 -->
 
19
<a name="NAME"></a>
 
20
<h2>NAME</h2>
 
21
<table width="100%" border=0 rules="none" frame="void"
 
22
       cols="2" cellspacing="0" cellpadding="0">
 
23
<tr valign="top" align="left">
 
24
<td width="10%"></td><td width="90%">
 
25
TIFFReverseBits, TIFFSwabShort, TIFFSwabLong, TIFFSwabArrayOfShort, TIFFSwabArrayOfLong - byte- and bit-swapping routines</td></table>
 
26
<a name="SYNOPSIS"></a>
 
27
<h2>SYNOPSIS</h2>
 
28
 
 
29
<table width="100%" border=0 rules="none" frame="void"
 
30
       cols="2" cellspacing="0" cellpadding="0">
 
31
<tr valign="top" align="left">
 
32
<td width="10%"></td><td width="90%">
 
33
<b>#include &lt;tiffio.h&gt;<br>
 
34
const unsigned char* TIFFGetBitRevTable(int reversed);<br>
 
35
void TIFFReverseBits(u_char* data, unsigned long nbytes)<br>
 
36
void TIFFSwabShort(uint16* data)<br>
 
37
void TIFFSwabLong(uint32* data)<br>
 
38
void TIFFSwabArrayOfShort(uint16* data, unsigned long
 
39
nshorts)<br>
 
40
void TIFFSwabArrayOfLong(uint32* data, unsigned long
 
41
nlongs)</b></td></table>
 
42
<a name="DESCRIPTION"></a>
 
43
<h2>DESCRIPTION</h2>
 
44
 
 
45
<table width="100%" border=0 rules="none" frame="void"
 
46
       cols="2" cellspacing="0" cellpadding="0">
 
47
<tr valign="top" align="left">
 
48
<td width="10%"></td><td width="90%">
 
49
The following routines are used by the library to swap 16-
 
50
and 32-bit data and to reverse the order of bits in
 
51
bytes.</td></table>
 
52
 
 
53
<table width="100%" border=0 rules="none" frame="void"
 
54
       cols="2" cellspacing="0" cellpadding="0">
 
55
<tr valign="top" align="left">
 
56
<td width="10%"></td><td width="90%">
 
57
<i>TIFFSwabShort</i> and <i>TIFFSwabLong</i> swap the bytes
 
58
in a single 16-bit and 32-bit item, respectively.
 
59
<i>TIFFSwabArrayOfShort</i> and <i>TIFFSwabArrayOfLong</i>
 
60
swap the bytes in an array of 16-bit and 32-bit items,
 
61
respectively.</td></table>
 
62
 
 
63
<table width="100%" border=0 rules="none" frame="void"
 
64
       cols="2" cellspacing="0" cellpadding="0">
 
65
<tr valign="top" align="left">
 
66
<td width="10%"></td><td width="90%">
 
67
<i>TIFFReverseBits</i> replaces each byte in <i>data</i>
 
68
with the equivalent bit-reversed value. This operation is
 
69
done with a lookup table, <i>TIFFBitRevTable</i> which is
 
70
declared public. A second table, <i>TIFFNoBitRevTable</i> is
 
71
also declared public; it is a lookup table that can be used
 
72
as an <i>identity function</i>; i.e. <i>TIFFNoBitRevTable[n]
 
73
== n</i>.</td></table>
 
74
<a name="DIAGNOSTICS"></a>
 
75
<h2>DIAGNOSTICS</h2>
 
76
 
 
77
<table width="100%" border=0 rules="none" frame="void"
 
78
       cols="2" cellspacing="0" cellpadding="0">
 
79
<tr valign="top" align="left">
 
80
<td width="10%"></td><td width="90%">
 
81
None.</td></table>
 
82
<a name="SEE ALSO"></a>
 
83
<h2>SEE ALSO</h2>
 
84
 
 
85
<table width="100%" border=0 rules="none" frame="void"
 
86
       cols="2" cellspacing="0" cellpadding="0">
 
87
<tr valign="top" align="left">
 
88
<td width="10%"></td><td width="90%">
 
89
<i>libtiff</i>(3T),</td></table>
 
90
<hr>
 
91
</body>
 
92
</html>