10#if defined(HAVE_JPEGTURBO_DUAL_MODE_8_12)
18#define JPEG_DUAL_MODE_8_12
21#if defined(JPEG_DUAL_MODE_8_12)
30#define FROM_TIF_JPEG_12
42#define TIFFInitJPEG TIFFInitJPEG_12
44#ifdef TIFFJPEGIsFullStripRequired
45#undef TIFFJPEGIsFullStripRequired
54#define TIFFJPEGIsFullStripRequired TIFFJPEGIsFullStripRequired_12
73int TIFFInitJPEG_12(
TIFF *tif,
int scheme);
75#if !defined(HAVE_JPEGTURBO_DUAL_MODE_8_12)
76#include LIBJPEG_12_PATH
82 int scheme,
int is_encode)
85 uint8_t *new_tif_data;
93 if (new_tif_data == NULL)
96 "No space for JPEG state block");
#define JState(tif)
Borrow the handle-owned JPEG state.
int TIFFReInitJPEG_12(TIFF *tif, const JPEGOtherSettings *otherSettings, int scheme, int is_encode)
Replace JPEG state with the twelve-bit ABI and restore saved options.
static int JPEGSetupEncode(TIFF *tif)
Initialise JPEG compression parameters tables and output manager.
static int JPEGSetupDecode(TIFF *tif)
Initialise JPEG decompression tables sampling and source managers.
static void TIFFInitJPEGCommon(TIFF *tif)
Install common JPEG callbacks defaults and handle backlink.
void * _TIFFreallocExt(TIFF *tif, void *p, tmsize_t s)
Resize a handle-aware block or release it for a nonpositive size.
void TIFFErrorExtR(TIFF *tif, const char *module, const char *fmt,...)
Dispatch a error diagnostic to the configured handlers.
void _TIFFmemset(void *p, int v, tmsize_t c)
Fill a byte range with one repeated byte.
Preserve ABI-independent JPEG options and saved parent hooks.
Own the leading libjpeg ABI context managers and TIFF transfer state.
JPEGOtherSettings otherSettings
Owned settings/table pointers and borrowed parent hooks retained across ABI reinitialisation.
Hold private state for one open TIFF library instance.
uint8_t * tif_data
Codec-private storage; allocation and cleanup follow the selected codec.
Bridge libjpeg error frames managers and JPEG-in-TIFF transfers.
Declare private library state, callbacks, and implementation helpers.