|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Stage LERC scalar planes masks and optional secondary compression. More...
#include "tiffiop.h"#include "Lerc_c_api.h"#include "zlib.h"#include <math.h>#include "zstd.h"#include <assert.h>Go to the source code of this file.
Data Structures | |
| struct | LERCState |
| Own LERC full-strile staging masks and secondary-compression state. More... | |
Macros | |
| #define | LIBDEFLATE_MAX_COMPRESSION_LEVEL 12 |
| Highest accepted TIFFTAG_ZIPQUALITY value: 12. | |
| #define | LSTATE_INIT_DECODE 0x01 |
| Bit 0x01 of the codec state field: decoding has been set up. | |
| #define | LSTATE_INIT_ENCODE 0x02 |
| Bit 0x02 of the codec state field: encoding has been set up. | |
| #define | LERC_AT_LEAST_VERSION(maj, min, patch) 0 |
| Fallback used when the LERC header lacks LERC_AT_LEAST_VERSION. | |
| #define | GetLERCState(tif) ((LERCState *)(tif)->tif_data) |
| Cast tif->tif_data to the LERCState. | |
| #define | LERCDecoderState(tif) GetLERCState(tif) |
| Alias of GetLERCState(), returning the LERCState for decoding. | |
| #define | LERCEncoderState(tif) GetLERCState(tif) |
| Alias of GetLERCState(), returning the LERCState for encoding. | |
Functions | |
| static int | LERCDecode (TIFF *tif, uint8_t *op, tmsize_t occ, uint16_t s) |
| Copy the next decoded byte extent from LERC staging. | |
| static int | LERCFixupTags (TIFF *tif) |
| Accept LERC tag fixup without changes. | |
| static int | LERCSetupDecode (TIFF *tif) |
| Select LERC decode mode. | |
| static int | GetLercDataType (TIFF *tif) |
| Map TIFF sample format and depth to a LERC scalar code. | |
| static int | SetupBuffers (TIFF *tif, LERCState *sp, const char *module) |
| Size and reserve full-strile sample and validity-mask storage. | |
| static int | LERCPreDecode (TIFF *tif, uint16_t s) |
| Decode and validate an entire LERC strile into owned staging. | |
| static int | LERCSetupEncode (TIFF *tif) |
| Select LERC encode mode. | |
| static int | LERCPreEncode (TIFF *tif, uint16_t s) |
| Validate LERC sample type and prepare full-strile input storage. | |
| static int | LERCEncode (TIFF *tif, uint8_t *bp, tmsize_t cc, uint16_t s) |
| Stage the next LERC input bytes for later frame encoding. | |
| static int | LERCPostEncode (TIFF *tif) |
| Encode a fully staged LERC strile and flush optional secondary compression. | |
| static void | LERCCleanup (TIFF *tif) |
| Release LERC staging masks secondary compressors and outer state. | |
| static int | LERCVSetFieldBase (TIFF *tif, uint32_t tag,...) |
| Forward a variadic assignment directly to the saved parent setter. | |
| static int | LERCVSetField (TIFF *tif, uint32_t tag, va_list ap) |
| Set LERC version error tolerance or secondary-compression controls. | |
| static int | LERCVGetField (TIFF *tif, uint32_t tag, va_list ap) |
| Retrieve cached LERC controls or delegate another tag query. | |
| int | TIFFInitLERC (TIFF *tif, int scheme) |
| Allocate LERC staging state and install frame callbacks and pseudo-tags. | |
Variables | |
| static const TIFFField | LERCFields [] |
| Define LERC parameters error tolerance version and secondary-compression tags. | |
Stage LERC scalar planes masks and optional secondary compression.
Definition in file tif_lerc.c.