forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-av1-syntax/src/frame.rsClear filter

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

fix(av1): thread per-plane quantizer deltas (delta_q_y_dc/u_dc/u_ac/v_dc/v_ac) into dequantAhmet Kaan Gümüş · 8560456
fix(av1): thread per-plane quantizer deltas (delta_q_y_dc/u_dc/u_ac/v_dc/v_ac) into dequant

Spec 5.9.12/7.12.2: these were parsed by ec-av1-syntax and used for nothing
but the lossless[] check. Threaded QuantDeltas through dequant_coeff_wh/
dequant_wh/dequant_and_inverse_typed(_wh) and all 8 decode.rs leaf call
sites, plane-correct (Y has no AC delta). decode_stream's 5 call sites now
pass header.quantization.delta_q_*; convenience wrappers pass ::default().
Plain 4-arg dequant/dequant_coeff/dequant_and_inverse (~20 external callers
in tile.rs/encode.rs/transform.rs) unchanged.

Blast radius measured, not assumed: EC_AV1_TRACE now prints the 5 deltas at
parse time. Measured zero on the r10 pinned repro (seed42.obu, base_q_idx
180) and on every stream the scoped decode::/quant::/transform:: suites
exercise (27/27 green) -- no gate was passing "for the wrong reason".

Charter's 81-vs-76 defect is NOT this: deltas are genuinely zero for
seed42, disproven by measurement per the charter's own fallback clause.
Pinned repro currently panics on an unrelated pre-existing gap (32x32
partition value=4, later superblock, same shape as the r9 part32-AB
dead-end) before it can even reach the pixel comparison. Report names the
next suspect (CURRENT_Q_IDX per-superblock delta-q state / segmentation
qindex) with a one-line instrumentation step, left for the next round.

Red: pinned_sbpart_stream_decodes_pixel_exact still fails (pre-existing,
unrelated gap, not a regression from this diff).

2026-08-27

fix(av1): loop filter level must not forward from the primary ref frameAhmet Kaan Gümüş · 3024af4
fix(av1): loop filter level must not forward from the primary ref frame

read_loop_filter_params only re-reads loop_filter_level[2]/[3] (chroma)
when a luma level is nonzero (spec 5.9.11); the whole LoopFilterParams
struct -- including level/sharpness -- was being seeded from the primary
reference frame's saved params before that read, so a frame whose own
luma levels are both 0 kept the PREVIOUS frame's nonzero chroma level
instead of the spec's implicit 0. Spec 7.20's load_previous only
forwards ref_deltas/mode_deltas, never level/sharpness. Isolated with a
pinned mismatching stream (seed 47, frame 1 chroma vs ffmpeg): bisected
pre/post-deblock dumps to prove the loop filter kernel itself untouched
by the bug, then a level sweep on the exact failing pixel's 6-tap window
showed a threshold flip precisely between level<=2 (matches ffmpeg) and
level>=3 (our observed wrong output) -- our decoder computed level=8
(carried from frame 0's key frame header) where the true value is 0.

Adds an env-gated EC_AV1_GATE_DUMP pin to the forwarding gate test plus
an #[ignore]d fast-reproduce test reading that pinned stream.

2026-08-14

feat(vp9,av1): bitstream header parsers for stateless hardware decodeAhmet Kaan Gümüş · ee46976
feat(vp9,av1): bitstream header parsers for stateless hardware decode

ec-vp9-syntax parses the superframe index and the whole uncompressed frame
header (profiles 0-3, colour config, size-from-reference, loop filter,
quantization, segmentation, tile info), carrying the state VP9 spreads across
frames: reference sizes, segmentation data and loop filter deltas. The spec
8.6.1 dequantization tables and the 8.8.1 loop filter level derivation ship
with it, so every field of VADecPictureParameterBufferVP9 and
VASegmentParameterVP9 comes out of the parse.

ec-av1-syntax parses OBU framing, the sequence header and the frame header in
full (superres, reference signalling incl. set_frame_refs, tile info, quant,
segmentation, delta q/lf, loop filter, CDEF, loop restoration, tx mode, skip
mode, global motion, film grain) plus tile group offsets, and derives the warp
shear validity VAWarpedMotionParamsAV1 asks for.

Both are BitReader-based, forbid unsafe, and answer malformed input with a
typed error rather than a panic. Verified against every VP9/AV1 fixture stream
with ffprobe as the oracle: dimensions, profile, bit depth, chroma, per-frame
key flags and shown-frame counts all agree, including 10-bit, 4:4:4,
monochrome, multi-tile, superframes and show_existing_frame.