forge
Explore
Log in

Don't you dare go Hollow

Commits

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

2026-09-06

merge: lane-av1tiles with main ac6e60b4 (compound prediction)Ahmet Kaan Gümüş · e6c05e0
merge: lane-av1tiles with main ac6e60b4 (compound prediction)

The per-tile jobs arm the compound lane's new thread-locals
(arm_reference_select / arm_order_hints) on their own workers.
feat(av1): reference_select frames -- the comp_mode symbol and its skip-mode header gateAhmet Kaan Gümüş · 14a71ba
feat(av1): reference_select frames -- the comp_mode symbol and its skip-mode header gate

The frame-header writer refused reference_select outright; it now writes the
bit, and with it spec 5.9.22's skip_mode_present gate (skipModeAllowed
mirrored from ec-av1-syntax's own read_skip_mode_params, off the per-reference
order hints the encoder now hands the header from its DPB). Every inter block
of a reference_select frame codes a comp_mode symbol at
mvstack::reference_mode_ctx's context -- the writer side of decode.rs
read_comp_mode -- and every block still names SINGLE, so the only stream
change is that one symbol per block.

Armed by EC_AV1_COMPOUND=1 in a test build; off by default until compound
candidates exist to pay for the bit.
feat(av1): a two-level frame pyramid in the encoder facadeAhmet Kaan Gümüş · d496905
feat(av1): a two-level frame pyramid in the encoder facade

Hidden ALTREF coded ahead of its display position and re-output by a
show_existing_frame header, per-level quantizer offsets, a per-level rate
loop and packet dts/level. The flat one-in-one-out path is untouched.

2026-08-26

feat(av1): write inter frame headers, referencing one reference slotAhmet Kaan Gümüş · d95e550
feat(av1): write inter frame headers, referencing one reference slot

Extends write_frame_header to shown inter frames: error_resilient_mode,
primary_ref_frame, refresh_frame_flags, the ref_order_hint loop (when
error-resilient), frame_refs_short_signaling (off) + ref_frame_idx[0..7],
allow_high_precision_mv, interpolation_filter (EIGHTTAP, non-switchable),
is_motion_mode_switchable, use_ref_frame_mvs, reference_select (forced off,
non-zero refused by name along with the skip mode and warped motion it
gates), and per-reference is_global (forced identity, non-identity global
motion refused by name). Adds inter_frame_headers() beside key_frame_headers,
reusing its sequence header verbatim and pointing every ref_frame_idx at the
slot holding the previous decoded frame.

New inline test parses a key + two inter frame header sequence back through
ec_av1_syntax::Av1Parser's own FrameState threading and checks every field
(after taking the reader's own derived fields — showable_frame, OrderHints,
RefFrameSignBias, header_bits — from the parse) plus written-vs-consumed bit
length, per frame.

2026-08-25

feat(av1): write the key-frame header OBUAhmet Kaan Gümüş · e203345
feat(av1): write the key-frame header OBU

The inverse of `ec_av1_syntax`'s `parse_uncompressed_header`, for the
subset a stateless encoder emits: a shown key frame in a sequence with no
decoder model, no frame id numbers and no still-picture shortcut. It
covers tile info (uniform spacing), quantization, segmentation, delta q
and delta lf, loop filter, CDEF, loop restoration, transform mode and the
reduced transform set, plus `frame_obu` to carry the header and a tile
group in one OBU.

Two of the codings are not the value they look like and are spelled out
here: the restoration type is remapped (None 0, Switchable 1, Wiener 2,
Sgrproj 3, not the enum's discriminant) and a CDEF secondary strength of
4 is coded as 3.

Everything outside the subset is refused by name rather than written
wrong: a superres denominator other than 8, film grain synthesis, frame
id numbers, decoder model timing, `show_existing_frame`, any non-key or
hidden frame, and non-uniform tile spacing.

The tests parse back every stream they write through `Av1Parser` and
compare the whole `FrameHeader`, including the derived fields the format
never codes (the header's own bit length, the tile start ramps, the
segmentation id range), across a one-tile frame, a four-tile-column
frame, a segmented frame with delta q and delta lf, and a frame using
loop restoration.