Crate jxl_bitstream

Crate jxl_bitstream 

Source
Expand description

This crate provides a JPEG XL bitstream reader and container format parser.

§Bitstream reader

Bitstream reads all the raw bits needed to decode JPEG XL codestream. It provides methods to read data types that appear on the JPEG XL specification.

§Container parser

ContainerParser tries to parse the bytes fed into it, and emits various parser events including codestream data and auxiliary box data.

Re-exports§

pub use container::BitstreamKind;
pub use container::ContainerParser;
pub use container::ParseEvent;

Modules§

consts
Constants used in JPEG XL bitstreams.
container
Types for JPEG XL container format.

Structs§

Bitstream
Bitstream reader with borrowed in-memory buffer.
U
Bit count for use in Bitstream::read_u32.

Enums§

Error
The error type for JPEG XL bitstream-level operations.
U32Specifier
Bit specifier for Bitstream::read_u32.

Functions§

unpack_signed
Perform UnpackSigned for u32, as specified in the JPEG XL specification.
unpack_signed_u64
Perform UnpackSigned for u64, as specified in the JPEG XL specification.

Type Aliases§

BitstreamResult
Shorthand for result type of jxl_bitstream.