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.

Structs§

BitWriter
Bits appended most significant first.

Functions§

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.