diff --git a/crates/ec-av1/src/encode.rs b/crates/ec-av1/src/encode.rs index 7dbcb05c..9e1588f7 100644 --- a/crates/ec-av1/src/encode.rs +++ b/crates/ec-av1/src/encode.rs @@ -960,6 +960,23 @@ thread_local! { static SCREEN_FORCE: std::cell::Cell> = const { std::cell::Cell::new(None) }; } +thread_local! { + /// What the last [`encode_sequence_with_ctx`] call on this thread coded + /// under, AFTER the content gate: the pyramid, or `None` for a stream + /// that stayed flat. Read by the BD gates, which print the requested and + /// the effective pyramid side by side -- a screen clip requests one and + /// codes flat, and that difference is the gate (class + /// `gate-blind-to-feature`). + static LAST_SEQ_PYRAMID: std::cell::Cell> = + const { std::cell::Cell::new(None) }; +} + +/// The pyramid the last sequence coded on this thread was EFFECTIVELY under. +#[allow(dead_code)] // read only from the `#[cfg(test)]` gates +pub(crate) fn last_sequence_pyramid() -> Option { + LAST_SEQ_PYRAMID.with(std::cell::Cell::get) +} + #[cfg(test)] pub(crate) fn force_screen(value: Option) { SCREEN_FORCE.with(|c| c.set(value)); @@ -5456,6 +5473,14 @@ pub fn encode_key_frame_with_modes( /// Codes `pictures` as one key frame followed by inter frames. /// +/// Camera material is coded under [`crate::encoder::Pyramid::default`] since +/// lane-av1pyrdef -- mini-GOPs of 4 with a hidden `ALTREF` and a +/// `show_existing_frame` header, so `stream` is in CODING order while +/// `frames` stays in display order (`EncodedSequence::coding_order` is the +/// map). Screen content codes flat, decided once per sequence by the same +/// detector the streaming facade's content gate uses, and `EC_AV1_PYRAMID=0` +/// puts every stream back on the flat path for an A/B. +/// /// # Errors /// Returns an error under the same conditions [`encode_key_frame`] and the /// inter frame path do. @@ -8983,8 +9008,15 @@ pub struct EncodedSequence { /// `stream` (a temporal delimiter and that frame's OBU alone; it reuses /// the sequence header the key frame carried). pub stream: Vec, - /// One entry per picture, in coding order. + /// One entry per picture, in DISPLAY order — the order a decoder outputs + /// them and the order `pictures` came in. Without a pyramid that is also + /// the coding order; with one the two differ, and `coding_order` is the + /// map between them. pub frames: Vec, + /// The index into `frames` of each coded frame, in CODING order — what a + /// per-coded-frame census (`take_predicted_bits`) must be zipped against. + /// `0..frames.len()` on the flat path. + pub coding_order: Vec, } /// Encodes a sequence of pictures as a key frame followed by one inter frame @@ -9012,6 +9044,42 @@ pub(crate) fn encode_sequence_with_ctx( }; first.check_even()?; let render = (first.width, first.height); + // THE CODING PYRAMID (lane-av1pyrdef): a sequence of camera material is + // coded as mini-GOPs -- a hidden ALTREF ahead of its display position, + // the leaves that predict backward off it, and a `show_existing_frame` + // header that re-outputs it -- unless `EC_AV1_PYRAMID` turns it off for + // an A/B. Screen content stays flat (the content gate in + // `Av1Encoder::encode_frames`, whose detector this asks first so the + // whole sequence path is decided in one place), and so does a run that + // asks for a quantizer rounding offset the facade does not carry: the + // facade codes at `encoder::DEADZONE` (0.5), so any other deadzone -- + // the ablations' -- must keep the flat path rather than be silently + // ignored. + // + // The reordering itself is NOT reimplemented here: it is the facade's + // own driver ([`crate::encoder::Av1Encoder::encode_sequence_pyramid`]), + // called with this sequence's shape, so the two paths cannot drift. + let pyramid = crate::encoder::Pyramid::from_env() + .filter(|_| !rest.is_empty() && (deadzone - 0.5).abs() < f64::EPSILON) + .filter(|_| !picture_is_screen(first)); + LAST_SEQ_PYRAMID.with(|c| c.set(pyramid)); + if let Some(pyramid) = pyramid { + for picture in rest { + picture.check_even()?; + if (picture.width, picture.height) != render { + return Err(Error::unsupported( + "AV1 encode", + "every picture in a sequence must be the same size as the first", + )); + } + } + return crate::encoder::Av1Encoder::encode_sequence_pyramid( + pictures, + base_q_idx, + pyramid, + armed_tiles(), + ); + } // The key frame and every inter frame after it are coded at the same // padded size, so the reference each inter frame predicts from -- the // previous frame's own uncropped reconstruction, at the size a decoder's @@ -9077,7 +9145,11 @@ pub(crate) fn encode_sequence_with_ctx( )); frames.push(crop_encoded(&inter, render.0, render.1)); } - Ok(EncodedSequence { stream, frames }) + Ok(EncodedSequence { + stream, + coding_order: (0..frames.len()).collect(), + frames, + }) } #[cfg(test)] @@ -11354,11 +11426,24 @@ mod tests { // on that side, so the two directions no longer share a bound. let mut worst_over: f64 = 0.0; let mut worst_under: f64 = 0.0; - for (i, (frame, &bits)) in encoded.frames.iter().zip(&predicted).enumerate() { + // The census is per CODED frame, so it is zipped in coding order -- + // which is not display order under a pyramid. + let coded: Vec<&Encoded> = + encoded.coding_order.iter().map(|&i| &encoded.frames[i]).collect(); + for (i, (frame, &bits)) in coded.into_iter().zip(&predicted).enumerate() { let written = frame.tile.len() as f64 * 8.0; let drift = (written - bits) / written; worst_over = worst_over.max(-drift); - worst_under = worst_under.max(drift); + // lane-av1pyrdef: a pyramid LEAF codes almost no coefficients at + // all (150-250 bits of tile, nearly all of it partition/mode/mv + // syntax the coefficient sum never counts), so its ratio measures + // that floor rather than any drift. Frames under 512 written bits + // are left out of the under-price bound for that reason; the + // over-price bound -- the defect direction, where the search pays + // MORE than the writer -- still covers every frame. + if written >= 512.0 { + worst_under = worst_under.max(drift); + } eprintln!("{i:5} {bits:14.0} {written:12.0} {:+6.2}%", drift * 100.0); } // Measured 2026-09-06 on this sequence: -13.5% at the key frame, @@ -11394,6 +11479,11 @@ mod tests { // decisions, so this bound and the byte pins above FAIL BY DESIGN // under it; the default path (no motion_mode syntax at all) is the // one they are measured on. + // lane-av1pyrdef: `encode_sequence` codes this fixture under the + // coding pyramid now, so the five frames are a key frame, a hidden + // ALTREF at q-16 and three leaves at q+8: +2.6% / +6.9% (the two + // frames over the 512-bit floor) and +44.7 / +74.4 / +74.4 on the + // near-empty leaves below it. Both bounds stand where they were. // lane-av1rejudge: local warp is ON by default now, so every eligible // single-reference block carries that same `motion_mode` symbol (a // 3-value alphabet where a warp sample exists) on the DEFAULT path -- @@ -12326,33 +12416,19 @@ mod tests { / source.len() as f64; ladder.push((mean, (encoded.stream.len() as f64).log10())); } + // What this clip asked for and what the content gate left it coding + // under: a screen clip requests a pyramid and codes flat, and that + // difference is what keeps its row identical to the flat baseline + // (class `gate-blind-to-feature`). + eprintln!( + "{name}: sequence, pyramid requested {:?} effective {:?}", + crate::encoder::Pyramid::from_env(), + last_sequence_pyramid(), + ); ladder.sort_by(|a, b| a.0.total_cmp(&b.0)); (ladder, wall) } - /// The [`crate::encoder::Pyramid`] this run's ladder is coded under, from - /// `EC_AV1_PYRAMID=[::]`. Unset - /// keeps the flat one-key-then-all-inter ladder the baseline was measured - /// on, so the gate's default recipe is unchanged. - /// - /// RE-SWEPT on lane-av1pyrgate under the content gate (see - /// [`crate::encoder::Pyramid`]'s own table): with the screen capture - /// coding flat by construction, `4:-16:8` takes film A +62.8/+32.5 -> - /// +54.1/+24.2 and film B +86.3/+50.5 -> +82.6/+47.4, and the screen row - /// is unchanged to the byte. The gate ladder still defaults to flat -- - /// the sequence path this arm is pinned against codes no pyramid. - fn pyramid_from_env() -> Option { - let spec = std::env::var("EC_AV1_PYRAMID").ok()?; - let mut f = spec.split(':'); - let mini_gop = f.next()?.parse().ok()?; - let d = crate::encoder::Pyramid::default(); - Some(crate::encoder::Pyramid { - mini_gop, - arf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.arf_q_offset), - leaf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.leaf_q_offset), - }) - } - /// [`our_ladder`] through the streaming facade — the surface the editor's /// export drives (`EC_AV1_GATE_FACADE=1`). With a [`crate::encoder::Pyramid`] /// each stream is also reordered (hidden `ALTREF` first, @@ -12485,8 +12561,15 @@ mod tests { (h ^ u64::from(v)).wrapping_mul(0x0000_0100_0000_01b3) }) }; + // Re-taken on lane-av1pyrdef: `encode_sequence` codes this (non-screen) + // clip under the coding pyramid now -- one hidden ALTREF per mini-GOP + // of 4, its leaves at q+8 and a `show_existing_frame` header per + // group. 7299 -> 8194 bytes at q=150 and 26804 -> 28285 at q=60 over + // four frames; four pictures is one short mini-GOP, which is the + // shape that pays least (the ARF's own quality has no later group to + // carry it), so this is not the BD gate's number. let pins: [(u8, usize, u64); 2] = - [(150, 7299, 0xaa98_12b4_860a_28cc), (60, 26804, 0xedea_182d_e11b_3c3f)]; + [(150, 8194, 0x08ba_a7a8_26f6_f414), (60, 28285, 0x64af_fc52_eef6_2967)]; for (q, bytes, hash) in pins { let encoded = encode_sequence(&source, q, 0.5).unwrap(); assert_eq!( @@ -12660,12 +12743,24 @@ mod tests { /// | bars 2160p | +81.6% | +41.5% | 4.8s:1.0s:2.2s | /// | screen capture | +49.1% | -4.3% | 5.5s:1.0s:2.1s | /// - /// The same run under `EC_AV1_PYRAMID=4:-16:8 EC_AV1_GATE_FACADE=1` - /// (lane-av1pyrgate), which is what the content gate does at this scale: - /// the bars are non-screen so they take the pyramid (+84.7 / +39.9 and - /// +124.4 / +75.2 -- this downscaled recipe hates it, as it hates every - /// knob the real film rows keep), and the capture's row comes back - /// +49.1 / -4.3, the flat row to the byte. That equality IS the gate. + /// RE-RECORDED 2026-09-07 (lane-av1pyrdef), with the coding pyramid the + /// DEFAULT of the sequence path this gate codes through -- the bars are + /// non-screen so they take it, the capture is gated flat: + /// + /// | clip | effective pyramid | BD vs libaom | BD vs rav1e | wall | + /// |---|---|---|---|---| + /// | bars 1080p | 4:-16:8 | +84.7% | +39.9% | 5.1s:1.1s:2.6s | + /// | bars 2160p | 4:-16:8 | +124.4% | +75.2% | 4.4s:1.0s:2.8s | + /// | screen capture | none (gated) | +49.1% | -4.3% | 6.5s:1.2s:2.3s | + /// + /// Those are, to the byte, the numbers lane-av1pyrgate recorded for the + /// same clips under `EC_AV1_PYRAMID=4:-16:8 EC_AV1_GATE_FACADE=1` -- the + /// facade arm -- which is what "one mini-GOP driver, two entry points" + /// means here. This downscaled recipe HATES the pyramid (as it hates + /// every knob the real film rows of `bd_rate_screen_native` keep, which + /// is why it decides nothing); `EC_AV1_PYRAMID=0` restores the flat rows + /// above. The capture's row is the flat row to the byte in both runs -- + /// that equality IS the content gate. /// /// Loop restoration is NOT in yet: it is the one filter whose parameters /// are per restoration UNIT inside the tile payload, so it needs both @@ -12778,14 +12873,16 @@ mod tests { let _ = crate::tile::take_compound_size_hits(); let _ = crate::tile::take_compound_leaf_mode_hits(); let _ = crate::motion::take_census(); - let pyramid_env = pyramid_from_env(); // The entry-surface arm: run the SAME ladder through the // streaming facade the editor's export calls, which must print - // the same BD numbers as the sequence path. + // the same BD numbers as the sequence path -- byte for byte the + // same stream now that both drive one mini-GOP driver + // (lane-av1pyrdef). let facade = std::env::var_os("EC_AV1_GATE_FACADE").is_some(); - let (ours, ours_wall) = match (facade, pyramid_env) { - (false, None) => our_ladder(name, &source, width, height, fctx), - (_, pyramid) => { + let (ours, ours_wall) = match facade { + false => our_ladder(name, &source, width, height, fctx), + true => { + let pyramid = crate::encoder::Pyramid::from_env(); let (ladder, wall, counts, bytes, effective) = our_ladder_facade(name, &source, width, height, pyramid); eprintln!( @@ -13184,13 +13281,17 @@ mod tests { /// EC_AV1_INTRABC=1 ... same command # intra block copy /// EC_AV1_PAL_MAXCOLORS=256 ... same command # palette bound /// EC_AV1_TILES=1:1 EC_AV1_TILE_THREADS=4 ... # 2x2 tiles - /// EC_AV1_PYRAMID=4:-16:8 ... same command # coding pyramid + /// EC_AV1_PYRAMID=0 ... same command # no coding pyramid + /// EC_AV1_GATE_FACADE=1 ... same command # the facade arm /// - /// Under `EC_AV1_PYRAMID` this arm codes its ladder through the streaming - /// facade ([`our_ladder_pyramid`]), which exposes no per-packet - /// reconstruction: that path asserts ffmpeg's decode against our own - /// decoder on all three planes in display order, and prints the per-level - /// frame and byte census. + /// The coding pyramid is the DEFAULT of the sequence path this arm codes + /// through (lane-av1pyrdef); the run prints the requested and the + /// effective pyramid per clip, and a screen clip's effective one is + /// `None`. `EC_AV1_GATE_FACADE=1` runs the same ladder through the + /// streaming facade instead, which prints the per-level frame and byte + /// census and asserts ffmpeg's decode against our own decoder on all + /// three planes in display order; both arms code the same bytes + /// (`encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence`). /// /// WHICH ROWS ARE REAL CONTENT: the `bars 1080p` / `bars 2160p` rows are /// the repo fixtures `scripts/gen-fixtures.sh` builds with ffmpeg @@ -13220,6 +13321,23 @@ mod tests { /// (their classification never moved); the palette search over film was /// costing roughly a tenth of the film rows' wall. /// + /// CONFIRM RUN 2026-09-07 (lane-av1pyrdef), with the pyramid now the + /// sequence path's default -- the four non-screen rows take `4:-16:8`, + /// the capture is gated flat and does not move a byte: + /// + /// | clip | effective | flat -> default | vs rav1e | wall ours:libaom:rav1e | + /// |---|---|---|---|---| + /// | bars 1080p | 4:-16:8 | +16.4% -> +21.5% | -1.1% -> +3.7% | 37.8s:8.4s:16.4s | + /// | bars 2160p | 4:-16:8 | +48.2% -> +48.3% | +20.4% -> +20.4% | 32.2s:5.6s:16.2s | + /// | film A | 4:-16:8 | +62.8% -> +54.1% | +32.5% -> +24.2% | 58.9s:9.5s:13.6s | + /// | film B | 4:-16:8 | +86.3% -> +82.6% | +50.5% -> +47.4% | 63.2s:18.7s:16.4s | + /// | screen capture | none (gated) | +50.1% -> +50.1% | -15.4% -> -15.4% | 31.1s:8.4s:11.3s | + /// + /// Every row lands on lane-av1pyrgate's facade-arm number to the digit, + /// which is the point of the shared driver: the two entry points code one + /// stream. The bars rows are fixtures (recorded, never a decision); the + /// two real films are what the pyramid ships for. + /// /// All five gate clips are rows by default. `EC_AV1_NATIVE_FILM=1`, /// `EC_AV1_NATIVE_FILM4K=1` and `EC_AV1_NATIVE_SCREEN=1` select a subset: /// setting any one of them keeps only the selected rows (the two 1080p @@ -13293,21 +13411,10 @@ mod tests { let _ = crate::tile::take_palette_uv_hits(); let _ = crate::tile::take_intrabc_hits(); let _ = take_intrabc_search(); - let (ours, ours_wall) = match pyramid_from_env() { - None => our_ladder(name, &source, cw, ch, fctx), - Some(pyramid) => { - let (ladder, wall, counts, bytes, effective) = - our_ladder_facade(name, &source, cw, ch, Some(pyramid)); - eprintln!( - "{name}: pyramid requested {pyramid:?} effective {effective:?} \ - -- frames key {} arf {} leaf {} \ - show_existing {}; bytes key {} arf {} leaf {} show_existing {}", - counts[0], counts[1], counts[2], counts[3], - bytes[0], bytes[1], bytes[2], bytes[3], - ); - (ladder, wall) - } - }; + // The sequence path itself codes the pyramid now + // (lane-av1pyrdef), and prints what it requested and what the + // content gate left effective. + let (ours, ours_wall) = our_ladder(name, &source, cw, ch, fctx); // gate-blind-to-feature: what the screen tools actually did at // native resolution, over this clip's four encodes. let screen_on = SCREEN_FRAMES[1].load(std::sync::atomic::Ordering::Relaxed); diff --git a/crates/ec-av1/src/encoder.rs b/crates/ec-av1/src/encoder.rs index 2b411293..4935d9ca 100644 --- a/crates/ec-av1/src/encoder.rs +++ b/crates/ec-av1/src/encoder.rs @@ -356,6 +356,33 @@ pub struct Pyramid { pub leaf_q_offset: i16, } +impl Pyramid { + /// The pyramid a run asks for through the environment: + /// `EC_AV1_PYRAMID=[::]`, with + /// `0` (or anything that is not a mini-GOP of at least 2, e.g. `flat`) + /// meaning the flat one-picture-one-frame path. UNSET is + /// [`Pyramid::default`]: the pyramid is what + /// [`crate::encode::encode_sequence`], the BD gate and `ec-bench` code + /// under unless a run turns it off for an A/B. + #[must_use] + pub fn from_env() -> Option { + let d = Self::default(); + let Some(spec) = std::env::var("EC_AV1_PYRAMID").ok() else { + return Some(d); + }; + let mut f = spec.split(':'); + let mini_gop: usize = f.next().and_then(|v| v.parse().ok()).unwrap_or(0); + if mini_gop < 2 { + return None; + } + Some(Self { + mini_gop, + arf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.arf_q_offset), + leaf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.leaf_q_offset), + }) + } +} + impl Default for Pyramid { /// The best point of the offset sweep run through the BD gate's own /// `EC_AV1_PYRAMID=[::]` knob @@ -479,15 +506,20 @@ impl Default for Pyramid { /// (the pyramid changes the reference structure): +54.5 / +24.5 and /// +85.2 / +49.4, worse on both films, so 0.0275 stands. /// - /// Nothing selects the pyramid but an explicit - /// [`Av1Encoder::with_pyramid`] call (or `EC_AV1_PYRAMID` on the gate and - /// on `ec-bench`); the default one-in-one-out path is byte-identical to - /// before it existed. Making it the DEFAULT needs the same reordering in - /// [`crate::encode::encode_sequence`] first -- the facade is pinned byte - /// for byte to that path - /// (`encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence`), - /// so a pyramid the facade takes by default and the sequence path cannot - /// would break that pin rather than ship a gain. + /// SHIPPED AS THE DEFAULT on lane-av1pyrdef. `4:-16:8` is what + /// [`crate::encode::encode_sequence`] (through + /// [`Av1Encoder::encode_sequence_pyramid`], the one mini-GOP driver both + /// paths run), the BD gates and `ec-bench` code a non-screen stream + /// under; a screen stream still codes flat, decided once per stream by + /// the content gate in [`Av1Encoder::encode_frames`]. `EC_AV1_PYRAMID=0` + /// restores the flat path everywhere for an A/B, and + /// `EC_AV1_PYRAMID=[::]` another shape of it + /// ([`Pyramid::from_env`]). + /// + /// [`Av1Encoder::new`] is unchanged: the one-picture-one-packet facade + /// entry point still codes flat, since a picture no longer maps to a + /// packet under a pyramid — [`Av1Encoder::with_pyramid`] plus + /// [`Av1Encoder::encode_frames`] is the streaming surface that reorders. fn default() -> Self { Self { mini_gop: 4, @@ -580,6 +612,11 @@ pub struct Av1Encoder { anchor: usize, /// Coding-order position of the next packet — a packet's `dts`. next_dts: u64, + /// Set by [`Av1Encoder::encode_sequence_pyramid`]: every coded frame's + /// own cropped [`Encoded`] (its display position and its reconstruction), + /// which is what [`crate::encode::EncodedSequence`] carries and a packet + /// does not. `None` for every other caller, which pays nothing for it. + collected: Option>, } /// One decoded-picture-buffer slot: what a `refresh_frame_flags` bit stores @@ -645,6 +682,7 @@ impl Av1Encoder { held: std::collections::VecDeque::new(), anchor: 0, next_dts: 0, + collected: None, }) } @@ -931,6 +969,71 @@ impl Av1Encoder { Ok(self.packet(cropped.stream, is_key, order, level)) } + /// THE SHARED MINI-GOP DRIVER: codes a whole sequence — one key frame + /// then all inter, which is [`crate::encode::encode_sequence`]'s only + /// shape — through this very facade, under `pyramid`, and hands back what + /// that path returns. The two are byte-identical BY CONSTRUCTION rather + /// than by a mirrored second implementation: there is one reordering, + /// one DPB/slot policy and one set of per-level quantizer offsets, here + /// (`encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence` + /// still pins it, now over a pyramid sequence too). + /// + /// The content gate lives in [`Av1Encoder::encode_frames`] and applies + /// unchanged, so a screen-content clip handed in here codes flat. + /// + /// `EncodedSequence::frames` comes back in DISPLAY order, one entry per + /// source picture — the order the flat path's coding order happens to be, + /// and the order every reader of it (the BD gate's sample-exactness + /// assertions against a decoder's output) needs. `stream` stays in coding + /// order, which is the order a decoder reads. + /// + /// # Errors + /// As [`Av1Encoder::encode_frames`]. + pub(crate) fn encode_sequence_pyramid( + pictures: &[Picture], + base_q_idx: u8, + pyramid: Pyramid, + tiles: (u32, u32), + ) -> Result { + let first = pictures.first().ok_or_else(|| { + Error::unsupported("AV1 encode", "a sequence needs at least one picture") + })?; + let config = EncoderConfig { + width: first.width, + height: first.height, + base_q_idx, + // One key frame, at picture 0, and inter for the rest. + gop: pictures.len().max(1), + // `encode_sequence` writes an unspecified colour config. + colour: Colour::Unspecified, + tile_cols_log2: tiles.0, + tile_rows_log2: tiles.1, + }; + let mut encoder = Self::with_pyramid(config, pyramid)?; + encoder.collected = Some(Vec::with_capacity(pictures.len())); + let mut stream = Vec::new(); + for picture in pictures { + for packet in encoder.encode_frames(picture)? { + stream.extend_from_slice(&packet.data); + } + } + for packet in encoder.flush()? { + stream.extend_from_slice(&packet.data); + } + let mut collected = encoder.collected.take().expect("collecting"); + // Every source picture is coded exactly once, so a frame's display + // order IS its index once the list is sorted by it. + let coding_order: Vec = + collected.iter().map(|(order, _)| *order as usize).collect(); + collected.sort_by_key(|(order, _)| *order); + let frames: Vec = collected.into_iter().map(|(_, encoded)| encoded).collect(); + assert!( + coding_order.iter().all(|&i| i < frames.len()), + "a coded frame's display position is outside the sequence" + ); + Ok(crate::encode::EncodedSequence { stream, frames, coding_order }) + } + /// Stamps a packet with its display and coding positions and advances the /// coding-order clock. fn packet(&mut self, data: Vec, key: bool, order: u64, level: Level) -> Packet { @@ -983,6 +1086,9 @@ impl Av1Encoder { if let Some(rate_loop) = self.rate_loop.as_mut() { rate_loop.update(Level::Key, cropped.stream.len()); } + if let Some(collected) = self.collected.as_mut() { + collected.push((order, cropped.clone())); + } Ok(self.packet(cropped.stream, true, order, Level::Key)) } @@ -1091,6 +1197,9 @@ impl Av1Encoder { if let Some(rate_loop) = self.rate_loop.as_mut() { rate_loop.update(level, cropped.stream.len()); } + if let Some(collected) = self.collected.as_mut() { + collected.push((order, cropped.clone())); + } Ok(self.packet(cropped.stream, false, order, level)) } @@ -1263,54 +1372,106 @@ mod tests { assert!(enc.flush().unwrap().is_empty(), "nothing is held twice"); } - /// THE ENTRY-SURFACE GATE (lane-av1facade): the streaming facade — what - /// the editor's export drives — codes byte for byte what - /// [`crate::encode::encode_sequence`] codes, which is the path the BD - /// gate measures. It did not before: the facade passed no lookahead, so - /// every inter frame missed the per-superblock temporal lambda map - /// (lane-av1tpl) the gate's numbers were measured with. + /// A screen-like card: hard-edged 4-pixel bands of two flat luma values + /// with a moving block over the lower half — few colours per 16x16 block + /// at high variance, which is exactly what + /// [`crate::encode::picture_is_screen`] separates. Used unforced, so the + /// gate below runs the real detector rather than an override. + fn screen_card(width: usize, height: usize, shift: usize) -> Picture { + let mut picture = Picture::grey(width, height); + for y in 0..height { + for x in 0..width { + let band = if (x / 4).is_multiple_of(2) { 40 } else { 200 }; + let over = y >= height / 2 && (x + shift) % width < width / 3; + picture.y[y * width + x] = if over { 128 } else { band }; + } + } + picture + } + + /// THE ENTRY-SURFACE GATE (lane-av1facade, extended to the pyramid on + /// lane-av1pyrdef): the streaming facade — what the editor's export + /// drives — codes byte for byte what [`crate::encode::encode_sequence`] + /// codes, which is the path the BD gate measures. Both now drive ONE + /// mini-GOP driver ([`Av1Encoder::encode_sequence_pyramid`]), so the + /// identity is by construction; this pins it anyway, over both content + /// classes the content gate splits: /// - /// Runs on the gate's own clip at the gate's own size when the fixture is - /// there, and on a synthetic card otherwise — never skipped, since a - /// skipped identity gate is the defect it is meant to catch. + /// * film-like (the gate's own clip when the fixture is there, a + /// multi-tone moving card otherwise): the pyramid is EFFECTIVE, the + /// stream is reordered (a hidden `ALTREF` per mini-GOP), and the two + /// paths' whole streams are identical; + /// * screen-like: the content gate drops BOTH paths back to flat, one + /// packet per picture, identical frame by frame as well as whole. + /// + /// Never skipped, since a skipped identity gate is the defect it is meant + /// to catch. #[test] fn the_facade_codes_the_same_bytes_as_encode_sequence() { let frames = 12usize; - let pictures = h264_clip_frames(640, 384, frames).unwrap_or_else(|| { + let film = h264_clip_frames(640, 384, frames).unwrap_or_else(|| { eprintln!("no h264 clip: the facade identity gate runs on a synthetic card"); (0..frames).map(|t| test_card(64, 64, t)).collect() }); - let (width, height) = (pictures[0].width, pictures[0].height); - for q in [150u8, 60] { - let config = EncoderConfig { - width, - height, - base_q_idx: q, - // One key frame then all inter, which is `encode_sequence`'s - // only shape, and the gate's recipe. - gop: frames, - // `encode_sequence` writes an unspecified colour config. - colour: Colour::Unspecified, - tile_cols_log2: 0, - tile_rows_log2: 0, - }; - let mut enc = Av1Encoder::new(config).unwrap(); - let packets = encode_all(&mut enc, &pictures); - let sequence = crate::encode::encode_sequence(&pictures, q, DEADZONE).unwrap(); - assert_eq!(packets.len(), frames, "q={q}: one packet per picture"); - for (i, (packet, coded)) in packets.iter().zip(&sequence.frames).enumerate() { - let cropped = crate::encode::crop_encoded(coded, width, height); + let screen: Vec = (0..frames).map(|t| screen_card(64, 64, t)).collect(); + let pyramid = Pyramid::from_env().expect("the pyramid is this build's default"); + for (content, pictures, is_screen) in + [("film", &film, false), ("screen", &screen, true)] + { + let (width, height) = (pictures[0].width, pictures[0].height); + for q in [150u8, 60] { + let config = EncoderConfig { + width, + height, + base_q_idx: q, + // One key frame then all inter, which is + // `encode_sequence`'s only shape, and the gate's recipe. + gop: frames, + // `encode_sequence` writes an unspecified colour config. + colour: Colour::Unspecified, + tile_cols_log2: 0, + tile_rows_log2: 0, + }; + let mut enc = Av1Encoder::with_pyramid(config, pyramid).unwrap(); + let mut packets = Vec::new(); + for picture in pictures { + packets.extend(enc.encode_frames(picture).unwrap()); + } + packets.extend(enc.flush().unwrap()); + assert_eq!( + enc.pyramid().is_none(), + is_screen, + "{content} q={q}: the content gate read this clip the other way round" + ); + let sequence = crate::encode::encode_sequence(pictures, q, DEADZONE).unwrap(); + assert_eq!( + (packets.iter().map(|p| p.data.len()).sum::(), concat(&packets)), + (sequence.stream.len(), sequence.stream.clone()), + "{content} q={q}: the facade's stream is not the sequence path's" + ); assert_eq!( - (packet.data.len(), packet.data.clone()), - (cropped.stream.len(), cropped.stream.clone()), - "q={q} frame {i}: the facade's bytes are not the sequence path's" + sequence.frames.len(), + frames, + "{content} q={q}: one entry per picture, in display order" ); + if is_screen { + assert_eq!(packets.len(), frames, "{content} q={q}: one packet per picture"); + for (i, (packet, coded)) in packets.iter().zip(&sequence.frames).enumerate() { + let cropped = crate::encode::crop_encoded(coded, width, height); + assert_eq!( + (packet.data.len(), packet.data.clone()), + (cropped.stream.len(), cropped.stream.clone()), + "{content} q={q} frame {i}: the facade's bytes are not the \ + sequence path's" + ); + } + } else { + assert!( + packets.iter().any(|p| p.level == Level::Arf), + "{content} q={q}: a non-screen stream coded no hidden frame" + ); + } } - assert_eq!( - concat(&packets), - sequence.stream, - "q={q}: whole stream" - ); } } diff --git a/lanes/pyrdef/g640.log b/lanes/pyrdef/g640.log new file mode 100644 index 00000000..db3bc8f7 --- /dev/null +++ b/lanes/pyrdef/g640.log @@ -0,0 +1,71 @@ + +running 1 test + +12 frames of each clip at 640x384, gop=12, 1 tile, 1 thread +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e | +|---|---|---|---|---| +bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +bars 1080p: inter modes NEAREST 11635 (87.0%) NEAR 188 (1.4%) GLOBAL 164 (1.2%) NEW 1389 (10.4%); drl idx 0/1/2/3+ 13108/252/16/0 +bars 1080p: compound 13005 of 26381 inter blocks (49.3%); modes NEAREST_NEAREST 9793 NEAR_NEAR 0 NEAREST_NEW 863 NEW_NEAREST 734 GLOBAL_GLOBAL 853 NEW_NEW 762; pairs LAST+GOLDEN 4113 LAST+ALTREF 8892 +bars 1080p: leaf (16x16 and below) compound modes NEAREST_NEAREST 7089 NEAR_NEAR 0 NEAREST_NEW 806 NEW_NEAREST 623 GLOBAL_GLOBAL 709 NEW_NEW 642 +bars 1080p: compound by size 8x8 6726 16x16 3143 32x32 3136 +bars 1080p: motion search 88043 calls, 4942345 candidate evals (56.1/call, 28.5% of them subpel), 424238 integer rounds (4.82/call); winner within +-1 pel of pred_mv 86.0%, winner = starting seed 70.3% +bars 1080p: references LAST 6503 GOLDEN 5825 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 1048) +bars 1080p: inter 32x32 split into 16s 1818 of 10560 blocks (17.2%); 16x16 leaves split into 8s 2302 of 8908 (25.8%) +bars 1080p: over 48 frames -- deblock luma mean 9.4 chroma 9.3; cdef luma pri 4.4/sec 3.3, chroma pri 3.1/sec 2.1 +bars 1080p: cdef_bits frames 5/17/12/14 (0/1/2/3); 829 of 2880 64x64 units on a non-default preset (28.8%) +bars 1080p: lr units none=2861 wiener=19 (0.7% restored) +bars 1080p: pricer armings default=18 real=180 +bars 1080p: screen frames on=0 off=4; palette blocks 0 sizes +bars 1080p: chroma palette blocks 0 sizes +bars 1080p: uv modes DC=14271 (40.4%) V=2701 (7.6%) H=3293 (9.3%) SMOOTH=3714 (10.5%) SMOOTH_V=2188 (6.2%) SMOOTH_H=2620 (7.4%) PAETH=6533 (18.5%) +bars 1080p: intra tx depths 0=11051 (31.3%) 1=21035 (59.6%) 2=3234 (9.2%) +bars 1080p: inter var-tx depths of 5216 blocks -- leaf single 0=377 1=220 (36.9% split) | leaf compound 0=1566 1=1091 (41.1% split) | 32x32 single 0=236 1=491 (67.5% split) | 32x32 compound 0=311 1=924 (74.8% split) +bars 1080p: motion_mode 32x32 SIMPLE=8466 OBMC=0 WARP=241 | 16x16 SIMPLE=916 OBMC=0 WARP=239 | 8x8 SIMPLE=1507 OBMC=0 WARP=808 (0.0% OBMC / 10.6% WARP of 12177 eligible) +| bars 1080p | 43.90 dB/18230 B, 46.66 dB/30260 B, 49.24 dB/49978 B, 51.84 dB/72519 B | +84.7% | +39.9% | 5.1s:1.1s:2.6s | +| references | libaom 42.76 dB/7179 B, 44.78 dB/10177 B, 48.45 dB/24647 B, 56.50 dB/94272 B | rav1e 37.98 dB/4274 B, 42.57 dB/8004 B, 45.74 dB/17715 B, 49.20 dB/39938 B | | | +bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +bars 2160p: inter modes NEAREST 12089 (89.3%) NEAR 236 (1.7%) GLOBAL 196 (1.4%) NEW 1012 (7.5%); drl idx 0/1/2/3+ 13227/297/9/0 +bars 2160p: compound 8268 of 21801 inter blocks (37.9%); modes NEAREST_NEAREST 6210 NEAR_NEAR 0 NEAREST_NEW 697 NEW_NEAREST 359 GLOBAL_GLOBAL 567 NEW_NEW 435; pairs LAST+GOLDEN 2245 LAST+ALTREF 6023 +bars 2160p: leaf (16x16 and below) compound modes NEAREST_NEAREST 3332 NEAR_NEAR 0 NEAREST_NEW 599 NEW_NEAREST 298 GLOBAL_GLOBAL 432 NEW_NEW 326 +bars 2160p: compound by size 8x8 2804 16x16 2183 32x32 3281 +bars 2160p: motion search 71140 calls, 3978713 candidate evals (55.9/call, 28.6% of them subpel), 341363 integer rounds (4.80/call); winner within +-1 pel of pred_mv 86.4%, winner = starting seed 79.5% +bars 2160p: references LAST 6308 GOLDEN 6089 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 1136) +bars 2160p: inter 32x32 split into 16s 1393 of 10560 blocks (13.2%); 16x16 leaves split into 8s 1547 of 7268 (21.3%) +bars 2160p: over 48 frames -- deblock luma mean 8.6 chroma 5.1; cdef luma pri 1.3/sec 1.5, chroma pri 2.0/sec 2.0 +bars 2160p: cdef_bits frames 3/18/20/7 (0/1/2/3); 737 of 2880 64x64 units on a non-default preset (25.6%) +bars 2160p: lr units none=2849 wiener=31 (1.1% restored) +bars 2160p: pricer armings default=18 real=181 +bars 2160p: screen frames on=0 off=4; palette blocks 0 sizes +bars 2160p: chroma palette blocks 0 sizes +bars 2160p: uv modes DC=16231 (55.7%) V=2662 (9.1%) H=1828 (6.3%) SMOOTH=1080 (3.7%) SMOOTH_V=1806 (6.2%) SMOOTH_H=972 (3.3%) PAETH=4577 (15.7%) +bars 2160p: intra tx depths 0=12624 (43.3%) 1=14486 (49.7%) 2=2046 (7.0%) +bars 2160p: inter var-tx depths of 3751 blocks -- leaf single 0=346 1=192 (35.7% split) | leaf compound 0=1040 1=600 (36.6% split) | 32x32 single 0=262 1=453 (63.4% split) | 32x32 compound 0=298 1=560 (65.3% split) +bars 2160p: motion_mode 32x32 SIMPLE=9459 OBMC=0 WARP=238 | 16x16 SIMPLE=876 OBMC=0 WARP=277 | 8x8 SIMPLE=924 OBMC=0 WARP=602 (0.0% OBMC / 9.0% WARP of 12376 eligible) +| bars 2160p | 45.02 dB/14125 B, 48.15 dB/19322 B, 50.51 dB/30242 B, 52.76 dB/43769 B | +124.4% | +75.2% | 4.4s:1.0s:2.8s | +| references | libaom 44.31 dB/5833 B, 47.75 dB/9035 B, 51.45 dB/13848 B, 56.50 dB/49099 B | rav1e 39.20 dB/2833 B, 43.62 dB/5536 B, 47.90 dB/10763 B, 50.92 dB/21183 B | | | +screen capture (2026-07-25 02-09-04.mkv): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective None +screen capture (2026-07-25 02-09-04.mkv): inter modes NEAREST 12197 (99.5%) NEAR 2 (0.0%) GLOBAL 0 (0.0%) NEW 63 (0.5%); drl idx 0/1/2/3+ 12260/2/0/0 +screen capture (2026-07-25 02-09-04.mkv): compound 5746 of 18008 inter blocks (31.9%); modes NEAREST_NEAREST 5721 NEAR_NEAR 0 NEAREST_NEW 6 NEW_NEAREST 12 GLOBAL_GLOBAL 7 NEW_NEW 0; pairs LAST+GOLDEN 362 LAST+ALTREF 5384 +screen capture (2026-07-25 02-09-04.mkv): leaf (16x16 and below) compound modes NEAREST_NEAREST 1303 NEAR_NEAR 0 NEAREST_NEW 6 NEW_NEAREST 8 GLOBAL_GLOBAL 6 NEW_NEW 0 +screen capture (2026-07-25 02-09-04.mkv): compound by size 8x8 284 16x16 1039 32x32 4423 +screen capture (2026-07-25 02-09-04.mkv): motion search 95358 calls, 4956775 candidate evals (52.0/call, 30.8% of them subpel), 416890 integer rounds (4.37/call); winner within +-1 pel of pred_mv 97.7%, winner = starting seed 96.0% +screen capture (2026-07-25 02-09-04.mkv): references LAST 5134 GOLDEN 6517 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 611) +screen capture (2026-07-25 02-09-04.mkv): inter 32x32 split into 16s 479 of 10560 blocks (4.5%); 16x16 leaves split into 8s 360 of 12176 (3.0%) +screen capture (2026-07-25 02-09-04.mkv): over 48 frames -- deblock luma mean 4.4 chroma 0.7; cdef luma pri 0.7/sec 0.4, chroma pri 2.4/sec 0.2 +screen capture (2026-07-25 02-09-04.mkv): cdef_bits frames 23/6/12/7 (0/1/2/3); 732 of 2880 64x64 units on a non-default preset (25.4%) +screen capture (2026-07-25 02-09-04.mkv): lr units none=2878 wiener=2 (0.1% restored) +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=170 real=0 +screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0; palette blocks 2167 sizes 3=12 4=457 5=4 7=2 8=1692 +screen capture (2026-07-25 02-09-04.mkv): chroma palette blocks 392 sizes 2=6 3=6 4=292 6=4 7=4 8=80 +screen capture (2026-07-25 02-09-04.mkv): uv modes DC=9401 (26.3%) V=829 (2.3%) H=6417 (18.0%) SMOOTH=1468 (4.1%) SMOOTH_V=805 (2.3%) SMOOTH_H=1100 (3.1%) PAETH=15676 (43.9%) +screen capture (2026-07-25 02-09-04.mkv): intra tx depths 0=6541 (18.3%) 1=21129 (59.2%) 2=8026 (22.5%) +screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 6023 blocks -- leaf single 0=874 1=746 (46.0% split) | leaf compound 0=936 1=580 (38.3% split) | 32x32 single 0=762 1=1041 (57.7% split) | 32x32 compound 0=473 1=611 (56.4% split) +screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=9564 OBMC=0 WARP=616 | 16x16 SIMPLE=1338 OBMC=0 WARP=166 | 8x8 SIMPLE=211 OBMC=0 WARP=270 (0.0% OBMC / 8.6% WARP of 12165 eligible) +| screen capture (2026-07-25 02-09-04.mkv) | 42.49 dB/11051 B, 45.53 dB/15531 B, 47.84 dB/20793 B, 49.94 dB/26389 B | +49.1% | -4.3% | 6.5s:1.2s:2.3s | +| references | libaom 45.12 dB/10679 B, 49.35 dB/15779 B, 55.26 dB/25633 B, 71.29 dB/52986 B | rav1e 34.51 dB/3233 B, 39.45 dB/7772 B, 44.72 dB/15210 B, 49.31 dB/24915 B | | | +test encode::tests::bd_rate_vs_libaom_and_rav1e ... ok + +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 30.23s + +RC=0 diff --git a/lanes/pyrdef/native.log b/lanes/pyrdef/native.log new file mode 100644 index 00000000..47d4ca12 --- /dev/null +++ b/lanes/pyrdef/native.log @@ -0,0 +1,42 @@ + +running 1 test + +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | +|---|---|---|---|---| +bars 1080p: sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +bars 1080p: pricer armings default=16 real=177 +bars 1080p: motion_mode 32x32 SIMPLE=76115 OBMC=0 WARP=138 | 16x16 SIMPLE=2927 OBMC=0 WARP=163 | 8x8 SIMPLE=17155 OBMC=0 WARP=1236 (0.0% OBMC / 1.6% WARP of 97734 eligible) +bars 1080p: inter var-tx depths of 12372 blocks -- leaf single 0=1211 1=649 (34.9% split) | leaf compound 0=1472 1=1210 (45.1% split) | 32x32 single 0=940 1=2057 (68.6% split) | 32x32 compound 0=2446 1=2387 (49.4% split) +bars 1080p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +test encode::tests::bd_rate_screen_native has been running for over 60 seconds +| bars 1080p 1920x1024 | 43.96 dB/264019 B, 47.65 dB/387214 B, 51.09 dB/518844 B, 53.97 dB/647879 B | +21.5% | +3.7% | 37.8s:8.4s:16.4s | +bars 2160p: sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +bars 2160p: pricer armings default=15 real=149 +bars 2160p: motion_mode 32x32 SIMPLE=45730 OBMC=0 WARP=6 | 16x16 SIMPLE=211 OBMC=0 WARP=9 | 8x8 SIMPLE=5537 OBMC=0 WARP=317 (0.0% OBMC / 0.6% WARP of 51810 eligible) +bars 2160p: inter var-tx depths of 12845 blocks -- leaf single 0=427 1=80 (15.8% split) | leaf compound 0=5080 1=676 (11.7% split) | 32x32 single 0=568 1=1663 (74.5% split) | 32x32 compound 0=110 1=4241 (97.5% split) +bars 2160p: screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| bars 2160p 1920x1024 | 43.61 dB/314759 B, 47.66 dB/459853 B, 51.36 dB/596600 B, 54.40 dB/714070 B | +48.3% | +20.4% | 32.2s:5.6s:16.2s | +film A (1080p source): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +film A (1080p source): pricer armings default=20 real=217 +film A (1080p source): motion_mode 32x32 SIMPLE=63427 OBMC=0 WARP=2032 | 16x16 SIMPLE=29966 OBMC=0 WARP=2625 | 8x8 SIMPLE=10914 OBMC=0 WARP=2281 (0.0% OBMC / 6.2% WARP of 111245 eligible) +film A (1080p source): inter var-tx depths of 114875 blocks -- leaf single 0=19623 1=4907 (20.0% split) | leaf compound 0=41256 1=11823 (22.3% split) | 32x32 single 0=9247 1=6437 (41.0% split) | 32x32 compound 0=12947 1=8635 (40.0% split) +film A (1080p source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| film A (1080p source) 1920x768 | 43.45 dB/72608 B, 45.36 dB/121963 B, 46.82 dB/218318 B, 47.98 dB/397376 B | +54.1% | +24.2% | 58.9s:9.5s:13.6s | +film B (2160p HDR source): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) +film B (2160p HDR source): pricer armings default=17 real=194 +film B (2160p HDR source): motion_mode 32x32 SIMPLE=90680 OBMC=0 WARP=1169 | 16x16 SIMPLE=23506 OBMC=0 WARP=976 | 8x8 SIMPLE=3306 OBMC=0 WARP=1170 (0.0% OBMC / 2.7% WARP of 120807 eligible) +film B (2160p HDR source): inter var-tx depths of 101802 blocks -- leaf single 0=18886 1=5121 (21.3% split) | leaf compound 0=31381 1=7835 (20.0% split) | 32x32 single 0=12097 1=9516 (44.0% split) | 32x32 compound 0=10521 1=6445 (38.0% split) +film B (2160p HDR source): screen frames on=0 off=4 (0.0% on); palette blocks luma 0 chroma 0; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| film B (2160p HDR source) 1920x1024 | 46.48 dB/38089 B, 47.91 dB/74527 B, 49.07 dB/169528 B, 50.05 dB/340970 B | +82.6% | +47.4% | 63.2s:18.7s:16.4s | +screen capture (2026-07-25 02-09-04.mkv): sequence, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective None +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 +screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=81719 OBMC=0 WARP=2056 | 16x16 SIMPLE=4530 OBMC=0 WARP=772 | 8x8 SIMPLE=1003 OBMC=0 WARP=906 (0.0% OBMC / 4.1% WARP of 90986 eligible) +screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 18765 blocks -- leaf single 0=2093 1=2172 (50.9% split) | leaf compound 0=2264 1=1810 (44.4% split) | 32x32 single 0=2293 1=4692 (67.2% split) | 32x32 compound 0=1342 1=2099 (61.0% split) +screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 10148 chroma 1331; intrabc blocks 0 (searched 0 / valid 0 / won 0) +| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 46.00 dB/45256 B, 48.82 dB/57616 B, 51.21 dB/74177 B, 53.49 dB/96308 B | +50.1% | -15.4% | 31.1s:8.4s:11.3s | +test encode::tests::bd_rate_screen_native ... ok + +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 362.70s + +RC=0 diff --git a/lanes/pyrdef/suite.log b/lanes/pyrdef/suite.log new file mode 100644 index 00000000..fbef109d --- /dev/null +++ b/lanes/pyrdef/suite.log @@ -0,0 +1,596 @@ + +running 581 tests +test bits::tests::delta_q_roundtrip ... ok +test bits::tests::le_roundtrip ... ok +test bits::tests::leb128_roundtrip ... ok +test bits::tests::su_roundtrip ... ok +test bits::tests::trailing_bits_and_byte_alignment_are_byte_aligned ... ok +test cdf::tests::eob_pt_class1_rows_cover_every_size ... ok +test cdf::tests::inter_frame_tables_are_well_formed_cdfs ... ok +test cdf::tests::inter_frame_tables_have_the_spec_alphabet_size ... ok +test cdf_state::tests::the_mv_components_are_separate_and_do_not_share_adaptation ... ok +test cdf_state::tests::the_luma_end_of_block_table_is_shared_and_chromas_is_not ... ok +test bits::tests::ns_roundtrip ... ok +test cdf_state::tests::the_sign_tables_are_shared_within_a_plane_type_and_not_across ... ok +test cdf_state::tests::the_state_starts_at_the_defaults ... ok +test cdf_state::tests::the_two_luma_sets_share_the_base_range_table ... ok +test compound::tests::equidistant_references_pick_the_first_weight_row ... ok +test compound::tests::weights_always_sum_to_sixteen ... ok +test compound::tests::zero_distance_reference_takes_the_index_3_row ... ok +test decode::a_var_tx_tree_never_presents_a_leaf_larger_than_the_unit_it_entered ... ok +test decode::every_intra_in_inter_shape_the_census_lists_has_a_size_group_row ... ok +test decode::every_rect_transform_shape_the_census_lists_has_a_coefficient_table_and_scan ... ok +test decode::size_group_wh_matches_libaom_size_group_lookup ... ok +test decode::sub_tx_size_map_matches_libaom ... ok +test decode::every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row ... ok +test bits::tests::uvlc_roundtrip ... ok +test decode::tests::a_frame_with_no_mode_info_grid_is_refused ... ok +test decode::tests::a_rect_strip_below_16x16_reads_its_own_filter_intra_cdf_row ... ok +test decode::tests::a_selected_reference_with_an_empty_ref_frame_idx_slot_refuses_by_name ... ok +test decode::tests::a_non_split_inter_sb_partition_refuses_by_name_instead_of_desyncing ... ok +test decode::tests::a_nearmv_block_predicts_from_the_stacks_second_candidate ... ok +test decode::tests::a_sub16_leaf_after_a_palette_block_yields_palette_ctx_zero ... ok +test decode::tests::an_inter_chroma_transform_narrows_its_inherited_tx_type_to_its_own_set ... ok +test decode::tests::an_obmc_neighbour_with_no_recorded_filter_refuses_instead_of_panicking ... ok +test decode::tests::a_skipped_block_decodes_to_pure_prediction ... ok +test decode::tests::base_ctx_rect_offsets_match_the_transcribed_tables_over_the_whole_domain ... ok +test decode::tests::cdef_find_dir_matches_the_per_sample_reference ... ok +test decode::tests::cdef_gather_and_shifted_constrain_match_the_spec_forms ... ok +test decode::tests::compound_mode_ctx_map_matches_libaom_corners ... ok +test decode::tests::every_inter_record_publishes_an_obmc_readable_filter ... ok +test decode::tests::a_key_frames_tile_needs_the_headers_own_tx_select_bit ... ok +test decode::tests::deblock_simd_kernel_matches_the_scalar_filter ... ok +test decode::tests::a_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::filter_intra_classes_carry_their_own_libaom_default_row ... ok +test decode::tests::flat_taps_match_the_row_col_neighbour_reads ... ok +test decode::tests::is_uni_comp_ref_matches_forward_backward_sides ... ok +test decode::tests::every_intra_mode_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::narrowed_publish_surface_keeps_neighbour_semantics ... ok +test decode::tests::an_odd_size_gop_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::padded_level_buffers_cover_every_neighbour_read_at_every_transform_size ... ok +test decode::tests::real_yuv_round_trips_bit_exact_against_the_encoder_reconstruction ... ok +test decode::tests::record_compound_ctx_stamps_ref1_for_the_next_block_to_read ... ok +test decode::tests::scan_8x4_and_4x8_are_not_transposed_against_each_other ... ok +test decode::tests::the_rect4_scans_are_transposed_pairs ... ok +test decode::tx4x8_table_tests::the_32_position_eob_tables_are_well_formed ... ok +test decode::tx4x8_table_tests::the_rect_4x8_scans_are_each_other_transposed ... ok +test decode::tx4x8_table_tests::the_rect_class1_scans_match_libaom ... ok +test decode::tx4x8_table_tests::the_sub8_rect_reach_tables_are_shape_specific ... ok +test decode::tests::cdef_simd_kernel_matches_the_scalar_filter ... ok +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_gop ... ok +test encode::tests::a_flat_picture_costs_almost_nothing ... ok +test encode::tests::a_frame_of_real_video_decodes_to_what_the_encoder_reconstructed ... ok +test decode::tests::leaf8_straddle_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::a_mode_the_encoder_cannot_predict_is_refused ... ok +test decode::tests::ffmpeg_and_this_decoder_agree_on_a_key_frame ... ok +test encode::tests::a_nearestmv_block_with_one_nonzero_coefficient_decodes_clean ... ok +test encode::tests::a_picture_off_the_block_grid_encodes_and_a_malformed_one_is_refused ... ok +test decode::tests::odd_sizes_round_trip_bit_exact_against_the_encoder_reconstruction ... ok +test encode::tests::a_repeated_pattern_key_frame_codes_intrabc_blocks_ffmpeg_decodes_exactly ... ok +test encode::tests::a_640x360_half_straddle_sequence_round_trips_through_ffmpeg ... ok +test encode::tests::a_single_axis_straddle_round_trips_through_ffmpeg ... ok +test encode::tests::bd_rate_screen_native ... ignored, the native-resolution BD arm: minutes per row, needs ffmpeg +test encode::tests::bd_rate_vs_libaom_and_rav1e ... ignored, the encoder BD-rate baseline: minutes per clip, needs ffmpeg +test encode::tests::calibration_sweep_base_q_idx ... ignored, a calibration probe, not a gate +test encode::tests::a_screen_content_picture_codes_palette_blocks_ffmpeg_decodes_exactly ... ok +test encode::tests::a_640x360_half_straddle_round_trips_through_ffmpeg_across_three_frames ... ok +test encode::tests::every_frame_of_a_sequence_decodes_through_our_own_decoder ... ok +test encode::tests::every_rect_shape_reaches_what_libaom_says_over_the_whole_superblock ... ok +test encode::tests::every_frame_of_a_sequence_decodes_to_what_the_encoder_reconstructed ... ok +test encode::tests::fidelity_and_rate_move_with_the_quantizer ... ok +test encode::tests::an_854x480_picture_round_trips_through_its_padding ... ok +test encode::tests::key_frame_and_inter_frame_both_encode_at_half_straddle_size ... ok +test encode::tests::odd_dimensions_are_refused ... ok +test encode::tests::of_tu_follows_the_block_row_including_under_vert_ab ... ok +test encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit ... ok +test encode::tests::low_motion_makes_an_inter_frame_smaller_than_the_key_frame ... ok +test encode::tests::predicted_coeff_bits_track_the_tile_the_writer_wrote ... ok +test encode::tests::pricer_error_census_on_clips ... ignored, reads the real library, needs ffmpeg +test encode::tests::probe_directional ... ignored, a sweep, not a gate +test encode::tests::probe_intrabc_key_frame ... ignored, needs the real-library manifest and ffmpeg +test encode::tests::probe_ladder ... ignored, a sweep, not a gate +test encode::tests::probe_lambda ... ignored, a sweep, not a gate +test encode::tests::probe_screen_detect ... ignored, reads the real library +test encode::tests::probe_split ... ignored, a sweep, not a gate +test encode::tests::prune_k_quality_sweep ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge +test encode::tests::prune_k_quality_sweep_inter ... ignored, needs real clips and ffmpeg; prints numbers for the lane report to judge +test encode::tests::reach_matches_libaom_has_top_right_and_has_bottom_left ... ok +test encode::tests::pricer_error_census_by_block_class ... ok +test encode::tests::ffmpeg_decodes_exactly_what_the_encoder_reconstructed ... ok +test encode::tests::rect_reach_tables_are_indexed_with_a_32_mi_row_stride ... ok +test encode::tests::sequence_bench_sanity ... ignored, a perf probe, not a gate +test encode::tests::sequence_round_trips_at_a_non_multiple_size ... ok +test encode::tests::stage_timing_breakdown ... ignored, a perf probe, not a gate +test encode::tests::stage_timing_breakdown_inter ... ignored, a perf probe, not a gate +test encode::tests::the_diagonals_beat_the_modes_that_read_no_further ... ok +test encode::tests::the_encoded_picture_is_the_one_that_went_in ... ok +test encode::tests::a_sequence_round_trips_at_the_exactly_half_straddle_size ... ok +test encode::tests::the_filter_search_picks_real_filters ... ok +test encode::tests::real_clip_encodes_within_its_quality_and_size_budget_at_a_straddle_size ... ok +test encode::tests::every_mode_decodes_to_what_the_encoder_predicted ... ok +test encode::tests::the_search_beats_dc_alone ... ok +test encode::tests::the_search_picks_the_direction_the_picture_runs ... ok +test encode::tests::tpl_factors_are_flat_on_a_uniform_repeat_and_fall_where_the_window_leans ... ok +test encode::tests::tpl_intra_denominator_histogram ... ignored, needs ffmpeg and the film fixtures +test encode::tests::vert_ab_partition_flips_below_left_for_the_top_right_8x8 ... ok +test encoder::tests::a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders ... ignored, 1080p encode: minutes, run it with --ignored +test encode::tests::the_search_picks_the_diagonal_the_picture_runs ... ok +test encode::tests::real_clip_encodes_within_its_quality_and_size_budget ... ok +test encode::tests::the_final_filter_replay_matches_the_capture_decode_at_odd_sizes ... ok +test encoder::tests::bt601_limited_colour_is_reported_by_ffprobe ... ok +test encoder::tests::a_pyramid_stream_decodes_in_display_order_through_both_decoders ... ok +test encode::tests::a_frame_round_trips_at_its_own_size ... ok +test encoder::tests::bt709_limited_colour_is_reported_by_ffprobe ... ok +test encode::tests::the_encoders_own_streams_are_byte_identical_to_their_pins ... ok +test encoder::tests::filter_replay_codes_the_same_stream_as_a_full_decode ... ok +test encoder::tests::bytes_per_frame_controller_never_oscillates_past_its_clamp ... ok +test encoder::tests::filter_stage_wall_1080p ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::filter_stage_wall_4k ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::filter_stage_wall_film ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::geometry_mismatch_is_refused ... ok +test encoder::tests::gop_cadence_is_honored ... ok +test encoder::tests::one_in_one_out_delayed_by_the_lookahead_depth ... ok +test encoder::tests::filter_replay_final_matches_the_capture_decode ... ok +test encoder::tests::the_content_gate_keeps_screen_streams_flat ... ok +test encoder::tests::bytes_per_frame_target_settles_within_20_percent ... ok +test encoder::tests::thirty_pictures_at_gop_fifteen_decode_to_two_key_frames ... ok +test encoder::tests::every_tile_layout_decodes_sample_exact_through_both_decoders ... ok +test encoder::tests::tile_search_wall_1080p ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::tile_search_wall_4k ... ignored, wall measurement: minutes, run it with --ignored --nocapture +test encoder::tests::tile_wall_table_at_1080p ... ignored, 1080p wall table: minutes, run it with --ignored +test encoder::tests::zero_gop_is_refused ... ok +test envflags::tests::snapshot_matches_process_env ... ok +test film_grain::grain2_tests::untouched_planes_and_ragged_tail_come_back_clean ... ok +test film_grain::perf5_tests::simd_matches_scalar_chroma_noise_row ... ok +test film_grain::perf5_tests::simd_matches_scalar_luma_noise_row ... ok +test film_grain::ragged_grain_tests::ragged_overlap_tail_matches_spec_reference ... ok +test filter_search::tests::unit_sse_matches_the_naive_sum ... ok +test frame::tests::four_tile_columns_roundtrip ... ok +test frame::tests::key_and_inter_frames_roundtrip ... ok +test frame::tests::key_frame_header_roundtrips ... ok +test frame::tests::loop_restoration_roundtrips_with_its_own_type_codes ... ok +test frame::tests::segmentation_and_delta_q_roundtrip ... ok +test frame::tests::unsupported_frames_are_refused_by_name ... ok +test gate_coverage::tests::default_on_tools_do_not_duplicate_the_universe ... ok +test gate_coverage::tests::every_gate_disabling_a_tool_is_a_listed_coverage_hole ... ok +test gate_coverage::tests::never_exercised_10bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_on_10bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::never_on_8bit_matches_the_gate_recipes ... ok +test gate_coverage::tests::print_never_exercised_per_bit_depth ... ok +test gate_coverage::tests::print_never_on_per_bit_depth ... ok +test gate_coverage::tests::tool_settings_reads_whole_flags ... ok +test intra::tests::filter_intra_matches_the_libaom_predictor_for_every_mode_and_shape ... ok +test intra::tests::rect_predictors_match_c_dump ... ok +test mc::compound_intermediate_whole_pel_identity_round_trips_through_combine ... ok +test mc::tests::a_narrow_block_reads_the_regular_four_tap_kernel_under_every_sharpness ... ok +test mc::tests::constant_plane_has_unit_dc_gain_at_every_subpel_position ... ok +test mc::tests::half_pel_reproduces_the_ramp_midpoint ... ok +test mc::tests::horizontal_and_vertical_only_filtering_differ ... ok +test mc::tests::horizontal_intermediate_fits_i16 ... ok +test mc::tests::integer_mv_is_identity ... ok +test mc::tests::mv_past_the_edge_clamps_instead_of_panicking ... ok +test mc::tests::predict_scaled_at_no_scale_matches_predict_with_filters ... ok +test mc::tests::simd_matches_scalar_horizontal_pass ... ok +test mc::tests::simd_matches_scalar_vertical_pass ... ok +test mc::tests::smooth_filter_matches_aomdec_chroma_inter_block ... ok +test mc::tests::whole_pel_horizontal_matches_the_two_pass_form ... ok +test motion::tests::cost_is_monotone_non_increasing_over_the_search ... ok +test motion::tests::finds_exact_integer_translation_all_four_signs ... ok +test motion::tests::finds_half_pel_translation ... ok +test motion::tests::mv_bits_prices_a_larger_residual_higher ... ok +test motion::tests::sweep_initial_step ... ok +test motion_field::tests::an_unprojected_tpl_cell_reads_as_none_but_a_zero_mv_one_does_not ... ok +test motion_field::tests::mv_projection_scales_by_the_distance_ratio ... ok +test motion_field::tests::probe_cell_matches_the_spec_parity_derivation ... ok +test motion_field::tests::relative_dist_wraps_at_order_hint_bits ... ok +test motion_field::tests::setup_motion_field_projects_last_frame_forward ... ok +test msac::tests::adaptive_symbols_roundtrip ... ok +test msac::tests::bulk_bit_reads_match_the_per_bit_form ... ok +test msac::tests::empty_payload_is_short ... ok +test msac::tests::fast_paths_match_the_spec_literal_walk ... ok +test msac::tests::literals_roundtrip ... ok +test msac::tests::mixed_symbols_and_literals_roundtrip ... ok +test msac::tests::skewed_symbols_cost_less_than_a_bit ... ok +test msac::tests::the_bit_account_matches_the_bytes_written ... ok +test mvstack::tests::a_candidate_far_outside_the_frame_is_clamped_to_it ... ok +test mvstack::tests::a_corner_only_match_raises_new_mv_ctx_even_when_nearest_match_is_zero ... ok +test mvstack::tests::a_diagonal_corner_match_raises_ref_mv_ctx_past_nearest_match ... ok +test mvstack::tests::a_missing_compound_combine_slot_takes_that_sides_global_mv_not_zero ... ok +test mvstack::tests::a_neighbour_coded_newmv_raises_the_new_mv_context ... ok +test mvstack::tests::a_wider_neighbour_than_the_query_block_gets_libaoms_real_weight ... ok +test mvstack::tests::all_same_mv_neighbourhood_dedupes_to_one_entry ... ok +test mvstack::tests::clamp_mv_ref_window_is_signed_at_the_frame_bottom_edge ... ok +test mvstack::tests::combine_compound_candidates_zips_ref_id_then_ref_diff_per_side ... ok +test mvstack::tests::comp_reference_type_ctx_bidir_bidir_is_zero ... ok +test mvstack::tests::comp_reference_type_ctx_intra_intra_is_two ... ok +test mvstack::tests::comp_reference_type_ctx_no_edges_is_two ... ok +test mvstack::tests::comp_reference_type_ctx_single_single ... ok +test mvstack::tests::comp_reference_type_ctx_unidir_unidir ... ok +test mvstack::tests::compound_dedupes_same_pair_and_sums_weight ... ok +test mvstack::tests::compound_extension_pass_tops_up_a_short_stack ... ok +test mvstack::tests::compound_scan_only_matches_the_exact_pair ... ok +test mvstack::tests::compound_two_distinct_pairs_sort_by_weight ... ok +test mvstack::tests::extended_col_scan_is_a_no_op_at_8mi_geometry_even_behind_an_intra_neighbour ... ok +test mvstack::tests::extended_row_scan_is_a_no_op_at_8mi_geometry_behind_an_inter_neighbour ... ok +test mvstack::tests::extended_row_scan_is_a_no_op_at_8mi_geometry_even_behind_an_intra_neighbour ... ok +test mvstack::tests::mi_info_cell_stays_compact ... ok +test mvstack::tests::mi_info_stays_small_enough_for_a_4k_grid ... ok +test mvstack::tests::mi_units_outside_the_tile_contribute_nothing ... ok +test mvstack::tests::process_compound_ref_mv_candidate_splits_exact_vs_borrowed ... ok +test mvstack::tests::reference_mode_ctx_compound_compound_is_four ... ok +test mvstack::tests::reference_mode_ctx_no_edges_is_one ... ok +test mvstack::tests::reference_mode_ctx_single_and_compound ... ok +test mvstack::tests::reference_mode_ctx_single_single ... ok +test mvstack::tests::single_ref_ctx_matches_libaoms_collapsed_forward_only_case ... ok +test mvstack::tests::the_ninth_distinct_candidate_is_dropped_at_insertion_not_after_sorting ... ok +test mvstack::tests::the_row_reach_is_clamped_to_the_tile_origin_not_the_frame_edge ... ok +test mvstack::tests::transposing_above_and_left_produces_a_different_stack ... ok +test mvstack::tests::two_distinct_neighbour_mvs_yield_two_entries_in_weight_order ... ok +test mvstack::tests::uni_comp_ref_p1_ctx_matches_ref_ctx_shape ... ok +test obu::tests::obu_header_extension_roundtrip ... ok +test obu::tests::obu_header_plain_roundtrip ... ok +test obu::tests::temporal_delimiter_is_two_bytes ... ok +test obu::tests::wrap_obu_size_field_matches_payload ... ok +test quant::tests::buffered_dequant_matches_the_per_coefficient_form ... ok +test quant::tests::denominator_follows_the_area ... ok +test quant::tests::dequant_is_symmetric_in_sign ... ok +test quant::tests::table_anchors ... ok +test refusal_inventory::tests::capability_claims_are_declared_not_scattered ... ok +test refusal_inventory::tests::every_intra_mode_symbol_of_the_y_mode_alphabet_is_coded ... ok +test refusal_inventory::tests::every_partition_value_of_an_enumerated_alphabet_has_an_arm ... ok +test refusal_inventory::tests::every_partition_value_of_an_if_chain_alphabet_is_named_by_a_branch ... ok +test refusal_inventory::tests::every_proven_refusal_names_a_test_that_exists ... ok +test refusal_inventory::tests::every_read_intra_mode_call_site_hands_the_reader_a_palette_cache ... ok +test refusal_inventory::tests::every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table ... ok +test refusal_inventory::tests::every_tx_type_symbol_of_every_cdf_width_maps_into_its_own_set ... ok +test refusal_inventory::tests::gates_that_swallow_a_decode_error_are_declared ... ok +test refusal_inventory::tests::no_128_root_half_reads_a_cfl_filter_intra_or_palette_symbol ... ok +test refusal_inventory::tests::no_block_footprint_with_a_128_pixel_side_can_carry_palette_syntax ... ok +test refusal_inventory::tests::read_golomb_reads_every_value_a_conformant_stream_can_carry ... ok +test refusal_inventory::tests::the_decode_path_refuses_exactly_the_listed_cases ... ok +test restoration::tests::signed_subexp_with_ref_roundtrips ... ok +test restoration::tests::subexp_roundtrips_every_value ... ok +test restoration::tests::unsigned_subexp_with_ref_roundtrips ... ok +test restoration::tests::wiener_filter_roundtrips ... ok +test sequence::tests::sequence_header_obu_size_matches_payload ... ok +test sequence::tests::sequence_header_roundtrip ... ok +test encoder::tests::filter_stage_bytes_do_not_depend_on_the_thread_count ... ok +test stream::tests::a_10bit_128sb_film_frames_with_warp_cdef_and_interintra_decode_pixel_exact ... ok +test encoder::tests::quality_target_is_monotone_in_bytes_and_psnr ... ok +test stream::tests::a_10bit_film_frames_with_rect64_corner_tus_decode_pixel_exact ... ok +test stream::tests::a_10bit_film_frames_with_small_side_globalmv_and_rect_warp_reach_decode_pixel_exact ... ok +test encoder::tests::tile_bytes_do_not_depend_on_the_thread_count ... ok +test stream::tests::a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact ... ok +test stream::tests::a_128_superblock_stream_whose_skipped_blocks_are_var_tx_decodes_pixel_exact ... ok +test stream::tests::a_10bit_key_frame_with_skipped_8x8_intra_leaves_that_split_their_transform_decodes_luma_exact ... ok +test stream::tests::a_10bit_film_frames_with_frame_edge_mv_clamping_decode_pixel_exact ... ok +test stream::tests::a_10bit_film_hidden_arf_with_split_superblock_strips_decodes_pixel_exact ... ok +test stream::tests::a_block_shape_census_over_three_real_streams_leaves_the_rect_residual_refusal_unreachable ... ok +test stream::tests::a_frame_obu_that_parses_always_carries_at_least_one_tile ... ok +test stream::tests::a_frame_whose_segmentation_overrides_a_block_mode_is_refused_by_name ... ok +test stream::tests::a_directional_16x8_strip_reads_the_right_above_right_samples ... ok +test stream::tests::a_hand_built_golden_reference_decodes_pixel_exact_against_ffmpeg ... ok +test encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence ... ok +test stream::tests::a_32x32_frame_edge_rect_partition_with_a_flat_band_decodes_pixel_exact ... ok +test encoder::tests::bitrate_target_lands_within_10_percent_over_48_frames ... ok +test stream::tests::a_real_aomenc_10bit_film_grain_stream_decodes_pixel_exact ... ok +test stream::tests::a_frame_edge_straddling_band_decodes_pixel_exact ... ok +test stream::tests::a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag ... ok +test stream::tests::a_pinned_rect_stream_with_a_64x64_intra_block_in_an_inter_frame_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_class1_chroma_eob_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact ... ok +test stream::tests::a_real_affine_global_motion_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_compound_mv_stack_at_128_superblocks_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_non_dc_chroma_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_filter_intra_on_a_sub16_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_stream_with_a_32_level_ab_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_partial_bottom_stripe_restoration_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_superres_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_stream_with_aq_segmentation_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips ... ok +test stream::tests::a_real_aomenc_10bit_stream_with_interintra_wedge_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_128x128_superblock_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_altref_sequence_hidden_frames_decode_pixel_exact ... ok +test stream::tests::a_real_aomenc_band_stream_seed46_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_both_axes_cut_corner_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_filter_intra_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_both_axes_cut_corner_inter_frames_decode_pixel_exact ... ok +test stream::tests::a_real_aomenc_compound_mv_stack_across_two_tile_columns_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_compound_mv_stack_with_global_motion_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_compound_mv_stack_with_temporal_mvs_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_128x128_none_root_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_10bit_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_class1_chroma_eob_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_128x128_superblocks_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_directional_intra_block_with_angle_delta_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_golden_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_non_dc_chroma_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_split_transform_intra_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_whole_superblock_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_across_tile_columns_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact ... ignored, gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature +test stream::tests::a_real_aomenc_inter_sequence_with_an_intra_1to4_strip_decodes_pixel_exact_10bit ... ignored, gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a 32-level intra 1:4 strip in an inter frame -- class gate-blind-to-feature +test stream::tests::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_cdf_forwarding_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_deblocking_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_a_coded_rectangular_residual_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_an_angle_delta_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact_10bit ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_tx_select_decodes_pixel_exact_10bit ... ok +test stream::tests::a_real_aomenc_intra_stream_with_deblocking_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_intra_stream_with_tx_select_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_a_superblock_level_rect_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_forward_keyframes_and_temporal_mvs_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_key_and_inter_superres_sequence_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact has been running for over 60 seconds +test stream::tests::a_real_aomenc_inter_sequence_with_intra_16x4_strips_in_1to4_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_min8_stream_with_tx_class1_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_superblock_level_ab_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_key_and_inter_superres_sequence_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_palette_stream_decodes_pixel_exact_at_8_and_10_bit ... ok +test stream::tests::a_real_aomenc_multi_tile_inter_10bit_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_multi_tile_inter_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_multi_tile_intra_10bit_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_multi_tile_intra_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_multi_tile_palette_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_rect_strip_palette_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_rect_inter_block_predicts_chroma_with_the_narrow_kernel_pixel_exact ... ok +test stream::tests::a_real_aomenc_palette_stream_with_8x8_leaves_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_screen_inter_sequence_codes_palette_syntax_on_rect_intra_strips ... ok +test stream::tests::a_real_aomenc_screen_stream_with_palette_blocks_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips ... ok +test stream::tests::a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_sb128_intra_rect_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_sb128_stream_whose_skipped_cfl_and_1to4_chroma_pairs_decode_pixel_exact ... ok +test stream::tests::a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_whose_chroma_edge_filter_reads_a_sub16_neighbours_uv_mode_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_whose_frame_edge_partition_bit_is_horz_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_whose_square_block_reads_a_sub16_neighbours_mode_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_32_level_ab_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_32x32_frame_edge_rect_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_bwdref_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_diffwtd_compound_64x64_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_last2_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_last3_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_10bit_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_and_delta_q_decodes_pixel_exact ... ignored, gate recipe never fires the feature (40/40 streams pixel-exact); needs a recipe that produces a rect64 dequant call with CURRENT_Q_IDX != base_q_idx -- class gate-blind-to-feature +test stream::tests::a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_superblock_level_1to4_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_superblock_level_ab_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_cdef_and_sub16_inter_leaves_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_ab_partitions_below_16x16_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_ab_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_directional_chroma_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_film_grain_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_an_altref2_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_an_altref_reference_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_cdef_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_compound_references_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_sub8_rect_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_four_tile_columns_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_four_tile_rows_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_delta_q_and_delta_lf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_32_level_1to4_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_filter_intra_on_a_sub16_horz_vert_strip_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_non_uniform_tile_spacing_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_free_partitions_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_interintra_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_palette_uv_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_palette_y_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_mandelbrot_fires_the_vert_b_partition_arm ... ok +test stream::tests::a_real_aomenc_stream_with_masked_compound_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_obmc_8x8_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_obmc_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_skipped_rect_inter_strips_keeps_the_cdef_skip_band ... ok +test stream::tests::a_real_aomenc_stream_with_smooth_luma_neighbour_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_several_tile_group_obus_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_smooth_paeth_chroma_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_two_tile_columns_and_an_inter_frame_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_two_tile_columns_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_rect_palette_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_two_tile_columns_decodes_through_decode_stream ... ok +test stream::tests::a_real_aomenc_stream_with_two_tile_rows_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_two_tile_rows_decodes_through_decode_stream ... ok +test stream::tests::a_real_aomenc_stream_with_rect_screen_content_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_reference_select_reads_comp_mode_correctly ... ok +test stream::tests::a_real_aomenc_stream_with_restoration_reads_lr_symbols_correctly ... ok +test stream::tests::a_real_aomenc_stream_with_temporal_mvs_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_two_tile_inter_sequence_with_a_non_dc_chroma_8x8_intra_leaf_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_variance_aq_segmentation_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_stream_with_warped_motion_refuses_or_matches ... ok +test stream::tests::a_real_film_key_frame_with_a_skipped_cfl_block_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_superres_key_frame_sequence_decodes_pixel_exact ... ok +test stream::tests::a_real_aomenc_superres_stream_with_compound_obmc_and_interintra_decodes_pixel_exact ... ok +test stream::tests::a_real_compound_global_warp_10bit_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_libaom_cfl_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_libaom_gradients_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_libaom_gradients_stream_with_cdef_decodes_pixel_exact ... ok +test stream::tests::a_real_libaom_stream_with_adst_decodes_end_to_end ... ok +test stream::tests::a_real_aomenc_tiny_frame_size_sweep_decodes_pixel_exact ... ok +test stream::tests::a_real_stream_decodes_identically_with_one_and_four_threads ... ok +test stream::tests::a_real_compound_global_warp_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_force_integer_mv_warp_10bit_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_force_integer_mv_warp_stream_decodes_pixel_exact ... ok +test stream::tests::a_screen_stream_with_16x4_intra_strips_in_inter_frames_decodes_pixel_exact ... ok +test stream::tests::a_screen_stream_with_palette_8x8_leaves_in_inter_frames_decodes_pixel_exact ... ok +test stream::tests::a_real_obmc_stream_reads_a_recorded_switchable_filter_for_every_neighbour ... ok +test stream::tests::a_show_existing_frame_header_naming_an_empty_slot_is_refused_by_name ... ok +test stream::tests::a_segmentation_census_over_real_aq_streams_finds_no_mode_overriding_feature ... ok +test stream::tests::a_sub8_footprint_census_over_real_streams_leaves_the_intra_16x4_pairing_refusal_unreachable ... ok +test stream::tests::a_real_globalmv_8x8_leaf_stream_decodes_pixel_exact ... ok +test stream::tests::a_real_stream_filters_identically_with_one_and_four_filter_threads ... ok +test stream::tests::a_real_stream_reconstructs_identically_with_one_and_four_recon_threads ... ok +test stream::tests::a_superres_census_over_six_real_streams_records_which_scaled_refusals_fire ... ok +test stream::tests::a_twelve_bit_sequence_header_is_refused_by_name ... ok +test stream::tests::an_inter_frame_naming_an_unrefreshed_primary_ref_slot_is_refused_by_name ... ok +test stream::tests::an_inter_frame_opening_a_stream_is_refused_by_name ... ok +test stream::tests::an_inter_frame_shorter_than_its_reference_is_refused_by_name ... ok +test stream::tests::an_intra_coded_128_half_in_a_screen_content_inter_frame_decodes_pixel_exact ... ok +test stream::tests::an_intra_coded_128_half_inside_an_inter_frame_decodes_pixel_exact ... ok +test stream::tests::a_sweep_of_doubly_straddling_sizes_round_trips_through_ffmpeg ... ok +test stream::tests::a_real_warped_causal_8x8_leaf_stream_decodes_pixel_exact ... ok +test stream::tests::an_intrabc_block_under_tx_mode_select_decodes_pixel_exact ... ok +test stream::tests::a_sub8_leaf_census_over_intrabc_screen_streams_measures_the_sub8_refusal ... ok +test stream::tests::debug_part32_r2_sbpart_pin_mismatch_geometry ... ignored, debug harness, run manually with EC_AV1_GATE_DUMP_PIN +test stream::tests::a_superres_all_tools_sb128_stream_decodes_pixel_exact ... ok +test stream::tests::decode_stream_matches_the_tile_path_on_a_key_frame ... ok +test stream::tests::decode_stream_round_trips_a_gop ... ok +test stream::tests::decode_stream_agrees_with_ffmpeg_on_a_gop ... ok +test stream::tests::every_frame_size_a_header_can_code_has_a_mode_info_grid ... ok +test stream::tests::a_superres_key_frame_with_cdef_and_loop_restoration_decodes_pixel_exact ... ok +test stream::tests::no_per_frame_state_is_thread_local_any_more ... ok +test stream::tests::pinned_golden3_stream_decodes_pixel_exact ... ignored, reads a pinned fixture path outside the repo; run manually +test stream::tests::pinned_golden4_stream_decodes_pixel_exact ... ignored, reads a pinned fixture path outside the repo; run manually +test stream::tests::pinned_golden7_stream_decodes_pixel_exact ... ignored, reads a pinned fixture path outside the repo; run manually +test stream::tests::pinned_lr_sgr_stream_call_unique_dump ... ignored, reads a pinned fixture under the gitignored fixtures dir; run manually with EC_LR_CALL_DUMP=1 +test stream::tests::pinned_sbpart_stream_decodes_pixel_exact ... ignored, reads a pinned fixture path outside the repo; run manually +test stream::tests::pinned_warp_stream_decodes_pixel_exact ... ignored, reads pinned fixture paths under the gitignored fixtures dir; run manually +test stream::tests::probe_tiny_32x32_trace ... ignored, diagnostic, run manually with --nocapture +test stream::tests::probe_tiny_fixture_trace ... ignored, diagnostic, run manually with --nocapture and EC_TINY_FIXTURE_PATH set +test stream::tests::decode_stream_round_trips_an_odd_size_gop ... ok +test stream::tests::gradients_source_is_reproducible_per_seed ... ok +test stream::tests::real_aomenc_film_grain_streams_decode_pixel_exact ... ok +test stream::tests::sb128_r2_control_sb64 ... ignored, lane-sb128 r2 diagnostic: is the frame-6 mismatch sb128-specific? +test stream::tests::scratch_decode_pinned_stream_once ... ignored +test stream::tests::scratch_isolate_pinned_mismatch ... ignored +test stream::tests::streaming_decode_matches_the_collecting_one ... ok +test stream::tests::sweep_rectx_recipes ... ignored, lane-rectx r3 scratch sweep +test stream::tests::an_intrabc_vartx_census_measures_the_mixed_leaf_refusal ... ok +test stream::tests::the_reelb_head_key_frame_decodes_pixel_exact ... ok +test stream::tests::the_reelb_ss300_key_frame_skipped_cfl_decodes_pixel_exact ... ok +test stream::tests::an_sb128_screen_stream_with_intrabc_decodes_pixel_exact ... ok +test stream::tests::the_reelb_ss600_key_frame_skipped_split_tx_decodes_pixel_exact ... ok +test superres::tests::upscale_row_matches_libaom_in8_out12 ... ok +test superres::tests::upscale_row_matches_libaom_in8_out16 ... ok +test superres::tests::upscale_row_of_a_flat_input_is_flat ... ok +test superres::tests::upscale_row_with_real_margin_matches_libaom_in43_out64 ... ok +test tile::tests::a_block_gathers_the_cells_its_neighbours_cover ... ok +test tile::tests::a_coefficient_in_the_far_corner_reaches_the_last_end_of_block_group ... ok +test tile::tests::a_coefficient_off_the_origin_selects_its_own_basis_function ... ok +test stream::tests::an_intrabc_census_over_screen_key_frames_measures_the_tx_select_refusal ... ok +test tile::tests::a_dc_level_is_worth_half_as_much_each_time_the_transform_doubles ... ok +test tile::tests::a_frame_that_hangs_off_the_bottom_codes_every_block ... ok +test tile::tests::a_frame_that_is_not_a_whole_number_of_blocks_is_refused ... ok +test tile::tests::a_frame_that_is_not_a_whole_number_of_superblocks_codes_every_block ... ok +test tile::tests::a_level_grid_that_does_not_cover_the_frame_is_refused ... ok +test tile::tests::a_newmv_block_reads_back_the_exact_symbol_sequence_it_was_written_with ... ok +test tile::tests::a_quadrant_splits_into_four_sixteens ... ok +test tile::tests::a_quantized_picture_decodes_to_what_the_encoder_reconstructed ... ok +test tile::tests::a_single_ac_coefficient_varies_along_its_own_axis ... ok +test tile::tests::a_split_superblock_decodes_each_quadrant_on_its_own_level ... ok +test tile::tests::a_whole_superblock_at_the_frame_edge_is_refused ... ok +test tile::tests::a_whole_superblock_covers_all_four_of_its_quadrants ... ok +test tile::tests::an_all_skip_inter_superblock_is_small_and_reads_back ... ok +test tile::tests::an_intra_block_in_an_inter_frame_is_caught_reading_kf_y_mode ... ok +test tile::tests::an_intra_mode_outside_the_key_frame_set_is_refused ... ok +test tile::tests::chroma_dc_signs_read_their_neighbours ... ok +test tile::tests::coefficients_the_writer_cannot_code_are_refused ... ok +test tile::tests::dc_levels_the_base_syntax_cannot_carry_are_refused ... ok +test tile::tests::directional_modes_predict_from_the_neighbours_they_name ... ok +test tile::tests::each_chroma_plane_codes_its_own_basis_function ... ok +test tile::tests::each_superblock_decodes_to_the_grey_its_own_level_asks_for ... ok +test tile::tests::every_quadrant_carries_its_own_coefficients ... ok +test tile::tests::flat_key_frame_decodes_to_mid_grey ... ok +test tile::tests::a_dc_coefficient_moves_the_whole_block_off_mid_grey ... ok +test tile::tests::negating_the_levels_negates_the_residual ... ok +test tile::tests::partial_superblocks_are_refused ... ok +test tile::tests::the_default_scan_walks_every_position_outwards ... ok +test tile::tests::the_golomb_tail_reads_back_as_the_level_it_was_written_for ... ok +test tile::tests::the_inverse_transform_predicts_what_ffmpeg_decodes_for_a_16x16_block ... ok +test tile::tests::the_inverse_transform_predicts_what_ffmpeg_decodes_for_a_32x32_block ... ok +test tile::tests::the_inverse_transform_predicts_what_ffmpeg_decodes_for_a_64x64_block ... ok +test tile::tests::the_inverse_transform_reproduces_the_pinned_split_residuals ... ok +test tile::tests::the_inverse_transform_reproduces_the_pinned_whole_superblock_residuals ... ok +test tile::tests::the_price_grows_with_the_levels ... ok +test tile::tests::the_priced_coefficient_bits_match_the_bytes_written ... ok +test transform::tests::a_64x64_transform_keeps_what_fits_in_its_coded_quarter ... ok +test transform::tests::a_fine_quantizer_roundtrips_a_residual_almost_exactly ... ok +test transform::tests::a_flat_residual_is_a_dc_level_alone ... ok +test transform::tests::a_typed_forward_round_trips_like_the_dct_one ... ok +test transform::tests::a_wider_deadzone_codes_fewer_coefficients ... ok +test transform::tests::a_zero_vector_transforms_to_zero ... ok +test transform::tests::adst_dct_and_dct_adst_disagree_on_an_asymmetric_grid ... ok +test transform::tests::iadst16_matches_libaoms_own_output ... ok +test transform::tests::iadst4_an_all_zero_input_short_circuits_to_zero ... ok +test transform::tests::iadst4_matches_libaoms_own_output ... ok +test transform::tests::iadst8_is_not_symmetric_in_its_input_position ... ok +test transform::tests::iadst8_matches_libaoms_own_output ... ok +test transform::tests::iidentity_matches_libaoms_own_output_at_every_size ... ok +test transform::tests::negating_the_residual_negates_every_level ... ok +test transform::tests::rect_sizes_pinned_against_libaom ... ok +test transform::tests::scratch_probe_32x32_dequant ... ignored +test transform::tests::square_wrapper_matches_wh_core ... ok +test transform::tests::the_avx2_dct_matches_the_scalar_one_over_the_full_range ... ok +test transform::tests::the_eight_wide_dct_matches_the_scalar_one ... ok +test transform::tests::the_fixed_point_forward_matches_the_exact_matmul ... ok +test transform::tests::the_forward_network_has_one_uniform_gain ... ok +test transform::tests::the_inverse_network_is_an_orthonormal_dct_over_eight ... ok +test transform::tests::the_roundtrip_error_is_the_quantizer_and_only_the_quantizer ... ok +test transform::tests::the_typed_forward_transform_is_bit_identical_to_the_strided_form ... ok +test warp::gm_mv_tests::identity_is_always_zero ... ok +test warp::gm_mv_tests::rotzoom_projects_block_centre_hp ... ok +test warp::gm_mv_tests::rotzoom_projects_block_centre_no_hp ... ok +test warp::gm_mv_tests::translation_force_integer_mv_rounds_to_full_pel ... ok +test warp::gm_mv_tests::translation_shifts_params_by_13 ... ok +test wedge::tests::wedge_codebook_matches_libaom_dump ... ok +test tile::tests::levels_above_the_base_range_tail_carry_a_golomb_tail ... ok +test stream::tests::real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal ... ok +test stream::tests::real_superres_streams_with_sub8_leaf8_and_warp_decode_pixel_exact ... ok +test stream::tests::the_chroma_rect_gates_excluded_seed_46_decodes_pixel_exact ... ok +test stream::tests::the_worker_pool_stays_bounded_across_repeated_threaded_decodes ... ok + +test result: ok. 541 passed; 0 failed; 40 ignored; 0 measured; 0 filtered out; finished in 579.69s + +RC=0 diff --git a/tools/ec-bench/src/main.rs b/tools/ec-bench/src/main.rs index ca2dabce..6260b649 100644 --- a/tools/ec-bench/src/main.rs +++ b/tools/ec-bench/src/main.rs @@ -368,19 +368,13 @@ fn bench_av1_encode(rows: &mut Vec) { tile_cols_log2, tile_rows_log2, }; - // `EC_AV1_PYRAMID=[::]` benches the - // encoder's coding pyramid (hidden ALTREF + show_existing_frame) instead - // of the flat one-picture-one-packet stream, the same knob shape as - // `EC_H265_RDOQ_ESTIMATE`. Unset keeps the flat default. - let pyramid = std::env::var("EC_AV1_PYRAMID").ok().and_then(|spec| { - let mut f = spec.split(':'); - let d = Pyramid::default(); - Some(Pyramid { - mini_gop: f.next()?.parse().ok()?, - arf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.arf_q_offset), - leaf_q_offset: f.next().and_then(|v| v.parse().ok()).unwrap_or(d.leaf_q_offset), - }) - }); + // The encoder's coding pyramid (hidden ALTREF + show_existing_frame) is + // the default, as it is in `encode_sequence`; `EC_AV1_PYRAMID=0` benches + // the flat one-picture-one-packet stream instead, and + // `EC_AV1_PYRAMID=[::]` another + // shape of it. The `hidden` column below is how many frames of the row + // were coded ahead of their display position. + let pyramid = Pyramid::from_env(); let mut enc = match pyramid { None => Av1Encoder::new(cfg).expect("av1 encoder"), Some(p) => Av1Encoder::with_pyramid(cfg, p).expect("av1 encoder"), @@ -411,6 +405,14 @@ fn bench_av1_encode(rows: &mut Vec) { stream.extend_from_slice(&packet.data); } let wall = start.elapsed().as_secs_f64(); + // What the content gate left this clip coding under: a screen-content + // source asks for the pyramid and codes flat, and then `hidden` is 0 for + // a reason the row itself names. + let coded_under = match (pyramid, enc.pyramid()) { + (_, Some(p)) => format!("pyramid {}:{}:{}", p.mini_gop, p.arf_q_offset, p.leaf_q_offset), + (Some(_), None) => "flat (gated: screen content)".to_string(), + (None, None) => "flat".to_string(), + }; let media_s = n as f64 / 30.0; let fps = if wall > 0.0 { f64::from(n) / wall } else { 0.0 }; let bytes_per_frame = stream.len() as f64 / f64::from(n); @@ -418,7 +420,8 @@ fn bench_av1_encode(rows: &mut Vec) { component: "ec-av1", direction: "encode", content: format!( - "{w}x{h}, {n} frames, gop=10, {hidden} hidden, {fps:.1} fps, {bytes_per_frame:.0} B/frame" + "{w}x{h}, {n} frames, gop=10, {coded_under}, {hidden} hidden, {fps:.1} fps, \ + {bytes_per_frame:.0} B/frame" ), media: format!("{media_s:.1}s"), wall_ms: wall * 1000.0,