#include "tif_predict.h"
#include "tiffiop.h"
#define PredictorState(tif) …
static int horAcc8(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horAcc16(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horAcc32(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horAcc64(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorAcc16(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorAcc32(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorAcc64(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horDiff8(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horDiff16(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horDiff32(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int horDiff64(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorDiff16(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorDiff32(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int swabHorDiff64(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int fpAcc(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int fpDiff(TIFF *tif, uint8_t *cp0, tmsize_t cc);
static int PredictorDecodeRow(TIFF *tif, uint8_t *op0, tmsize_t occ0,
uint16_t s);
static int PredictorDecodeTile(TIFF *tif, uint8_t *op0, tmsize_t occ0,
uint16_t s);
static int PredictorEncodeRow(TIFF *tif, uint8_t *bp, tmsize_t cc, uint16_t s);
static int PredictorEncodeTile(TIFF *tif, uint8_t *bp0, tmsize_t cc0,
uint16_t s);
static int PredictorSetup(TIFF *tif)
{ … }
static int PredictorSetupDecode(TIFF *tif)
{ … }
static int PredictorSetupEncode(TIFF *tif)
{ … }
#define REPEAT4(n, op) …
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horAcc8(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorAcc16(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horAcc16(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorAcc32(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horAcc32(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorAcc64(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horAcc64(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int fpAcc(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int PredictorDecodeRow(TIFF *tif, uint8_t *op0, tmsize_t occ0,
uint16_t s)
{ … }
static int PredictorDecodeTile(TIFF *tif, uint8_t *op0, tmsize_t occ0,
uint16_t s)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horDiff8(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horDiff16(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorDiff16(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horDiff32(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorDiff32(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int horDiff64(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int swabHorDiff64(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
TIFF_NOSANITIZE_UNSIGNED_INT_OVERFLOW
static int fpDiff(TIFF *tif, uint8_t *cp0, tmsize_t cc)
{ … }
static int PredictorEncodeRow(TIFF *tif, uint8_t *bp, tmsize_t cc, uint16_t s)
{ … }
static int PredictorEncodeTile(TIFF *tif, uint8_t *bp0, tmsize_t cc0,
uint16_t s)
{ … }
#define FIELD_PREDICTOR …
static const TIFFField predictFields[] = …;
static int PredictorVSetField(TIFF *tif, uint32_t tag, va_list ap)
{ … }
static int PredictorVGetField(TIFF *tif, uint32_t tag, va_list ap)
{ … }
static void PredictorPrintDir(TIFF *tif, FILE *fd, long flags)
{ … }
int TIFFPredictorInit(TIFF *tif)
{ … }
int TIFFPredictorCleanup(TIFF *tif)
{ … }