24#ifndef TINYTIFFWRITER_H
25#define TINYTIFFWRITER_H
27#include "tinytiff_export.h"
28#include "tinytiff_defs.h"
TINYTIFF_EXPORT const char * TinyTIFFWriter_getVersion()
returns the version number of TinyTIFFReader
Definition tinytiffwriter.c:1071
TinyTIFFWriterSampleInterpretation
allows to specify in TinyTIFFWriter_open() how to interpret the image channels
Definition tinytiffwriter.h:98
TINYTIFF_EXPORT int TinyTIFFWriter_wasError(TinyTIFFWriterFile *tiff)
returns TRUE (non-zero) when there was an error in the last function call, or FALSE (zero) if there w...
Definition tinytiffwriter.c:1058
TINYTIFF_EXPORT int TinyTIFFWriter_writeImageChunkyReorder(TinyTIFFWriterFile *tiff, const void *data)
write a new image to the give TIFF file, in planar configuration, i.e. the image data is reorganized ...
Definition tinytiffwriter.c:1037
TINYTIFF_EXPORT int TinyTIFFWriter_writeImage(TinyTIFFWriterFile *tiff, const void *data)
Write a new image to the give TIFF file, in chunky configuration, expects the data to be chunky too....
Definition tinytiffwriter.c:1042
TINYTIFF_EXPORT int TinyTIFFWriter_writeImageMultiSample(TinyTIFFWriterFile *tiff, const void *data, enum TinyTIFFSampleLayout inputOrganisation, enum TinyTIFFSampleLayout outputOrganization)
write a new image to the give TIFF file. the image ist stored in separate planes or planar configurat...
Definition tinytiffwriter.c:895
TINYTIFF_EXPORT void TinyTIFFWriter_close(TinyTIFFWriterFile *tiff)
close a given TIFF file
Definition tinytiffwriter.c:1047
TINYTIFF_EXPORT int TinyTIFFWriter_writeImagePlanarReorder(TinyTIFFWriterFile *tiff, const void *data)
write a new image to the give TIFF file, in planar configuration, i.e. the image data is reorganized ...
Definition tinytiffwriter.c:1032
TINYTIFF_EXPORT TinyTIFFWriterFile * TinyTIFFWriter_open(const char *filename, uint16_t bitsPerSample, enum TinyTIFFWriterSampleFormat sampleFormat, uint16_t samples, uint32_t width, uint32_t height, enum TinyTIFFWriterSampleInterpretation sampleInterpretation)
create a new TIFF file
Definition tinytiffwriter.c:704
TINYTIFF_EXPORT const char * TinyTIFFWriter_getLastError(TinyTIFFWriterFile *tiff)
returns a pointer to the last error message
Definition tinytiffwriter.c:1052
TINYTIFF_EXPORT void TinyTIFFWriter_close_withdescription(TinyTIFFWriterFile *tiff, const char *imageDescription)
close a given TIFF file and write the given string into the IMageDescription tag of the first frame i...
Definition tinytiffwriter.c:812
TinyTIFFWriterSampleFormat
allows to specify in TinyTIFFWriter_open() the type of the data
Definition tinytiffwriter.h:111
TINYTIFF_EXPORT void TinyTIFFWriter_close_withmetadatadescription(TinyTIFFWriterFile *tiff, double pixel_width, double pixel_height, double frametime, double deltaz)
close a given TIFF file
Definition tinytiffwriter.c:852
TINYTIFF_EXPORT int TinyTIFFWriter_getMaxDescriptionTextSize()
maximum size of the imageDescription field in the first frame (including trailing 0,...
Definition tinytiffwriter.c:68
TINYTIFF_EXPORT int TinyTIFFWriter_success(TinyTIFFWriterFile *tiff)
returns TINYTIFF_TRUE (non-zero) when there was no error in the last function call,...
Definition tinytiffwriter.c:1064
@ TinyTIFFWriter_AutodetectSampleInterpetation
Definition tinytiffwriter.h:99
@ TinyTIFFWriter_Greyscale
Definition tinytiffwriter.h:100
@ TinyTIFFWriter_RGB
Definition tinytiffwriter.h:102
@ TinyTIFFWriter_RGBA
Definition tinytiffwriter.h:103
@ TinyTIFFWriter_GreyscaleAndAlpha
Definition tinytiffwriter.h:101
@ TinyTIFFWriter_Float
Definition tinytiffwriter.h:114
@ TinyTIFFWriter_UInt
Definition tinytiffwriter.h:112
@ TinyTIFFWriter_Int
Definition tinytiffwriter.h:113
TinyTIFFSampleLayout
describes the layout of multi-sample images in memory
Definition tinytiff_defs.h:73
this struct represents a TIFF file
Definition tinytiffwriter.c:103
uint32_t width
width of the frames
Definition tinytiffwriter.c:125
uint16_t samples
number of samples of the frames
Definition tinytiffwriter.c:133
uint32_t height
height of the frames
Definition tinytiffwriter.c:127