LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
tif_compress.c File Reference

Register, look up and select compression schemes, and provide the default codec methods. More...

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

Go to the source code of this file.

Data Structures

struct  _codec
 Link a dynamically registered codec allocation. More...
 

Typedefs

typedef struct _codec codec_t
 Link a dynamically registered codec allocation.
 

Functions

static int TIFFNoEncode (TIFF *tif, const char *method)
 Diagnose an unsupported encoder operation.
 
int _TIFFNoRowEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec encoding.
 
int _TIFFNoStripEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec encoding.
 
int _TIFFNoTileEncode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec encoding.
 
static int TIFFNoDecode (TIFF *tif, const char *method)
 Diagnose an unsupported decoder operation.
 
static int _TIFFNoFixupTags (TIFF *tif)
 Accept a no-op codec tag fixup.
 
int _TIFFNoRowDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec decoding.
 
int _TIFFNoStripDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec decoding.
 
int _TIFFNoTileDecode (TIFF *tif, uint8_t *pp, tmsize_t cc, uint16_t s)
 Report unsupported codec decoding.
 
int _TIFFNoSeek (TIFF *tif, uint32_t off)
 Report unsupported codec seeking.
 
int _TIFFNoPreCode (TIFF *tif, uint16_t s)
 Accept a no-op codec preparation.
 
static int _TIFFtrue (TIFF *tif)
 Accept a no-op codec setup or completion.
 
static void _TIFFvoid (TIFF *tif)
 Perform no codec close or cleanup work.
 
static uint64_t _TIFFDefaultGetMaxCompressionRatio (TIFF *tif)
 Report an unknown codec compression ratio.
 
static uint64_t _TIFFGetMaxCompressionRatioOne (TIFF *tif)
 Report the uncompressed ratio of one.
 
void _TIFFSetDefaultCompressionState (TIFF *tif)
 Install fallback codec callbacks and reset raw-access flags.
 
int TIFFSetCompressionScheme (TIFF *tif, int scheme)
 Reset methods and install the selected compression implementation.
 
uint64_t TIFFGetMaxCompressionRatio (TIFF *tif)
 Query the codec's allocation-recovery compression-ratio heuristic.
 
const TIFFCodec * TIFFFindCODEC (uint16_t scheme)
 Find the highest-priority descriptor for a compression scheme.
 
TIFFCodec * TIFFRegisterCODEC (uint16_t scheme, const char *name, TIFFInitMethod init)
 Register a codec descriptor ahead of built-in and older entries.
 
void TIFFUnRegisterCODEC (TIFFCodec *c)
 Remove and free an exact registered codec descriptor.
 
TIFFCodec * TIFFGetConfiguredCODECs (void)
 Allocate a terminated snapshot of registered and configured codec descriptors.
 

Variables

static codec_t * registeredCODECS = NULL
 Head the newest-first registered codec list.
 

Detailed Description

Register, look up and select compression schemes, and provide the default codec methods.

Definition in file tif_compress.c.