GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TIFFSWAB(3tiff) LibTIFF TIFFSWAB(3tiff)

TIFFswab - byte- and bit-swapping routines

#include <tiffio.h>















The following routines are used by the library to swap 16-, 32- and 64-bit data and to reverse the order of bits in bytes.

TIFFSwabShort() and TIFFSwabLong() and TIFFSwabFloat() swap the bytes in a single 16- and 32-bit item, respectively.

TIFFSwabLong8() and TIFFSwabDouble() swap the bytes in a single 64-bit item.

TIFFSwabArrayOfTriples() swap the first and the third byte of each triple (three bytes) within the byte array. The second byte of each triple stays untouched.

TIFFSwabArrayOfShort() and TIFFSwabArrayOfLong(), TIFFSwabArrayOfFloat() swap the bytes in an array of 16- and 32-bit items, respectively.

TIFFSwabArrayOfLong8() and TIFFSwabArrayOfDouble() swap the bytes in an array of 64-bit items.

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

None.

libtiff (3tiff)

LibTIFF contributors

1988-2022, LibTIFF contributors

September 11, 2024 4.7

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.