LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Fields

Own the leading libjpeg ABI context managers and TIFF transfer state. More...

Collaboration diagram for JPEGState:
[legend]

Data Fields

union { 
 
   struct jpeg_compress_struct   c 
 Compression view of the leading dependency context union. More...
 
   struct jpeg_decompress_struct   d 
 Decompression view of the leading dependency context union. More...
 
   struct jpeg_common_struct   comm 
 Common dependency view; leading layout supports callback casts. More...
 
} cinfo 
 Overlay the leading compression decompression and common dependency contexts.
 
int cinfo_initialized
 Whether dependency creation succeeded and destroy is required.
 
tiff_jpeg_error_mgr err
 Embedded dependency error manager routing to TIFF diagnostics.
 
JMP_BUF exit_jmpbuf
 Jump buffer valid only during a synchronous wrapper invocation.
 
struct jpeg_progress_mgr progress
 Embedded dependency scan-progress monitor.
 
tiff_jpeg_destination_mgr dest
 Embedded output manager borrowing raw or table storage.
 
tiff_jpeg_source_mgr src
 Embedded input manager borrowing raw/table or static EOI bytes.
 
TIFF * tif
 Borrowed handle backlink, live for all callbacks.
 
uint16_t photometric
 Photometric copied at codec setup.
 
uint16_t h_sampling
 Cached positive horizontal luminance sampling.
 
uint16_t v_sampling
 Cached positive vertical luminance sampling.
 
tmsize_t bytesperline
 Decoded line or raw clump-row byte extent for transfer.
 
uint32_t strile_width
 Current tile/truncated-strip pixel width.
 
uint32_t strile_height
 Current tile/truncated-strip row count.
 
TIFF_JSAMPARRAY ds_buffer [MAX_COMPONENTS]
 Borrowed dependency image-pool component-row arrays, invalidated by image-pool release.
 
int scancount
 Count of accumulated downsampled row groups.
 
int samplesperclump
 Samples per raw sampled clump.
 
JPEGOtherSettings otherSettings
 Owned settings/table pointers and borrowed parent hooks retained across ABI reinitialisation.
 
int encode_raw_error
 Latched failure preventing unsafe raw-encoder retry.
 

Detailed Description

Own the leading libjpeg ABI context managers and TIFF transfer state.

The dependency context union must be first so callbacks can cast it to JPEGState. Outer state and table storage use Ext allocation; dependency pool storage belongs to libjpeg. Keep the handle and all installed callbacks live until cleanup; longjmp frames are strictly synchronous.

Definition at line 433 of file tif_jpeg.c.

Field Documentation

◆ bytesperline

tmsize_t JPEGState::bytesperline

Decoded line or raw clump-row byte extent for transfer.

Definition at line 481 of file tif_jpeg.c.

Referenced by JPEGComputeStrileWidthHeightBytesPerLine(), JPEGDecode(), and JPEGEncode().

◆ c

struct jpeg_compress_struct JPEGState::c

◆ [union]

union { ... } JPEGState::cinfo

◆ cinfo_initialized

int JPEGState::cinfo_initialized

Whether dependency creation succeeded and destroy is required.

Definition at line 453 of file tif_jpeg.c.

Referenced by JPEGCleanup(), JPEGInitializeLibJPEG(), and TIFFInitJPEGCommon().

◆ comm

struct jpeg_common_struct JPEGState::comm

Common dependency view; leading layout supports callback casts.

Definition at line 449 of file tif_jpeg.c.

Referenced by JPEGInitializeLibJPEG(), JPEGPreDecode(), JPEGPreEncode(), JPEGSetupDecode(), JPEGSetupEncode(), TIFFjpeg_abort(), TIFFjpeg_alloc_sarray(), and TIFFjpeg_destroy().

◆ d

struct jpeg_decompress_struct JPEGState::d

◆ dest

tiff_jpeg_destination_mgr JPEGState::dest

◆ ds_buffer

TIFF_JSAMPARRAY JPEGState::ds_buffer[MAX_COMPONENTS]

Borrowed dependency image-pool component-row arrays, invalidated by image-pool release.

Definition at line 491 of file tif_jpeg.c.

Referenced by alloc_downsampled_buffers(), JPEGDecodeRaw(), JPEGEncodeRaw(), and JPEGPostEncode().

◆ encode_raw_error

int JPEGState::encode_raw_error

Latched failure preventing unsafe raw-encoder retry.

Definition at line 504 of file tif_jpeg.c.

Referenced by JPEGEncodeRaw(), and JPEGPreEncode().

◆ err

tiff_jpeg_error_mgr JPEGState::err

Embedded dependency error manager routing to TIFF diagnostics.

Definition at line 456 of file tif_jpeg.c.

Referenced by TIFFjpeg_create_compress(), and TIFFjpeg_create_decompress().

◆ exit_jmpbuf

JMP_BUF JPEGState::exit_jmpbuf

Jump buffer valid only during a synchronous wrapper invocation.

Definition at line 460 of file tif_jpeg.c.

Referenced by TIFFjpeg_error_exit(), and TIFFjpeg_progress_monitor().

◆ h_sampling

uint16_t JPEGState::h_sampling

◆ otherSettings

JPEGOtherSettings JPEGState::otherSettings

◆ photometric

uint16_t JPEGState::photometric

Photometric copied at codec setup.

Definition at line 475 of file tif_jpeg.c.

Referenced by JPEGPreDecode(), JPEGPreEncode(), JPEGSetupDecode(), JPEGSetupEncode(), and prepare_JPEGTables().

◆ progress

struct jpeg_progress_mgr JPEGState::progress

Embedded dependency scan-progress monitor.

Definition at line 463 of file tif_jpeg.c.

Referenced by TIFFjpeg_start_decompress().

◆ samplesperclump

int JPEGState::samplesperclump

Samples per raw sampled clump.

Definition at line 495 of file tif_jpeg.c.

Referenced by alloc_downsampled_buffers(), JPEGDecodeRaw(), and JPEGEncodeRaw().

◆ scancount

int JPEGState::scancount

Count of accumulated downsampled row groups.

Definition at line 493 of file tif_jpeg.c.

Referenced by JPEGDecodeRaw(), JPEGEncodeRaw(), JPEGPostEncode(), JPEGPreDecode(), and JPEGPreEncode().

◆ src

tiff_jpeg_source_mgr JPEGState::src

Embedded input manager borrowing raw/table or static EOI bytes.

Definition at line 470 of file tif_jpeg.c.

Referenced by JPEGDecode(), JPEGPreDecode(), std_fill_input_buffer(), std_init_source(), std_skip_input_data(), tables_init_source(), TIFFjpeg_data_src(), and TIFFjpeg_tables_src().

◆ strile_height

uint32_t JPEGState::strile_height

Current tile/truncated-strip row count.

Definition at line 485 of file tif_jpeg.c.

Referenced by JPEGComputeStrileWidthHeightBytesPerLine(), JPEGPreDecode(), and JPEGPreEncode().

◆ strile_width

uint32_t JPEGState::strile_width

Current tile/truncated-strip pixel width.

Definition at line 483 of file tif_jpeg.c.

Referenced by JPEGComputeStrileWidthHeightBytesPerLine(), JPEGDecode(), JPEGDecodeRaw(), JPEGPreDecode(), and JPEGPreEncode().

◆ tif

TIFF* JPEGState::tif

◆ v_sampling

uint16_t JPEGState::v_sampling

The documentation for this struct was generated from the following file: