Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::TiffReader Class Reference

TIFF reader. More...

#include <image_codecs.hpp>

Static Public Member Functions

static std::optional< DecodedRaster > decode (const uint8_t *data, std::size_t size)
static bool is_tiff (const uint8_t *data, std::size_t size)

Detailed Description

TIFF reader.

Decodes a Baseline TIFF 6.0 subset: • Endianness: both little-endian (II) and big-endian (MM). • Bits per sample: 8. • Samples per pixel: 1 (grayscale), 3 (RGB), 4 (RGBA). • Compression: 1 (none) and 32773 (PackBits). • Planar config: 1 (chunky). • Single strip OR multiple strips assembled in StripOffsets order. Returns nullopt for anything outside that envelope. Callers that need broader coverage should integrate libtiff at the application layer (Pulp does not bundle libtiff to keep the dependency footprint small).

Member Function Documentation

◆ decode()

std::optional< DecodedRaster > pulp::canvas::TiffReader::decode ( const uint8_t * data,
std::size_t size )
static

◆ is_tiff()

bool pulp::canvas::TiffReader::is_tiff ( const uint8_t * data,
std::size_t size )
static

The documentation for this class was generated from the following file: