code wiki / (root) / nx_webp.nx

nx_webp.nx

buildroot/runtime/nx_webp.nx

13290 B334 linesdepth 7pulls 11 transitivereach 39 importersview sourcekind librarytopic webp
docsdependenciesstructsconstsfunctions

about

nx_webp.nx -- WebP container + the VP8L DecodeImageStream orchestrator. This is the piece that ties nx_webp_vp8l's parts into a decoder: it reads the transform stack, the colour cache, the meta-Huffman image and the N Huffman groups, runs the pixel stream, then UNDOES the transforms in reverse. Sub-images (transform data, the meta image, the palette) are themselves image streams, so this function is recursive with level0=0 -- only the top level carries transforms and a meta image. genealogy_id: webp_lossless_bitstream_spec_2012 lineage_id: nx_webp_v1 license_tier: ORIGINAL

dependencies 6 imports · 3 importers

nx_syscalls.nx nx_bitstream.nx nx_huffman.nx nx_webp_huff.nx nx_webp_vp8l.nx nx_vp8_kf.nx nx_webp.nx nx_img_bytes_to_rgb.nx nx_webp_vp8l_gate.nx nx_webpprobe.nx

imports: nx_syscalls.nxnx_bitstream.nxnx_huffman.nxnx_webp_huff.nxnx_webp_vp8l.nxnx_vp8_kf.nx

imported by: nx_img_bytes_to_rgb.nxnx_webp_vp8l_gate.nxnx_webpprobe.nx

structs

none

consts

21const NX_WEBP_MAX_XF: i64 = 4

functions

24func wb_palette_bits(n_colors: i64) -> i64
38func wb_read_groups(bs: *NxBitStream, n_groups: i64, cache_bits: i64) -> *i64
68func wb_decode_stream(bs: *NxBitStream, width: i64, height: i64, level0: i64,
229func wb_u32le(b: *u8, off: i64) -> i64
called by 1: webp_decode
234func wb_fourcc_is(b: *u8, off: i64, a: i64, c: i64, d: i64, e: i64) -> i64
called by 1: webp_decode
242func webp_decode(raw: *u8, n: i64, out_wh: *i64) -> *i64