tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyCodec Struct Reference

One container format's implementation. More...

#include <codec.h>

Public Attributes

TinyImageFormat format
TinySniffFn sniff
TinyProbeFn probe
TinyDecodeFn decode
TinyEncodeFn encode

Detailed Description

One container format's implementation.

A NULL decode or encode means the format is recognized but that direction is not implemented, which callers see as TINYIMG_ERR_UNSUPPORTED_CODEC rather than as an unknown format.

Member Data Documentation

◆ decode

TinyDecodeFn TinyCodec::decode

Decodes pixels, or NULL when this build cannot read the format.

◆ encode

TinyEncodeFn TinyCodec::encode

Encodes pixels, or NULL when this build cannot write the format.

◆ format

TinyImageFormat TinyCodec::format

The format this codec handles.

◆ probe

TinyProbeFn TinyCodec::probe

Reads the header without decoding pixels.

◆ sniff

TinySniffFn TinyCodec::sniff

Tests a buffer's magic bytes.


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