11#ifndef BE_IMAGE_TIFF_H_
12#define BE_IMAGE_TIFF_H_
28 const std::string &identifier =
"",
34 const std::string &identifier =
"",
125 getDecompressionStream()
Represent attributes common to all images.
static void defaultStatusCallback(const Framework::Status &status)
Default handling of statuses sent from image processing libraries.
std::function< void(const Framework::Status)> statusCallback_t
TIFF(const Memory::uint8Array &data, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
TIFF(const uint8_t *data, const uint64_t size, const std::string &identifier="", const statusCallback_t &statusCallback=Image::defaultStatusCallback)
static bool isTIFF(const Memory::uint8Array &data)
Determine if image is encoded as TIFF.
Memory::uint8Array getRawData() const
Accessor for the raw image data.
static std::string libtiffMessageToString(const char *module, const char *format, va_list args)
Convert libtiff message to string.
static bool isTIFF(const uint8_t *data, const uint64_t size)
Determine if image is encoded as TIFF.
Memory::uint8Array getRawGrayscaleData(uint8_t depth) const
Accessor for decompressed data in grayscale.
Wrap a memory buffer with an index.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
Struct passed to libtiff client functions.
Memory::IndexedBuffer * ib
Indexed buffer to TIFF object in memory.
const TIFF * tiffObject
Pointer to "this" TIFF object.