LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Macros | Functions
tif_next.c File Reference

Implement the NeXT 2-bit greyscale decoder. More...

#include "tiffiop.h"
Include dependency graph for tif_next.c:

Go to the source code of this file.

Macros

#define SETPIXEL(op, v)
 Store a 2-bit pixel into the packed output byte at op.
 
#define LITERALROW   0x00
 NeXT row opcode: the scanline follows as td_scanlinesize literal bytes.
 
#define LITERALSPAN   0x40
 NeXT row opcode: a 16-bit big-endian offset and length precede a literal byte span within the white scanline.
 

Functions

static int NeXTDecode (TIFF *tif, uint8_t *buf, tmsize_t occ, uint16_t s)
 Expand NeXT literal rows spans and grayscale runs.
 
static int NeXTPreDecode (TIFF *tif, uint16_t s)
 Validate two-bit single-plane NeXT decoding.
 
int TIFFInitNeXT (TIFF *tif, int scheme)
 Install NeXT transfer callbacks.
 

Detailed Description

Implement the NeXT 2-bit greyscale decoder.

Definition in file tif_next.c.