21#ifndef TINYTIFFREADER_H
22#define TINYTIFFREADER_H
24#include "tinytiff_export.h"
25#include "tinytiff_defs.h"
TINYTIFF_EXPORT uint16_t TinyTIFFReader_getSampleFormat(TinyTIFFReaderFile *tiff)
return the sample format of the current frame
Definition tinytiffreader.c:1055
TINYTIFF_EXPORT uint16_t TinyTIFFReader_getBitsPerSample(TinyTIFFReaderFile *tiff, int sample)
return the bits per sample of the current frame
Definition tinytiffreader.c:1062
TINYTIFF_EXPORT int TinyTIFFReader_readNext(TinyTIFFReaderFile *tiff)
reads the next frame from a multi-frame TIFF
Definition tinytiffreader.c:1024
TINYTIFF_EXPORT void TinyTIFFReader_close(TinyTIFFReaderFile *tiff)
close a given TIFF file
Definition tinytiffreader.c:1006
TINYTIFF_EXPORT TinyTIFFReaderFile * TinyTIFFReader_open(const char *filename)
open TIFF file for reading
Definition tinytiffreader.c:945
TINYTIFF_EXPORT uint16_t TinyTIFFReader_getSamplesPerPixel(TinyTIFFReaderFile *tiff)
return the samples per pixel of the current frame
Definition tinytiffreader.c:1069
TINYTIFF_EXPORT uint16_t TinyTIFFReader_getResolutionUnit(TinyTIFFReaderFile *tiff)
return the base unit for resolution
Definition tinytiffreader.c:1120
TINYTIFF_EXPORT int TinyTIFFReader_wasError(TinyTIFFReaderFile *tiff)
returns TINYTIFF_TRUE (non-zero) when there was an error in the last function call,...
Definition tinytiffreader.c:332
TINYTIFF_EXPORT int TinyTIFFReader_getSampleData(TinyTIFFReaderFile *tiff, void *buffer, uint16_t sample)
read the given sample from the current frame into the given buffer, the byteorder is transformed to t...
Definition tinytiffreader.c:924
TINYTIFF_EXPORT uint32_t TinyTIFFReader_getWidth(TinyTIFFReaderFile *tiff)
return the width of the current frame
Definition tinytiffreader.c:1033
TINYTIFF_EXPORT uint32_t TinyTIFFReader_countFrames(TinyTIFFReaderFile *tiff)
return the width of the current frame
Definition tinytiffreader.c:1078
TINYTIFF_EXPORT int TinyTIFFReader_hasNext(TinyTIFFReaderFile *tiff)
returns TINYTIFF_TRUE (non-zero) if another frame exists in the TIFF file
Definition tinytiffreader.c:1015
TINYTIFF_EXPORT int TinyTIFFReader_getSampleData_s(TinyTIFFReaderFile *tiff, void *buffer, unsigned long buffer_size, uint16_t sample)
read the given sample from the current frame into the given buffer, the byteorder is transformed to t...
Definition tinytiffreader.c:928
TINYTIFF_EXPORT const char * TinyTIFFReader_getVersion()
returns the version number of TinyTIFFReader
Definition tinytiffreader.c:1127
TINYTIFF_EXPORT int TinyTIFFReader_success(TinyTIFFReaderFile *tiff)
returns TINYTIFF_TRUE (non-zero) when there was no error in the last function call,...
Definition tinytiffreader.c:337
TINYTIFF_EXPORT float TinyTIFFReader_getYResolution(TinyTIFFReaderFile *tiff)
return the pixels per basic resolution unit in image height direction
Definition tinytiffreader.c:1113
TINYTIFF_EXPORT const char * TinyTIFFReader_getLastError(TinyTIFFReaderFile *tiff)
returns a pointer to the last error message
Definition tinytiffreader.c:327
TINYTIFF_EXPORT const char * TinyTIFFReader_getImageDescription(TinyTIFFReaderFile *tiff)
return the image description of the current frame
Definition tinytiffreader.c:1047
TINYTIFF_EXPORT float TinyTIFFReader_getXResolution(TinyTIFFReaderFile *tiff)
return the pixels per basic resolution unit in image width direction
Definition tinytiffreader.c:1106
TINYTIFF_EXPORT uint32_t TinyTIFFReader_getHeight(TinyTIFFReaderFile *tiff)
return the height of the current frame
Definition tinytiffreader.c:1040
Definition tinytiffreader.c:154