Commits
2026-11-25
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transformAhmet Kaan Gümüş · ab12e5b
ec-hw: one level selection per codec for VA and Vulkan; AV1 and HEVC VPS timing_info; VA H.264 High 8x8 transform Level comes from crates/ec-hw/src/level.rs (smallest level fitting size, rate, DPB and bitrate; CQP ignores bitrate). The Vulkan shim takes the level and clamps it to the driver's maxLevel. AV1 sequence header carries timing_info (VA packed header, Vulkan OBU and std struct). HEVC VPS carries vps_timing_info when the SPS VUI does. VA H.264 High sets transform_8x8_mode_flag in the PPS and picture parameters.
2026-10-23
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
2026-08-14
feat(h265-syntax): the DPB fields a stateless hardware decode needsAhmet Kaan Gümüş · a3e5dd1
feat(h265-syntax): the DPB fields a stateless hardware decode needs A software decoder derives its reference picture set as it goes; a stateless one has to hand the driver finished picture lists, so the parser now keeps what it used to walk past: - `ShortTermRefPicSet` carries `DeltaPocS0`/`S1` and the used-by-current flags, including the inter-set prediction of 7.4.8, and the SPS keeps its sets so a slice that names one by index can resolve it. - `SliceHeader` carries the resolved set, the long-term entries with their `DeltaPocMsbCycleLt` accumulation (7-52), the reference list modification entries and a parsed `pred_weight_table()` whose chroma offsets are derived per 7-56 rather than left as raw deltas. - `SliceHeader::write_without_alignment` writes a header without its closing `byte_alignment()`, which is what a VA-API encoder submits as a packed header, and `write` keeps its old behaviour on top of it. The fuzz suite caught an overflow in the weight derivation on the way in: both terms come straight off the wire, so 7-56 is evaluated in 64 bits and clamped.
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): full-depth quadtree search, VA-API check, parse-side fuzzAhmet Kaan Gümüş · b19a281
feat(h265): full-depth quadtree search, VA-API check, parse-side fuzz The search goes down to 8x8 by default because on real pictures that is both better and no slower: measured on a 1080p camera frame at QP 22, -27% bits and +1.5 dB against stopping at 16x16, at the same wall time. The 16x16 floor stays available as a setting. Two defects the earlier tests could not see, both found by pointing the encoder at real footage: - stopping the search early skipped split_cu_flag entirely, while the sequence still allowed a split. Every picture decoded to noise. The flag is written now whatever the search decides. - a fuzzed SPS could name a 45-bit POC field and take ec-core's bit reader past its documented contract. Picture size, POC width and long-term set count are validated where they are parsed. Also: VA-API decode of the encoder's own output is a test (radeonsi, real GPU), progress counters are one per cache line - twelve workers polling eight counters per line spend their time invalidating each other - and waits back off to a sleep instead of spinning on a core someone needs.
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.