TinyTIFF
a lightweight C/C++ library for reading and writing TIFF files
|
Data Structures | |
struct | TinyTIFFWriterFile |
this struct represents a TIFF file More... | |
Macros | |
#define | TIFF_HEADER_MAX_ENTRIES 20 |
maximum number of field entries in a TIFF header | |
#define | TIFF_HEADER_SIZE 500 |
fixed size of the TIFF frame header in bytes | |
#define | WRITE16DIRECT(filen, data) |
write a 2-byte word data directly into a file fileno | |
#define | WRITE16DIRECT_CAST(filen, data) |
write a data word data , which is first cast into a 2-byte word directly into a file fileno | |
#define | WRITE32DIRECT(filen, data) |
write a 4-byte word data directly into a file fileno | |
#define | WRITE32DIRECT_CAST(filen, data) |
write a data word data , which is first cast into a 4-byte word directly into a file fileno | |
#define | WRITE8DIRECT(filen, data) |
write a data word data , which is first cast into a 1-byte word directly into a file fileno | |
#define | WRITEH16_LE(filen, data) |
writes a value, which is cast to a 16-bit word at the current position into the current file header and advances the position by 4 bytes | |
#define | WRITEH16DIRECT_LE(filen, data) |
writes a 16-bit word at the current position into the current file header and advances the position by 4 bytes | |
#define | WRITEH32_LE(filen, data) |
writes a value, which is cast to a 32-bit word at the current position into the current file header and advances the position by 4 bytes | |
#define | WRITEH32DIRECT_LE(filen, data) |
writes a 32-bit word at the current position into the current file header and advances the position by 4 bytes | |
#define | WRITEH8(filen, data) { filen->lastHeader[filen->pos]=data; filen->pos+=1; } |
writes an 8-bit word at the current position into the current file header and advances the position by 4 bytes | |
#define | WRITEH8DIRECT(filen, data) { filen->lastHeader[filen->pos]=data; filen->pos+=1; } |
writes an 8-bit word at the current position into the current file header and advances the position by 4 bytes | |
Functions | |
int | TIFF_get_byteorder () |
determines the byte order of the system | |
void | TinyTIFFWriter_writeIFDEntrySHORT (TinyTIFFWriterFile *tiff, uint16_t tag, uint16_t data) |
write an 16-bit word IFD entry | |
write a 2-byte word data directly into a file fileno
write a 4-byte word data directly into a file fileno