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

Implement the PackBits byte-run codec. More...

#include "tif_bytecursor.h"
#include "tiffiop.h"
#include <stdio.h>
Include dependency graph for tif_packbits.c:

Go to the source code of this file.

Functions

static int PackBitsPreEncode (TIFF *tif, uint16_t s)
 Allocate and cache the PackBits row byte extent.
 
static int PackBitsPostEncode (TIFF *tif)
 Release the PackBits cached row-size allocation.
 
static int PackBitsEncode (TIFF *tif, uint8_t *buf, tmsize_t cc, uint16_t s)
 Encode one byte run region using PackBits packets.
 
static int PackBitsEncodeChunk (TIFF *tif, uint8_t *bp, tmsize_t cc, uint16_t s)
 Split PackBits input into row-bounded encoding requests.
 
static int PackBitsDecode (TIFF *tif, uint8_t *op, tmsize_t occ, uint16_t s)
 Expand PackBits packets into a bounded byte destination.
 
static uint64_t PackBitsGetMaxCompressionRatio (TIFF *tif)
 Report the PackBits expansion heuristic.
 
int TIFFInitPackBits (TIFF *tif, int scheme)
 Install PackBits transfer callbacks.
 

Detailed Description

Implement the PackBits byte-run codec.

Definition in file tif_packbits.c.