![]() |
tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
|
AVIF container reader; the coded image is not decoded. More...
#include "tinyimg/codec/codec.h"Go to the source code of this file.
Variables | |
| const TinyCodec | tiny_codec_avif |
| The AVIF codec, which answers probe and nothing else. | |
AVIF container reader; the coded image is not decoded.
|
extern |
The AVIF codec, which answers probe and nothing else.
Walks the ISO base media container far enough to describe the image: the brand, the primary item, and that item's spatial extents, channel count and bit depth, found by following the property associations rather than by taking the first property of each kind, since a file carrying alpha has two of everything. An alpha channel is reported when an auxiliary item declares the alpha type.
decode and encode are NULL, so both report TINYIMG_ERR_UNSUPPORTED_CODEC: the container is described, the AV1 bitstream inside it is not read. That is a deliberate boundary rather than an omission. An AV1 intra decoder is between 8 and 10 thousand lines, about what the rest of this library comes to, and its default probability tables alone are larger than this module's whole size target; the surviving objective and the measurements behind the decision are in TECHNICAL_REPORT.md.