Skip to main content

Module bits

Module bits 

Source
Expand description

The bit writer the packed headers of the VA-API session are written with. A most-significant-bit-first writer for the headers a VA-API session packs itself: the fixed-width and Exp-Golomb fields of H.264, HEVC, and AV1 syntax, the RBSP trailing bits, and the emulation prevention an H.26x NAL unit needs on its way out; and the split of an Annex-B stream into its NAL units on the way in. Nothing here reaches outside the module, so a fuzz build (fuzz/) compiles it on its own.

Structs§

BitWriter
Bits appended most significant first.

Functions§

annexb_nals 🔒
The NAL units of an Annex-B stream, each without its start code and never empty.
escape
An RBSP as a NAL unit payload: an emulation prevention byte ahead of every byte of three or less that follows two zeros.
nal_unit
One Annex-B NAL unit: a four-byte start code, the header bytes, and the escaped payload.