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

Own WebP frame staging dependency objects and saved tag methods. More...

Collaboration diagram for WebPState:
[legend]

Data Fields

uint16_t nSamples
 Cached RGB/RGBA channel count.
 
int read_error
 Same-strile decode failure latch reset by predecode.
 
int lossless
 Cached lossless option applied at encoder setup.
 
int lossless_exact
 Cached preservation of RGB under zero alpha in supported lossless ABI.
 
int quality_level
 Cached compression quality, including warned out-of-range assignments.
 
WebPPicture sPicture
 Embedded dependency picture owning imported samples until WebPPictureFree.
 
WebPConfig sEncoderConfig
 Embedded dependency encoder configuration.
 
uint8_t * pBuffer
 Owned Ext full-strile input/output staging, released on replacement/cleanup.
 
unsigned int buffer_offset
 Number of staged input bytes.
 
unsigned int buffer_size
 Staging capacity in bytes, bounded by validated frame dimensions.
 
WebPIDecoder * psDecoder
 Owned incremental dependency decoder, released by WebPIDelete.
 
WebPDecBuffer sDecBuffer
 External-memory descriptor borrowing pBuffer or caller whole-strile output.
 
int last_y
 Number of decoded rows already returned.
 
int state
 Decode/encode initialisation flags.
 
TIFFVGetMethod vgetparent
 Borrowed parent getter restored on cleanup.
 
TIFFVSetMethod vsetparent
 Borrowed parent setter restored on cleanup.
 

Detailed Description

Own WebP frame staging dependency objects and saved tag methods.

Codec-owned state must remain live until cleanup. Internal buffers and dependency objects have the individual ownership described below; borrowed parent methods must remain callable.

Definition at line 59 of file tif_webp.c.

Field Documentation

◆ buffer_offset

unsigned int WebPState::buffer_offset

Number of staged input bytes.

Definition at line 91 of file tif_webp.c.

Referenced by TWebPPostEncode(), TWebPPreEncode(), and TWebPSetupDecode().

◆ buffer_size

unsigned int WebPState::buffer_size

Staging capacity in bytes, bounded by validated frame dimensions.

Definition at line 95 of file tif_webp.c.

Referenced by TWebPDecode(), TWebPPostEncode(), and TWebPPreEncode().

◆ last_y

int WebPState::last_y

Number of decoded rows already returned.

Definition at line 105 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPDecode(), and TWebPSetupEncode().

◆ lossless

int WebPState::lossless

Cached lossless option applied at encoder setup.

Definition at line 67 of file tif_webp.c.

Referenced by TWebPSetupEncode(), and TWebPVGetField().

◆ lossless_exact

int WebPState::lossless_exact

Cached preservation of RGB under zero alpha in supported lossless ABI.

Definition at line 72 of file tif_webp.c.

Referenced by TWebPSetupEncode(), and TWebPVGetField().

◆ nSamples

uint16_t WebPState::nSamples

Cached RGB/RGBA channel count.

Definition at line 62 of file tif_webp.c.

Referenced by TWebPDecode(), TWebPPostEncode(), TWebPPreEncode(), TWebPSetupDecode(), and TWebPSetupEncode().

◆ pBuffer

uint8_t* WebPState::pBuffer

Owned Ext full-strile input/output staging, released on replacement/cleanup.

Definition at line 89 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPDecode(), TWebPPostEncode(), TWebPPreEncode(), and TWebPSetupDecode().

◆ psDecoder

WebPIDecoder* WebPState::psDecoder

Owned incremental dependency decoder, released by WebPIDelete.

Definition at line 98 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPDecode(), TWebPPreDecode(), and TWebPSetupEncode().

◆ quality_level

int WebPState::quality_level

Cached compression quality, including warned out-of-range assignments.

Definition at line 77 of file tif_webp.c.

Referenced by TWebPSetupEncode(), and TWebPVGetField().

◆ read_error

int WebPState::read_error

Same-strile decode failure latch reset by predecode.

Definition at line 65 of file tif_webp.c.

Referenced by TWebPDecode(), and TWebPPreDecode().

◆ sDecBuffer

WebPDecBuffer WebPState::sDecBuffer

External-memory descriptor borrowing pBuffer or caller whole-strile output.

Definition at line 103 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPDecode(), TWebPPreDecode(), and TWebPSetupEncode().

◆ sEncoderConfig

WebPConfig WebPState::sEncoderConfig

Embedded dependency encoder configuration.

Definition at line 84 of file tif_webp.c.

Referenced by TWebPPostEncode(), and TWebPSetupEncode().

◆ sPicture

WebPPicture WebPState::sPicture

Embedded dependency picture owning imported samples until WebPPictureFree.

Definition at line 82 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPPostEncode(), TWebPPreEncode(), TWebPSetupDecode(), and TWebPSetupEncode().

◆ state

int WebPState::state

Decode/encode initialisation flags.

Definition at line 108 of file tif_webp.c.

Referenced by TWebPCleanup(), TWebPDecode(), TWebPPostEncode(), TWebPPreDecode(), TWebPPreEncode(), TWebPSetupDecode(), and TWebPSetupEncode().

◆ vgetparent

TIFFVGetMethod WebPState::vgetparent

Borrowed parent getter restored on cleanup.

Definition at line 111 of file tif_webp.c.

Referenced by TWebPCleanup(), and TWebPVGetField().

◆ vsetparent

TIFFVSetMethod WebPState::vsetparent

Borrowed parent setter restored on cleanup.

Definition at line 113 of file tif_webp.c.

Referenced by TWebPCleanup().


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