|
LibTIFF 4.7.2
TIFF library public API and implementation reference
|
Implement WebP strile staging and RGB or RGBA frame transfer. More...
#include "tiffiop.h"#include "webp/decode.h"#include "webp/encode.h"#include <stdbool.h>#include <stdio.h>Go to the source code of this file.
Data Structures | |
| struct | WebPState |
| Own WebP frame staging dependency objects and saved tag methods. More... | |
Macros | |
| #define | LSTATE_INIT_DECODE 0x01 |
| Bit 0x01 of the codec state field: decoding has been set up. | |
| #define | LSTATE_INIT_ENCODE 0x02 |
| Bit 0x02 of the codec state field: encoding has been set up. | |
| #define | LState(tif) ((WebPState *)(tif)->tif_data) |
| Cast tif->tif_data to the WebPState. | |
| #define | DecoderState(tif) LState(tif) |
| Alias of LState(), returning the WebPState for decoding. | |
| #define | EncoderState(tif) LState(tif) |
| Alias of LState(), returning the WebPState for encoding. | |
Functions | |
| static int | TWebPEncode (TIFF *tif, uint8_t *bp, tmsize_t cc, uint16_t s) |
| Accumulate decoded WebP input in the strile staging buffer. | |
| static int | TWebPDecode (TIFF *tif, uint8_t *op, tmsize_t occ, uint16_t s) |
| Decode a WebP strile or retrieve its next decoded rows. | |
| static void | TWebPGetStrileDimensions (const TIFF *tif, uint32_t *width, uint32_t *height) |
| Compute the pixel extent of the current strip or tile. | |
| static int | TWebPDatasetWriter (const uint8_t *data, size_t data_size, const WebPPicture *const picture) |
| Append one dependency output fragment to the raw TIFF buffer. | |
| static int | TWebPFixupTags (TIFF *tif) |
| Reject noncontiguous WebP sample organisation. | |
| static int | TWebPSetupDecode (TIFF *tif) |
| Validate WebP channel support and enter decode mode. | |
| static int | TWebPPreDecode (TIFF *tif, uint16_t s) |
| Reset WebP per-strile decode state and error latch. | |
| static int | TWebPSetupEncode (TIFF *tif) |
| Validate WebP input and initialise picture and encoder configuration. | |
| static int | TWebPPreEncode (TIFF *tif, uint16_t s) |
| Allocate full-strile WebP input staging and attach the output writer. | |
| static int | TWebPPostEncode (TIFF *tif) |
| Import staged RGB or RGBA encode it and flush the WebP frame. | |
| static void | TWebPCleanup (TIFF *tif) |
| Release WebP picture decoder staging and outer codec state. | |
| static int | TWebPVSetField (TIFF *tif, uint32_t tag, va_list ap) |
| Store WebP quality lossless settings or delegate another tag. | |
| static int | TWebPVGetField (TIFF *tif, uint32_t tag, va_list ap) |
| Retrieve WebP quality or lossless settings or delegate a tag. | |
| static uint64_t | TWebPGetMaxCompressionRatio (TIFF *tif) |
| Report the channel-dependent WebP expansion heuristic. | |
| int | TIFFInitWebP (TIFF *tif, int scheme) |
| Allocate WebP codec state and install buffered frame callbacks. | |
Variables | |
| static const TIFFField | TWebPFields [] |
| Define WebP quality lossless and exact pseudo-tags. | |
Implement WebP strile staging and RGB or RGBA frame transfer.
Definition in file tif_webp.c.