forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on abd41b68412aa45fa92f4cefe989f5004e5872f0Filtered to crates/ec-h265-syntax/src/lib.rsClear filter

2026-08-14

feat(h265-syntax): the fields a VA-API decoder asks for and this encoder does not writeAhmet Kaan Gümüş · 4d59579
feat(h265-syntax): the fields a VA-API decoder asks for and this encoder does not write

An audit of every field in VAPictureParameterBufferHEVC and
VASliceParameterBufferHEVC against what this crate hands back turned up
four the parser walked past: PCM depths and block sizes, explicit tile
column and row geometry, colour_plane_id, and the emulation prevention
byte count of the slice data. All four are carried now, with round-trip
tests, because the consumer is a hardware decode path that cannot
re-parse a header the parser already read.

What is still deliberately absent, and why: reference lists and the
picture buffer (decoder state, not syntax), scaling lists (refused as
Unsupported), and pred_weight_table (walked for length, not modelled -
no HEVC stream this family produces uses weighted prediction).
feat(h265-syntax): NAL framing, parameter sets, slice headers and SEIAhmet Kaan Gümüş · 0d07f18
feat(h265-syntax): NAL framing, parameter sets, slice headers and SEI

Writers and parsers for the same structures, so a round trip is a test
rather than an article of faith. Sized by what a stateless hardware
decoder asks for: every field of VAPictureParameterBufferHEVC and
VASliceParameterBufferHEVC is a field here or a named method on one.

The conformance window is first class - 1920x1080 codes as 1920x1088 and
crops - and the slice header hands back where the data starts, escape
bytes counted, which is what slice_data_byte_offset means.