nx_webp.nx
buildroot/runtime/nx_webp.nx
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
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
| 21 | const NX_WEBP_MAX_XF: i64 = 4 |
functions
| 24 | func wb_palette_bits(n_colors: i64) -> i64 |
| 38 | func wb_read_groups(bs: *NxBitStream, n_groups: i64, cache_bits: i64) -> *i64 |
| 68 | func wb_decode_stream(bs: *NxBitStream, width: i64, height: i64, level0: i64, called by 2: wb_decode_streamwebp_decode calls 12: sys_mmapnx_bitstream_read_lsbwb_decode_streamvl_chanvl_argbwb_palette_bits+6 |
| 229 | func wb_u32le(b: *u8, off: i64) -> i64 called by 1: webp_decode |
| 234 | func wb_fourcc_is(b: *u8, off: i64, a: i64, c: i64, d: i64, e: i64) -> i64 called by 1: webp_decode |
| 242 | func webp_decode(raw: *u8, n: i64, out_wh: *i64) -> *i64 |