forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-hw/src/dec/av1.rsClear filter

2026-11-25

ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0Ahmet Kaan Gümüş · d24d8b0
ec-hw AV1 Vulkan: raw CDEF secondary strength, per-slot reference extents, odd frame sizes; VA refuses mono, 12-bit and non-4:2:0

Vulkan std CDEF takes the coded 2-bit secondary strength (3 means 4), so the parser's adjusted value is mapped back before upload. This fixes the SVT-AV1 mismatches (lag0, hier3, grain, superres, resize).
Reference picture resources carry each slot's own size, clearing the DPB association validation error on resized streams.
Odd frame sizes decode at their real size; readback and I420 use the even-rounded pitch.
The VA AV1 path refuses monochrome, 12-bit and 4:2:2/4:4:4 cleanly.
vk-video-ffi, ec-hw: VP9 decode over Vulkan VideoAhmet Kaan Gümüş · 2134128
vk-video-ffi, ec-hw: VP9 decode over Vulkan Video

Profile 0 8-bit and profile 2 10-bit 4:2:0 on the Vulkan path, so VP9 no
longer needs VA-API. The shim takes the parsed uncompressed header and
builds StdVideoDecodeVP9PictureInfo. ec-hw reuses ec-vp9-syntax for
parsing and superframes, and the shared RefSlots (renamed from av1_refs)
for the eight reference slots. The VA VP9 decoder uses RefSlots too.

hw_decode example gains three libvpx VP9 streams (8-bit 640x360 with
hidden altrefs, 8-bit 720p realtime, 10-bit), all bit-exact against ffmpeg.

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-20

feat(hw): expose HEVC prefix-SEI HDR peak and VUI colour tags on Frame/DecoderAhmet Kaan Gümüş · 7669974
feat(hw): expose HEVC prefix-SEI HDR peak and VUI colour tags on Frame/Decoder

edith's replica needs MaxCLL/MaxFALL for HDR films whose container never
carried them (they live only in HEVC content_light_level/mastering_display
SEI) — ec-hw's decode() dropped every SEI NAL on the floor. HevcDecoder now
merges ec_core::color::hevc_sei_light per access unit (sticky across frames
that carry none) and resolves VUI colour tags from the SPS; H264Decoder
resolves VUI tags only (no SEI parsing for that codec yet); VP9/AV1 report
None (not implemented). New Frame::colour()/Decoder::colour() surface it,
bundled as ec_hw::frame::Colour{description, light} over the existing
ec-core ColorDescription/ContentLight types.

Tests: hdr_film_light_level_sei_is_exposed pins MaxCLL/MaxFALL 1230/419 and
primaries/transfer/matrix 9/16/9 against the real ReelD rip;
sdr_h264_colour_never_panics proves the VUI-only path doesn't panic on an
SDR fixture (skips when no fixtures generated, same convention as the rest
of gpu.rs).

2026-08-14

feat(hw): stateless decoding for H.264, HEVC, VP9 and AV1Ahmet Kaan Gümüş · eb589d4
feat(hw): stateless decoding for H.264, HEVC, VP9 and AV1

One decoder per codec behind one `Decoder`. The driver keeps nothing
between pictures, so everything the format spreads across frames lives
here: the H.264 decoded picture buffer with its picture order counts,
reference numbering, list initialisation and modification and marking
(clause 8.2); HEVC's reference picture sets and bumping; VP9's and AV1's
reference slots with `show_existing_frame`. Frames leave in display
order.

Three of the four incumbent defects are addressed by construction:

- The RT format follows the *stream's* bit depth, so a Main10 stream
  gets a 10-bit config and a P010 surface instead of losing two bits per
  sample.
- A `frame_num` gap is a normal condition — a seek, a lost packet, an
  encoder that skipped a picture — and the missing pictures are inferred
  per 8.2.5.2 rather than ending the hardware session. The inferred
  frames share the newest reference's surface, which is both a better
  guess than grey and the only choice this driver accepts.
- Surfaces come from a pool and mappings are guards, so a long export
  neither reallocates nor leaks.

The scaling matrices are sent for every H.264 picture whether or not the
stream carries any: a driver that never receives them dequantises with a
zero matrix and hands back a uniformly grey frame.