You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 209cdfc
Browse filesBrowse the repository at this point in the historyBrowse files
Decode AVIF: AV1 ported from dav1d, RGB like libavif
The AV1 decoder (src/codecs/av1) is ported from dav1d 1.5.1 and decodes
exactly like it: 4:2:0, 4:2:2, 4:4:4 and monochrome, 8-12 bit, every
intra coding tool, every post filter and film grain. Verified against
dav1d on the 240 libaom test vectors, 30 aomenc configurations and 96
film grain cases. Its tables are generated from dav1d
(scripts/av1-tables.c) and packed (scripts/av1-pack.js).
The container (src/codecs/avif.ts): the primary item or a grid (alpha
per tile too), alpha (also premultiplied), clap/irot/imir, colr, the
first frame of image sequences. Converted to RGB like libavif's
reference path (single precision, bilinear chroma), so every SDR file of
the AVIF conformance set that avifdec decodes is pixel for pixel the
same. PQ and HLG are converted to sRGB with toneMapping.
Fixtures from scripts/avif-fixtures.py (aomenc, our own container
writer, avifdec references) in tests/avif.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YJgRK5qpwJEbHPuFv6kgAQ
|[RFC 6386](https://www.rfc-editor.org/rfc/rfc6386) (VP8 Data Format and Decoding Guide, with the libvpx reference decoder) |`src/codecs/vp8-tables.ts` (probability and quantizer tables), `src/codecs/vp8.ts` (decoding procedures) | BSD-3-Clause |
|[dav1d](https://code.videolan.org/videolan/dav1d) by VideoLAN, the dav1d authors and Two Orioles |`src/codecs/av1/*` (the AV1 decoder: bitstream parsing, symbol decoding, prediction, inverse transforms, loop filters, film grain; the tables in `src/codecs/av1/data.ts`, generated from dav1d by `scripts/av1-tables.c`) | BSD-2-Clause |
17
+
|[libavif](https://github.com/AOMediaCodec/libavif) by Joe Drago |`src/codecs/avif.ts` (YUV to RGB conversion with bilinear chroma upsampling, alpha range expansion and unpremultiplication) | BSD-2-Clause |
16
18
|[FreeType](https://freetype.org)|`src/render/hinting.ts` (behavior and parts of the logic of the TrueType interpreter) | FreeType License |
17
19
|[QOI](https://github.com/phoboslab/qoi) by Dominic Szablewski |`src/codecs/qoi.ts` (the reference encoder's choices of operations) | MIT |
0 commit comments