Skip to main content

Module sidecar

Module sidecar 

Source
Expand description

The bridge between an Lqip payload and the signed sidecar’s lqip record.

Gated on native for one reason only: crate::sidecar is itself native-gated. The encoder in the parent module is unconditional and is what capsule-wasm links, so the two surfaces never diverge — this file only assembles and reads the three fields the sidecar carries.

lqip is a signed field: the sidecar signature covers it, so its encoding is signature-visible rather than a private detail. See LQIP_FORMAT_V1 for why moving from ThumbHash to chromahash keeps version 1 and does not move sidecar_schema.

Functions§

render_sidecar_lqip
Render a stored sidecar record to a displayable placeholder, band-limited to the box being painted.