Commits
Commits on
00c1b3ff2d80d84fef71bb6208110dedbbd95fc4Filtered to crates/ec-av1/src/frame.rsClear filter2026-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.