|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Own the leading libjpeg ABI context managers and TIFF transfer state. More...
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. | ||
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.
| 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().
| struct jpeg_compress_struct JPEGState::c |
Compression view of the leading dependency context union.
Definition at line 440 of file tif_jpeg.c.
Referenced by JPEGEncode(), JPEGEncodeRaw(), JPEGInitializeLibJPEG(), JPEGPostEncode(), JPEGPreEncode(), JPEGSetupEncode(), suppress_huff_table(), suppress_quant_table(), TIFFjpeg_create_compress(), TIFFjpeg_data_dest(), TIFFjpeg_finish_compress(), TIFFjpeg_set_colorspace(), TIFFjpeg_set_defaults(), TIFFjpeg_set_quality(), TIFFjpeg_start_compress(), TIFFjpeg_suppress_tables(), TIFFjpeg_tables_dest(), TIFFjpeg_write_raw_data(), TIFFjpeg_write_scanlines(), TIFFjpeg_write_tables(), unsuppress_huff_table(), and unsuppress_quant_table().
| union { ... } JPEGState::cinfo |
Overlay the leading compression decompression and common dependency contexts.
Leading dependency ABI union.
Referenced by JPEGDecode(), JPEGDecodeRaw(), JPEGEncode(), JPEGEncodeRaw(), JPEGInitializeLibJPEG(), JPEGPostEncode(), JPEGPreDecode(), JPEGPreEncode(), JPEGSetupDecode(), JPEGSetupEncode(), suppress_huff_table(), suppress_quant_table(), TIFFjpeg_abort(), TIFFjpeg_alloc_sarray(), TIFFjpeg_create_compress(), TIFFjpeg_create_decompress(), TIFFjpeg_data_dest(), TIFFjpeg_data_src(), TIFFjpeg_destroy(), TIFFjpeg_finish_compress(), TIFFjpeg_finish_decompress(), TIFFjpeg_has_multiple_scans(), TIFFjpeg_read_header(), TIFFjpeg_read_raw_data(), TIFFjpeg_read_scanlines(), TIFFjpeg_set_colorspace(), TIFFjpeg_set_defaults(), TIFFjpeg_set_quality(), TIFFjpeg_start_compress(), TIFFjpeg_start_decompress(), TIFFjpeg_suppress_tables(), TIFFjpeg_tables_dest(), TIFFjpeg_write_raw_data(), TIFFjpeg_write_scanlines(), TIFFjpeg_write_tables(), unsuppress_huff_table(), and unsuppress_quant_table().
| 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().
| 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().
| struct jpeg_decompress_struct JPEGState::d |
Decompression view of the leading dependency context union.
Definition at line 444 of file tif_jpeg.c.
Referenced by JPEGDecode(), JPEGDecodeRaw(), JPEGPreDecode(), TIFFjpeg_create_decompress(), TIFFjpeg_data_src(), TIFFjpeg_finish_decompress(), TIFFjpeg_has_multiple_scans(), TIFFjpeg_read_header(), TIFFjpeg_read_raw_data(), TIFFjpeg_read_scanlines(), and TIFFjpeg_start_decompress().
| tiff_jpeg_destination_mgr JPEGState::dest |
Embedded output manager borrowing raw or table storage.
Definition at line 466 of file tif_jpeg.c.
Referenced by std_empty_output_buffer(), std_init_destination(), std_term_destination(), tables_empty_output_buffer(), tables_init_destination(), tables_term_destination(), TIFFjpeg_data_dest(), and TIFFjpeg_tables_dest().
| 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().
| 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().
| 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().
| 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().
| uint16_t JPEGState::h_sampling |
Cached positive horizontal luminance sampling.
Definition at line 477 of file tif_jpeg.c.
Referenced by JPEGComputeStrileWidthHeightBytesPerLine(), JPEGDecodeRaw(), JPEGEncodeRaw(), JPEGGetMaxCompressionRatio(), JPEGPreDecode(), JPEGPreEncode(), JPEGSetupDecode(), and JPEGSetupEncode().
| JPEGOtherSettings JPEGState::otherSettings |
Owned settings/table pointers and borrowed parent hooks retained across ABI reinitialisation.
Definition at line 501 of file tif_jpeg.c.
Referenced by JPEGCleanup(), JPEGDefaultStripSize(), JPEGDefaultTileSize(), JPEGFixupTags(), JPEGPreDecode(), JPEGPreEncode(), JPEGPrintDir(), JPEGResetUpsampled(), JPEGSetupDecode(), JPEGSetupEncode(), JPEGVGetField(), JPEGVSetField(), prepare_JPEGTables(), tables_empty_output_buffer(), tables_init_destination(), tables_init_source(), tables_term_destination(), TIFFInitJPEG(), TIFFInitJPEGCommon(), TIFFjpeg_progress_monitor(), TIFFjpeg_start_decompress(), and TIFFjpeg_tables_dest().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| TIFF* JPEGState::tif |
Borrowed handle backlink, live for all callbacks.
Definition at line 473 of file tif_jpeg.c.
Referenced by std_empty_output_buffer(), std_init_destination(), std_init_source(), std_term_destination(), tables_empty_output_buffer(), TIFFInitJPEGCommon(), TIFFjpeg_error_exit(), TIFFjpeg_tables_dest(), and TIFFJPEGIsFullStripRequired().
| uint16_t JPEGState::v_sampling |
Cached positive vertical luminance sampling.
Definition at line 479 of file tif_jpeg.c.
Referenced by JPEGComputeStrileWidthHeightBytesPerLine(), JPEGDecodeRaw(), JPEGEncodeRaw(), JPEGGetMaxCompressionRatio(), JPEGPreDecode(), JPEGPreEncode(), JPEGSetupDecode(), and JPEGSetupEncode().