Merge branch 'lane-av1pyrgate' (4df5ddd8): the frame pyramid is content-gated (screen streams stay flat) and re-swept on real film
Browse files at this commit9 changed files +479 -16
- crates/ec-av1/src/encode.rs +43 -14
- crates/ec-av1/src/encoder.rs +113 -2
- lanes/pyrgate/pg-2_-16_8.log +42 -0
- lanes/pyrgate/pg-4_-12_6.log +42 -0
- lanes/pyrgate/pg-4_-16_8.log +42 -0
- lanes/pyrgate/pg-4_-24_12.log +42 -0
- lanes/pyrgate/pg-4_lam035.log +42 -0
- lanes/pyrgate/pg-640.log +71 -0
- lanes/pyrgate/pg-8_-16_8.log +42 -0
crates/ec-av1/src/encode.rsmodified+43 -14
| @@ -1080,6 +1080,21 @@ fn screen_content(y: &[u8], width: usize, true_width: usize, true_height: usize) | |||
| 1080 | on | 1080 | on |
| 1081 | } | 1081 | } |
| 1082 | 1082 | ||
| 1083 | +/// Whether this SOURCE picture reads as screen content, for a caller that has | ||
| 1084 | +/// to decide something BEFORE the frame is coded: [`crate::encoder::Av1Encoder`] | ||
| 1085 | +/// gates its coding pyramid on this (a desktop capture keeps the flat | ||
| 1086 | +/// one-in-one-out structure the BD gate measured it on, camera material takes | ||
| 1087 | +/// the mini-GOP). The key frame runs the same detector again when it builds | ||
| 1088 | +/// its header -- that is the run the [`SCREEN_FRAMES`] histogram is meant to | ||
| 1089 | +/// count, so this probe undoes its own tick and leaves the gate prints | ||
| 1090 | +/// reading one detection per coded frame. | ||
| 1091 | +pub(crate) fn picture_is_screen(picture: &Picture) -> bool { | ||
| 1092 | + let y: Vec<u8> = picture.y.iter().map(|&v| v as u8).collect(); | ||
| 1093 | + let on = screen_content(&y, picture.width, picture.width, picture.height); | ||
| 1094 | + SCREEN_FRAMES[usize::from(on)].fetch_sub(1, std::sync::atomic::Ordering::Relaxed); | ||
| 1095 | + on | ||
| 1096 | +} | ||
| 1097 | + | ||
| 1083 | /// The sequence and frame headers a picture of this size is coded under: one | 1098 | /// The sequence and frame headers a picture of this size is coded under: one |
| 1084 | /// tile, one transform size per block, no in-loop filter parameters yet | 1099 | /// tile, one transform size per block, no in-loop filter parameters yet |
| 1085 | /// (`crate::encode::pick_and_apply_filters` fills the deblocking levels and | 1100 | /// (`crate::encode::pick_and_apply_filters` fills the deblocking levels and |
| @@ -12320,12 +12335,12 @@ mod tests { | |||
| 12320 | /// keeps the flat one-key-then-all-inter ladder the baseline was measured | 12335 | /// keeps the flat one-key-then-all-inter ladder the baseline was measured |
| 12321 | /// on, so the gate's default recipe is unchanged. | 12336 | /// on, so the gate's default recipe is unchanged. |
| 12322 | /// | 12337 | /// |
| 12323 | - /// RE-MEASURED on lane-av1rejudge at [`LAMBDA_SCALE`] 0.05 with warp on, | 12338 | + /// RE-SWEPT on lane-av1pyrgate under the content gate (see |
| 12324 | - /// native, against the flat ladder's +16.7/-0.5, +47.0/+19.1, | 12339 | + /// [`crate::encoder::Pyramid`]'s own table): with the screen capture |
| 12325 | - /// +51.3/-14.3: `2:-16:8` is +23.8/+5.8, +46.0/+18.9, +58.6/-10.2 and | 12340 | + /// coding flat by construction, `4:-16:8` takes film A +62.8/+32.5 -> |
| 12326 | - /// `4:-16:8` is +21.1/+3.4, +47.2/+19.2, +55.2/-11.7 -- whole points | 12341 | + /// +54.1/+24.2 and film B +86.3/+50.5 -> +82.6/+47.4, and the screen row |
| 12327 | - /// worse on the 1080p film and on screen, so the flat ladder stays the | 12342 | + /// is unchanged to the byte. The gate ladder still defaults to flat -- |
| 12328 | - /// default. Only the 2160p film likes a pyramid. | 12343 | + /// the sequence path this arm is pinned against codes no pyramid. |
| 12329 | fn pyramid_from_env() -> Option<crate::encoder::Pyramid> { | 12344 | fn pyramid_from_env() -> Option<crate::encoder::Pyramid> { |
| 12330 | let spec = std::env::var("EC_AV1_PYRAMID").ok()?; | 12345 | let spec = std::env::var("EC_AV1_PYRAMID").ok()?; |
| 12331 | let mut f = spec.split(':'); | 12346 | let mut f = spec.split(':'); |
| @@ -12345,15 +12360,18 @@ mod tests { | |||
| 12345 | /// own quantizer offset; without one it is the flat ladder, which | 12360 | /// own quantizer offset; without one it is the flat ladder, which |
| 12346 | /// `encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence` | 12361 | /// `encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence` |
| 12347 | /// pins byte-identical to [`our_ladder`]'s, so this arm must print the | 12362 | /// pins byte-identical to [`our_ladder`]'s, so this arm must print the |
| 12348 | - /// same BD numbers. Returns the ladder, the wall, and — per pyramid level | 12363 | + /// same BD numbers. Returns the ladder, the wall, per pyramid level over |
| 12349 | - /// over the whole ladder — how many frames and how many bytes it spent. | 12364 | + /// the whole ladder how many frames and how many bytes it spent, and the |
| 12365 | + /// pyramid the streams were EFFECTIVELY coded under — the content gate in | ||
| 12366 | + /// `Av1Encoder::encode_frames` drops a screen-content clip back to the | ||
| 12367 | + /// flat path, so a requested pyramid can come back `None` here. | ||
| 12350 | fn our_ladder_facade( | 12368 | fn our_ladder_facade( |
| 12351 | name: &str, | 12369 | name: &str, |
| 12352 | source: &[Picture], | 12370 | source: &[Picture], |
| 12353 | width: usize, | 12371 | width: usize, |
| 12354 | height: usize, | 12372 | height: usize, |
| 12355 | pyramid: Option<crate::encoder::Pyramid>, | 12373 | pyramid: Option<crate::encoder::Pyramid>, |
| 12356 | - ) -> (Vec<(f64, f64)>, f64, [usize; 4], [usize; 4]) { | 12374 | + ) -> (Vec<(f64, f64)>, f64, [usize; 4], [usize; 4], Option<crate::encoder::Pyramid>) { |
| 12357 | use crate::encoder::{Av1Encoder, Colour, EncoderConfig, Level}; | 12375 | use crate::encoder::{Av1Encoder, Colour, EncoderConfig, Level}; |
| 12358 | let slot = |l: Level| match l { | 12376 | let slot = |l: Level| match l { |
| 12359 | Level::Key => 0, | 12377 | Level::Key => 0, |
| @@ -12363,6 +12381,7 @@ mod tests { | |||
| 12363 | }; | 12381 | }; |
| 12364 | let mut ladder = Vec::new(); | 12382 | let mut ladder = Vec::new(); |
| 12365 | let mut wall = 0.0; | 12383 | let mut wall = 0.0; |
| 12384 | + let mut effective = None; | ||
| 12366 | let (mut counts, mut bytes) = ([0usize; 4], [0usize; 4]); | 12385 | let (mut counts, mut bytes) = ([0usize; 4], [0usize; 4]); |
| 12367 | for &q in &[150u8, 120, 90, 60] { | 12386 | for &q in &[150u8, 120, 90, 60] { |
| 12368 | let config = EncoderConfig { | 12387 | let config = EncoderConfig { |
| @@ -12385,6 +12404,7 @@ mod tests { | |||
| 12385 | } | 12404 | } |
| 12386 | packets.extend(enc.flush().unwrap()); | 12405 | packets.extend(enc.flush().unwrap()); |
| 12387 | wall += start.elapsed().as_secs_f64(); | 12406 | wall += start.elapsed().as_secs_f64(); |
| 12407 | + effective = enc.pyramid(); | ||
| 12388 | let mut stream = Vec::new(); | 12408 | let mut stream = Vec::new(); |
| 12389 | for p in &packets { | 12409 | for p in &packets { |
| 12390 | counts[slot(p.level)] += 1; | 12410 | counts[slot(p.level)] += 1; |
| @@ -12415,7 +12435,7 @@ mod tests { | |||
| 12415 | ladder.push((mean, (stream.len() as f64).log10())); | 12435 | ladder.push((mean, (stream.len() as f64).log10())); |
| 12416 | } | 12436 | } |
| 12417 | ladder.sort_by(|a, b| a.0.total_cmp(&b.0)); | 12437 | ladder.sort_by(|a, b| a.0.total_cmp(&b.0)); |
| 12418 | - (ladder, wall, counts, bytes) | 12438 | + (ladder, wall, counts, bytes, effective) |
| 12419 | } | 12439 | } |
| 12420 | 12440 | ||
| 12421 | /// Byte-exactness gate for encoder work that is meant to change only | 12441 | /// Byte-exactness gate for encoder work that is meant to change only |
| @@ -12640,6 +12660,13 @@ mod tests { | |||
| 12640 | /// | bars 2160p | +81.6% | +41.5% | 4.8s:1.0s:2.2s | | 12660 | /// | bars 2160p | +81.6% | +41.5% | 4.8s:1.0s:2.2s | |
| 12641 | /// | screen capture | +49.1% | -4.3% | 5.5s:1.0s:2.1s | | 12661 | /// | screen capture | +49.1% | -4.3% | 5.5s:1.0s:2.1s | |
| 12642 | /// | 12662 | /// |
| 12663 | + /// The same run under `EC_AV1_PYRAMID=4:-16:8 EC_AV1_GATE_FACADE=1` | ||
| 12664 | + /// (lane-av1pyrgate), which is what the content gate does at this scale: | ||
| 12665 | + /// the bars are non-screen so they take the pyramid (+84.7 / +39.9 and | ||
| 12666 | + /// +124.4 / +75.2 -- this downscaled recipe hates it, as it hates every | ||
| 12667 | + /// knob the real film rows keep), and the capture's row comes back | ||
| 12668 | + /// +49.1 / -4.3, the flat row to the byte. That equality IS the gate. | ||
| 12669 | + /// | ||
| 12643 | /// Loop restoration is NOT in yet: it is the one filter whose parameters | 12670 | /// Loop restoration is NOT in yet: it is the one filter whose parameters |
| 12644 | /// are per restoration UNIT inside the tile payload, so it needs both | 12671 | /// are per restoration UNIT inside the tile payload, so it needs both |
| 12645 | /// tile writers to code `lr` syntax and an encoder-visible post-CDEF | 12672 | /// tile writers to code `lr` syntax and an encoder-visible post-CDEF |
| @@ -12759,10 +12786,11 @@ mod tests { | |||
| 12759 | let (ours, ours_wall) = match (facade, pyramid_env) { | 12786 | let (ours, ours_wall) = match (facade, pyramid_env) { |
| 12760 | (false, None) => our_ladder(name, &source, width, height, fctx), | 12787 | (false, None) => our_ladder(name, &source, width, height, fctx), |
| 12761 | (_, pyramid) => { | 12788 | (_, pyramid) => { |
| 12762 | - let (ladder, wall, counts, bytes) = | 12789 | + let (ladder, wall, counts, bytes, effective) = |
| 12763 | our_ladder_facade(name, &source, width, height, pyramid); | 12790 | our_ladder_facade(name, &source, width, height, pyramid); |
| 12764 | eprintln!( | 12791 | eprintln!( |
| 12765 | - "{name}: facade, pyramid {pyramid:?} -- frames key {} arf {} leaf {} \ | 12792 | + "{name}: facade, pyramid requested {pyramid:?} effective \ |
| 12793 | + {effective:?} -- frames key {} arf {} leaf {} \ | ||
| 12766 | show_existing {}; bytes key {} arf {} leaf {} show_existing {}", | 12794 | show_existing {}; bytes key {} arf {} leaf {} show_existing {}", |
| 12767 | counts[0], counts[1], counts[2], counts[3], | 12795 | counts[0], counts[1], counts[2], counts[3], |
| 12768 | bytes[0], bytes[1], bytes[2], bytes[3], | 12796 | bytes[0], bytes[1], bytes[2], bytes[3], |
| @@ -13268,10 +13296,11 @@ mod tests { | |||
| 13268 | let (ours, ours_wall) = match pyramid_from_env() { | 13296 | let (ours, ours_wall) = match pyramid_from_env() { |
| 13269 | None => our_ladder(name, &source, cw, ch, fctx), | 13297 | None => our_ladder(name, &source, cw, ch, fctx), |
| 13270 | Some(pyramid) => { | 13298 | Some(pyramid) => { |
| 13271 | - let (ladder, wall, counts, bytes) = | 13299 | + let (ladder, wall, counts, bytes, effective) = |
| 13272 | our_ladder_facade(name, &source, cw, ch, Some(pyramid)); | 13300 | our_ladder_facade(name, &source, cw, ch, Some(pyramid)); |
| 13273 | eprintln!( | 13301 | eprintln!( |
| 13274 | - "{name}: pyramid {pyramid:?} -- frames key {} arf {} leaf {} \ | 13302 | + "{name}: pyramid requested {pyramid:?} effective {effective:?} \ |
| 13303 | + -- frames key {} arf {} leaf {} \ | ||
| 13275 | show_existing {}; bytes key {} arf {} leaf {} show_existing {}", | 13304 | show_existing {}; bytes key {} arf {} leaf {} show_existing {}", |
| 13276 | counts[0], counts[1], counts[2], counts[3], | 13305 | counts[0], counts[1], counts[2], counts[3], |
| 13277 | bytes[0], bytes[1], bytes[2], bytes[3], | 13306 | bytes[0], bytes[1], bytes[2], bytes[3], |
crates/ec-av1/src/encoder.rsmodified+113 -2
| @@ -450,10 +450,44 @@ impl Default for Pyramid { | |||
| 450 | /// helps for the same reason (2:-16:8 is the only arm that beats flat on | 450 | /// helps for the same reason (2:-16:8 is the only arm that beats flat on |
| 451 | /// any clip, and it beats it on the clip with the fastest motion). | 451 | /// any clip, and it beats it on the clip with the fastest motion). |
| 452 | /// | 452 | /// |
| 453 | - /// quantizer offsets behave. Nothing selects the pyramid but an explicit | 453 | + /// RE-SWEPT on lane-av1pyrgate, once the content gate below existed and |
| 454 | + /// on the current defaults (`LAMBDA_SCALE` 0.0275, the 32x32 tx-depth | ||
| 455 | + /// search and compound var-tx on): the earlier verdicts were taken with | ||
| 456 | + /// the screen capture inside the arm, and it is the one clip a pyramid | ||
| 457 | + /// never helps. With the gate, the screen row is the flat row by | ||
| 458 | + /// construction, so the sweep is decided on the two real films | ||
| 459 | + /// (`encode::tests::bd_rate_screen_native`, BD-rate vs libaom / vs | ||
| 460 | + /// rav1e; bars are fixtures, recorded only): | ||
| 461 | + /// | ||
| 462 | + /// | arm | film A | film B | screen | bars 1080p | bars 2160p | | ||
| 463 | + /// |---|---|---|---|---|---| | ||
| 464 | + /// | flat (no pyramid) | +62.8 / +32.5 | +86.3 / +50.5 | +50.1 / -15.4 | +16.4 / -1.1 | +48.2 / +20.4 | | ||
| 465 | + /// | 2:-16:8 | +60.3 / +29.1 | +83.6 / +50.2 | +50.1 / -15.4 | +24.0 / +5.9 | +47.2 / +20.2 | | ||
| 466 | + /// | **4:-16:8** | **+54.1 / +24.2** | **+82.6 / +47.4** | +50.1 / -15.4 | +21.5 / +3.7 | +48.3 / +20.4 | | ||
| 467 | + /// | 8:-16:8 | +55.9 / +25.8 | +83.6 / +47.3 | +50.1 / -15.4 | +19.8 / +2.0 | +48.7 / +20.4 | | ||
| 468 | + /// | 4:-24:12 | +51.5 / +22.3 | +84.9 / +50.3 | +50.1 / -15.4 | +21.9 / +4.0 | +48.4 / +20.7 | | ||
| 469 | + /// | 4:-12:6 | +57.6 / +27.1 | +84.8 / +49.3 | +50.1 / -15.4 | +21.7 / +3.9 | +48.8 / +20.9 | | ||
| 470 | + /// | ||
| 471 | + /// `4:-16:8` is the only arm that improves BOTH films on BOTH columns by | ||
| 472 | + /// several points (-8.7 / -8.3 on film A, -3.7 / -3.1 on film B) and it | ||
| 473 | + /// stays these defaults. `4:-24:12` buys another 2.6 on film A and gives | ||
| 474 | + /// 2.3 back on film B (where it barely beats flat vs rav1e, -0.2), which | ||
| 475 | + /// is the same "leaves cannot cash in the ARF's quality" shape as before, | ||
| 476 | + /// now content-dependent rather than uniform. The screen column is | ||
| 477 | + /// IDENTICAL in every arm -- that is the content gate, measured, not | ||
| 478 | + /// asserted. `EC_AV1_LAMBDA=0.035` on top of `4:-16:8` was re-judged once | ||
| 479 | + /// (the pyramid changes the reference structure): +54.5 / +24.5 and | ||
| 480 | + /// +85.2 / +49.4, worse on both films, so 0.0275 stands. | ||
| 481 | + /// | ||
| 482 | + /// Nothing selects the pyramid but an explicit | ||
| 454 | /// [`Av1Encoder::with_pyramid`] call (or `EC_AV1_PYRAMID` on the gate and | 483 | /// [`Av1Encoder::with_pyramid`] call (or `EC_AV1_PYRAMID` on the gate and |
| 455 | /// on `ec-bench`); the default one-in-one-out path is byte-identical to | 484 | /// on `ec-bench`); the default one-in-one-out path is byte-identical to |
| 456 | - /// before it existed. | 485 | + /// before it existed. Making it the DEFAULT needs the same reordering in |
| 486 | + /// [`crate::encode::encode_sequence`] first -- the facade is pinned byte | ||
| 487 | + /// for byte to that path | ||
| 488 | + /// (`encoder::tests::the_facade_codes_the_same_bytes_as_encode_sequence`), | ||
| 489 | + /// so a pyramid the facade takes by default and the sequence path cannot | ||
| 490 | + /// would break that pin rather than ship a gain. | ||
| 457 | fn default() -> Self { | 491 | fn default() -> Self { |
| 458 | Self { | 492 | Self { |
| 459 | mini_gop: 4, | 493 | mini_gop: 4, |
| @@ -669,6 +703,16 @@ impl Av1Encoder { | |||
| 669 | Ok(encoder) | 703 | Ok(encoder) |
| 670 | } | 704 | } |
| 671 | 705 | ||
| 706 | + /// The [`Pyramid`] this stream is actually coding under: what | ||
| 707 | + /// [`Av1Encoder::with_pyramid`] asked for, or `None` once the content gate | ||
| 708 | + /// in [`Av1Encoder::encode_frames`] has dropped a screen-content stream | ||
| 709 | + /// back to the flat path. Meaningful after the first picture has been | ||
| 710 | + /// handed in. | ||
| 711 | + #[must_use] | ||
| 712 | + pub fn pyramid(&self) -> Option<Pyramid> { | ||
| 713 | + self.pyramid | ||
| 714 | + } | ||
| 715 | + | ||
| 672 | /// The coded (padded-to-64) frame size every picture in this stream is | 716 | /// The coded (padded-to-64) frame size every picture in this stream is |
| 673 | /// coded at — what a decoder allocates and what `ffprobe` reports. | 717 | /// coded at — what a decoder allocates and what `ffprobe` reports. |
| 674 | #[must_use] | 718 | #[must_use] |
| @@ -741,6 +785,26 @@ impl Av1Encoder { | |||
| 741 | ), | 785 | ), |
| 742 | )); | 786 | )); |
| 743 | } | 787 | } |
| 788 | + // THE CONTENT GATE (lane-av1pyrgate): the pyramid is for camera | ||
| 789 | + // material. A desktop capture is the one content class every pyramid | ||
| 790 | + // sweep measured WORSE under it, and it is exactly the class the | ||
| 791 | + // screen detector separates (`encode::screen_content`: 0/48 frames on | ||
| 792 | + // both real films, 48/48 on the OBS capture), so a stream whose first | ||
| 793 | + // picture reads as screen content drops back to the flat path and | ||
| 794 | + // codes byte for byte what it coded before the pyramid existed. | ||
| 795 | + // | ||
| 796 | + // Decided ONCE, on the first picture, not per mini-GOP: the flat path | ||
| 797 | + // keeps its references in `reference`/`golden`/`prev2` and the pyramid | ||
| 798 | + // path in `dpb`, so a switch after the first frame would read slots | ||
| 799 | + // the other path never filled. Per-GOP re-decision needs the two | ||
| 800 | + // reference sets kept in step first; the gate's own recipe codes one | ||
| 801 | + // GOP per stream, where the two are the same decision. | ||
| 802 | + if self.pyramid.is_some() | ||
| 803 | + && self.next_index == 0 | ||
| 804 | + && crate::encode::picture_is_screen(picture) | ||
| 805 | + { | ||
| 806 | + self.pyramid = None; | ||
| 807 | + } | ||
| 744 | let Some(pyramid) = self.pyramid else { | 808 | let Some(pyramid) = self.pyramid else { |
| 745 | // The delay queue: the pictures behind this one are the | 809 | // The delay queue: the pictures behind this one are the |
| 746 | // lookahead window the one at its head is coded with, which is | 810 | // lookahead window the one at its head is coded with, which is |
| @@ -1250,6 +1314,48 @@ mod tests { | |||
| 1250 | } | 1314 | } |
| 1251 | } | 1315 | } |
| 1252 | 1316 | ||
| 1317 | + /// THE CONTENT GATE (lane-av1pyrgate): the coding pyramid is asked for by | ||
| 1318 | + /// the caller but applied only to camera material. Over screen content | ||
| 1319 | + /// the encoder must drop back to the flat path and code byte for byte | ||
| 1320 | + /// what a flat encoder codes — that is what keeps the BD gate's screen | ||
| 1321 | + /// row identical to the flat baseline — and over non-screen content the | ||
| 1322 | + /// same request must still reorder (class `gate-blind-to-feature`: a gate | ||
| 1323 | + /// that only checked the screen half would pass with the pyramid deleted). | ||
| 1324 | + #[test] | ||
| 1325 | + fn the_content_gate_keeps_screen_streams_flat() { | ||
| 1326 | + let frames = 8usize; | ||
| 1327 | + let pictures: Vec<Picture> = (0..frames).map(|t| test_card(64, 64, t)).collect(); | ||
| 1328 | + let config = EncoderConfig { | ||
| 1329 | + width: 64, | ||
| 1330 | + height: 64, | ||
| 1331 | + base_q_idx: 120, | ||
| 1332 | + gop: frames, | ||
| 1333 | + colour: Colour::Unspecified, | ||
| 1334 | + tile_cols_log2: 0, | ||
| 1335 | + tile_rows_log2: 0, | ||
| 1336 | + }; | ||
| 1337 | + crate::encode::force_screen(Some(true)); | ||
| 1338 | + let mut flat = Av1Encoder::new(config).unwrap(); | ||
| 1339 | + let flat_packets = encode_all(&mut flat, &pictures); | ||
| 1340 | + let mut gated = Av1Encoder::with_pyramid(config, Pyramid::default()).unwrap(); | ||
| 1341 | + let gated_packets = encode_all(&mut gated, &pictures); | ||
| 1342 | + assert_eq!(gated.pyramid(), None, "the gate left a screen stream on the pyramid"); | ||
| 1343 | + assert_eq!( | ||
| 1344 | + concat(&gated_packets), | ||
| 1345 | + concat(&flat_packets), | ||
| 1346 | + "a screen stream's bytes are not the flat path's" | ||
| 1347 | + ); | ||
| 1348 | + crate::encode::force_screen(Some(false)); | ||
| 1349 | + let mut kept = Av1Encoder::with_pyramid(config, Pyramid::default()).unwrap(); | ||
| 1350 | + let kept_packets = encode_all(&mut kept, &pictures); | ||
| 1351 | + assert_eq!(kept.pyramid(), Some(Pyramid::default()), "the gate ate a film stream"); | ||
| 1352 | + assert!( | ||
| 1353 | + kept_packets.iter().any(|p| p.level == Level::Arf), | ||
| 1354 | + "a non-screen stream coded no hidden frame" | ||
| 1355 | + ); | ||
| 1356 | + crate::encode::force_screen(None); | ||
| 1357 | + } | ||
| 1358 | + | ||
| 1253 | /// A key frame every `gop` pictures, inter otherwise — checked against | 1359 | /// A key frame every `gop` pictures, inter otherwise — checked against |
| 1254 | /// what the facade itself reports, and (below) against what `ffprobe` | 1360 | /// what the facade itself reports, and (below) against what `ffprobe` |
| 1255 | /// reads back out of the coded bytes. | 1361 | /// reads back out of the coded bytes. |
| @@ -1752,6 +1858,11 @@ mod tests { | |||
| 1752 | mini_gop: 4, | 1858 | mini_gop: 4, |
| 1753 | ..Pyramid::default() | 1859 | ..Pyramid::default() |
| 1754 | }; | 1860 | }; |
| 1861 | + // The content gate ([`Av1Encoder::encode_frames`]) would drop a | ||
| 1862 | + // screen-content stream to the flat path, and a synthetic test card | ||
| 1863 | + // is exactly the few-colour picture the detector fires on: this gate | ||
| 1864 | + // is about the reordering, so it asks for camera content explicitly. | ||
| 1865 | + crate::encode::force_screen(Some(false)); | ||
| 1755 | let mut enc = Av1Encoder::with_pyramid(config, pyramid).unwrap(); | 1866 | let mut enc = Av1Encoder::with_pyramid(config, pyramid).unwrap(); |
| 1756 | let sources: Vec<Picture> = (0..9).map(|t| test_card(width, height, t * 3)).collect(); | 1867 | let sources: Vec<Picture> = (0..9).map(|t| test_card(width, height, t * 3)).collect(); |
| 1757 | let _ = crate::encode::take_ref_frame_hits(); | 1868 | let _ = crate::encode::take_ref_frame_hits(); |
lanes/pyrgate/pg-2_-16_8.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 20 leaf 24 show_existing 20; bytes key 200169 arf 975736 leaf 763963 show_existing 100 | ||
| 8 | +bars 1080p: pricer armings default=16 real=179 | ||
| 9 | +bars 1080p: motion_mode 32x32 SIMPLE=66652 OBMC=0 WARP=88 | 16x16 SIMPLE=2645 OBMC=0 WARP=71 | 8x8 SIMPLE=17978 OBMC=0 WARP=595 (0.0% OBMC / 0.9% WARP of 88029 eligible) | ||
| 10 | +bars 1080p: inter var-tx depths of 11222 blocks -- leaf single 0=917 1=407 (30.7% split) | leaf compound 0=1277 1=1046 (45.0% split) | 32x32 single 0=899 1=2066 (69.7% split) | 32x32 compound 0=2330 1=2280 (49.5% split) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| bars 1080p 1920x1024 | 44.48 dB/288742 B, 48.11 dB/415724 B, 51.46 dB/545827 B, 54.45 dB/689675 B | +24.0% | +5.9% | 38.1s:9.6s:20.6s | | ||
| 14 | +bars 2160p: pyramid requested Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 20 leaf 24 show_existing 20; bytes key 179809 arf 1014817 leaf 964684 show_existing 100 | ||
| 15 | +bars 2160p: pricer armings default=15 real=152 | ||
| 16 | +bars 2160p: motion_mode 32x32 SIMPLE=39681 OBMC=0 WARP=5 | 16x16 SIMPLE=263 OBMC=0 WARP=15 | 8x8 SIMPLE=7812 OBMC=0 WARP=687 (0.0% OBMC / 1.5% WARP of 48463 eligible) | ||
| 17 | +bars 2160p: inter var-tx depths of 12352 blocks -- leaf single 0=379 1=108 (22.2% split) | leaf compound 0=4609 1=591 (11.4% split) | 32x32 single 0=728 1=1700 (70.0% split) | 32x32 compound 0=144 1=4093 (96.6% split) | ||
| 18 | +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) | ||
| 19 | +| bars 2160p 1920x1024 | 44.18 dB/337181 B, 48.16 dB/478510 B, 51.74 dB/610085 B, 54.95 dB/733634 B | +47.2% | +20.2% | 33.2s:6.0s:16.8s | | ||
| 20 | +film A (1080p source): pyramid requested Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 20 leaf 24 show_existing 20; bytes key 168690 arf 535965 leaf 205934 show_existing 100 | ||
| 21 | +film A (1080p source): pricer armings default=20 real=218 | ||
| 22 | +film A (1080p source): motion_mode 32x32 SIMPLE=66404 OBMC=0 WARP=3621 | 16x16 SIMPLE=34877 OBMC=0 WARP=4239 | 8x8 SIMPLE=18714 OBMC=0 WARP=2870 (0.0% OBMC / 8.2% WARP of 130725 eligible) | ||
| 23 | +film A (1080p source): inter var-tx depths of 118438 blocks -- leaf single 0=24402 1=7560 (23.7% split) | leaf compound 0=38416 1=11242 (22.6% split) | 32x32 single 0=10497 1=7533 (41.8% split) | 32x32 compound 0=11258 1=7530 (40.1% split) | ||
| 24 | +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) | ||
| 25 | +| film A (1080p source) 1920x768 | 43.62 dB/78214 B, 45.49 dB/132617 B, 46.90 dB/238161 B, 48.13 dB/461697 B | +60.3% | +29.1% | 64.5s:10.1s:14.4s | | ||
| 26 | +film B (2160p HDR source): pyramid requested Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 20 leaf 24 show_existing 20; bytes key 89394 arf 479378 leaf 152652 show_existing 100 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=203 | ||
| 28 | +film B (2160p HDR source): motion_mode 32x32 SIMPLE=99131 OBMC=0 WARP=2118 | 16x16 SIMPLE=28242 OBMC=0 WARP=1728 | 8x8 SIMPLE=4735 OBMC=0 WARP=2403 (0.0% OBMC / 4.5% WARP of 138357 eligible) | ||
| 29 | +film B (2160p HDR source): inter var-tx depths of 104176 blocks -- leaf single 0=24514 1=6827 (21.8% split) | leaf compound 0=28068 1=6548 (18.9% split) | 32x32 single 0=12967 1=10124 (43.8% split) | 32x32 compound 0=9146 1=5982 (39.5% split) | ||
| 30 | +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) | ||
| 31 | +| film B (2160p HDR source) 1920x1024 | 46.71 dB/42099 B, 48.07 dB/85504 B, 49.21 dB/194220 B, 50.24 dB/399701 B | +83.6% | +50.2% | 68.8s:19.6s:15.4s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 2, arf_q_offset: -16, leaf_q_offset: 8 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 209091 arf 0 leaf 64266 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 | ||
| 34 | +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) | ||
| 35 | +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) | ||
| 36 | +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) | ||
| 37 | +| 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% | 27.9s:8.8s:11.4s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 381.66s | ||
| 41 | + | ||
| 42 | +RC=0 | ||
lanes/pyrgate/pg-4_-12_6.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 200169 arf 572633 leaf 1049451 show_existing 60 | ||
| 8 | +bars 1080p: pricer armings default=16 real=175 | ||
| 9 | +bars 1080p: motion_mode 32x32 SIMPLE=74753 OBMC=0 WARP=146 | 16x16 SIMPLE=2763 OBMC=0 WARP=214 | 8x8 SIMPLE=17205 OBMC=0 WARP=1025 (0.0% OBMC / 1.4% WARP of 96106 eligible) | ||
| 10 | +bars 1080p: inter var-tx depths of 12511 blocks -- leaf single 0=1206 1=707 (37.0% split) | leaf compound 0=1464 1=1234 (45.7% split) | 32x32 single 0=1050 1=2040 (66.0% split) | 32x32 compound 0=2383 1=2427 (50.5% split) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| bars 1080p 1920x1024 | 43.97 dB/262069 B, 47.63 dB/390072 B, 51.18 dB/522561 B, 53.95 dB/647611 B | +21.7% | +3.9% | 35.8s:6.8s:16.6s | | ||
| 14 | +bars 2160p: pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 179809 arf 595704 leaf 1316757 show_existing 60 | ||
| 15 | +bars 2160p: pricer armings default=15 real=154 | ||
| 16 | +bars 2160p: motion_mode 32x32 SIMPLE=57023 OBMC=0 WARP=62 | 16x16 SIMPLE=266 OBMC=0 WARP=8 | 8x8 SIMPLE=5879 OBMC=0 WARP=585 (0.0% OBMC / 1.0% WARP of 63823 eligible) | ||
| 17 | +bars 2160p: inter var-tx depths of 12728 blocks -- leaf single 0=394 1=76 (16.2% split) | leaf compound 0=5103 1=672 (11.6% split) | 32x32 single 0=520 1=1641 (75.9% split) | 32x32 compound 0=164 1=4158 (96.2% split) | ||
| 18 | +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) | ||
| 19 | +| bars 2160p 1920x1024 | 43.65 dB/316604 B, 47.60 dB/461101 B, 51.46 dB/599860 B, 54.40 dB/714765 B | +48.8% | +20.9% | 32.8s:6.0s:16.1s | | ||
| 20 | +film A (1080p source): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 168690 arf 318508 leaf 315189 show_existing 60 | ||
| 21 | +film A (1080p source): pricer armings default=20 real=220 | ||
| 22 | +film A (1080p source): motion_mode 32x32 SIMPLE=64242 OBMC=0 WARP=2235 | 16x16 SIMPLE=32664 OBMC=0 WARP=2571 | 8x8 SIMPLE=9027 OBMC=0 WARP=1665 (0.0% OBMC / 5.8% WARP of 112404 eligible) | ||
| 23 | +film A (1080p source): inter var-tx depths of 121259 blocks -- leaf single 0=20289 1=4887 (19.4% split) | leaf compound 0=44374 1=12951 (22.6% split) | 32x32 single 0=9818 1=6375 (39.4% split) | 32x32 compound 0=13719 1=8846 (39.2% split) | ||
| 24 | +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) | ||
| 25 | +| film A (1080p source) 1920x768 | 43.30 dB/71631 B, 45.27 dB/120676 B, 46.80 dB/221863 B, 47.92 dB/388277 B | +57.6% | +27.1% | 60.8s:9.7s:14.7s | | ||
| 26 | +film B (2160p HDR source): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 89394 arf 263470 leaf 263207 show_existing 60 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=194 | ||
| 28 | +film B (2160p HDR source): motion_mode 32x32 SIMPLE=90109 OBMC=0 WARP=1093 | 16x16 SIMPLE=26430 OBMC=0 WARP=1064 | 8x8 SIMPLE=3548 OBMC=0 WARP=585 (0.0% OBMC / 2.2% WARP of 122829 eligible) | ||
| 29 | +film B (2160p HDR source): inter var-tx depths of 106730 blocks -- leaf single 0=19855 1=5171 (20.7% split) | leaf compound 0=32954 1=8184 (19.9% split) | 32x32 single 0=12520 1=10288 (45.1% split) | 32x32 compound 0=11072 1=6686 (37.7% split) | ||
| 30 | +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) | ||
| 31 | +| film B (2160p HDR source) 1920x1024 | 46.41 dB/37073 B, 47.88 dB/73839 B, 49.08 dB/172937 B, 50.02 dB/332282 B | +84.8% | +49.3% | 65.2s:19.0s:15.0s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -12, leaf_q_offset: 6 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 209091 arf 0 leaf 64266 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 | ||
| 34 | +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) | ||
| 35 | +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) | ||
| 36 | +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) | ||
| 37 | +| 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% | 27.8s:8.6s:11.7s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 361.65s | ||
| 41 | + | ||
| 42 | +RC=0 | ||
lanes/pyrgate/pg-4_-16_8.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 200169 arf 593322 leaf 1024405 show_existing 60 | ||
| 8 | +bars 1080p: pricer armings default=16 real=177 | ||
| 9 | +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) | ||
| 10 | +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) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| 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% | 40.3s:8.4s:21.0s | | ||
| 14 | +bars 2160p: pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 179809 arf 615578 leaf 1289835 show_existing 60 | ||
| 15 | +bars 2160p: pricer armings default=15 real=149 | ||
| 16 | +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) | ||
| 17 | +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) | ||
| 18 | +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) | ||
| 19 | +| 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% | 33.8s:6.1s:16.9s | | ||
| 20 | +film A (1080p source): pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 168690 arf 354613 leaf 286902 show_existing 60 | ||
| 21 | +film A (1080p source): pricer armings default=20 real=217 | ||
| 22 | +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) | ||
| 23 | +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) | ||
| 24 | +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) | ||
| 25 | +| 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% | 64.5s:10.1s:15.2s | | ||
| 26 | +film B (2160p HDR source): pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 89394 arf 294371 leaf 239289 show_existing 60 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=194 | ||
| 28 | +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) | ||
| 29 | +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) | ||
| 30 | +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) | ||
| 31 | +| 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% | 67.5s:19.6s:15.3s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 209091 arf 0 leaf 64266 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 | ||
| 34 | +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) | ||
| 35 | +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) | ||
| 36 | +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) | ||
| 37 | +| 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% | 27.4s:8.7s:11.4s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 382.49s | ||
| 41 | + | ||
| 42 | +RC=0 | ||
lanes/pyrgate/pg-4_-24_12.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 200169 arf 642309 leaf 976365 show_existing 60 | ||
| 8 | +bars 1080p: pricer armings default=16 real=167 | ||
| 9 | +bars 1080p: motion_mode 32x32 SIMPLE=65478 OBMC=0 WARP=104 | 16x16 SIMPLE=2491 OBMC=0 WARP=139 | 8x8 SIMPLE=15678 OBMC=0 WARP=667 (0.0% OBMC / 1.1% WARP of 84557 eligible) | ||
| 10 | +bars 1080p: inter var-tx depths of 12382 blocks -- leaf single 0=1193 1=685 (36.5% split) | leaf compound 0=1477 1=1155 (43.9% split) | 32x32 single 0=992 1=2107 (68.0% split) | 32x32 compound 0=2394 1=2379 (49.8% split) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| bars 1080p 1920x1024 | 43.89 dB/261502 B, 47.62 dB/387359 B, 50.93 dB/515754 B, 54.05 dB/654288 B | +21.9% | +4.0% | 35.3s:6.9s:16.6s | | ||
| 14 | +bars 2160p: pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 179809 arf 657706 leaf 1238902 show_existing 60 | ||
| 15 | +bars 2160p: pricer armings default=15 real=151 | ||
| 16 | +bars 2160p: motion_mode 32x32 SIMPLE=45492 OBMC=0 WARP=4 | 16x16 SIMPLE=247 OBMC=0 WARP=18 | 8x8 SIMPLE=6311 OBMC=0 WARP=176 (0.0% OBMC / 0.4% WARP of 52248 eligible) | ||
| 17 | +bars 2160p: inter var-tx depths of 12886 blocks -- leaf single 0=428 1=57 (11.8% split) | leaf compound 0=5058 1=729 (12.6% split) | 32x32 single 0=582 1=1696 (74.5% split) | 32x32 compound 0=141 1=4195 (96.7% split) | ||
| 18 | +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) | ||
| 19 | +| bars 2160p 1920x1024 | 43.49 dB/310692 B, 47.59 dB/457108 B, 51.19 dB/591535 B, 54.48 dB/717142 B | +48.4% | +20.7% | 32.6s:5.9s:16.1s | | ||
| 20 | +film A (1080p source): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 168690 arf 447472 leaf 243285 show_existing 60 | ||
| 21 | +film A (1080p source): pricer armings default=20 real=217 | ||
| 22 | +film A (1080p source): motion_mode 32x32 SIMPLE=63145 OBMC=0 WARP=2123 | 16x16 SIMPLE=29702 OBMC=0 WARP=2949 | 8x8 SIMPLE=10145 OBMC=0 WARP=2408 (0.0% OBMC / 6.8% WARP of 110472 eligible) | ||
| 23 | +film A (1080p source): inter var-tx depths of 103125 blocks -- leaf single 0=18761 1=4604 (19.7% split) | leaf compound 0=36848 1=9297 (20.1% split) | 32x32 single 0=8640 1=5768 (40.0% split) | 32x32 compound 0=11506 1=7701 (40.1% split) | ||
| 24 | +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) | ||
| 25 | +| film A (1080p source) 1920x768 | 43.74 dB/77005 B, 45.61 dB/132538 B, 46.90 dB/219269 B, 48.10 dB/430695 B | +51.5% | +22.3% | 57.3s:9.7s:13.8s | | ||
| 26 | +film B (2160p HDR source): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 } effective Some(Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 89394 arf 366793 leaf 201993 show_existing 60 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=194 | ||
| 28 | +film B (2160p HDR source): motion_mode 32x32 SIMPLE=89247 OBMC=0 WARP=1101 | 16x16 SIMPLE=21852 OBMC=0 WARP=913 | 8x8 SIMPLE=3394 OBMC=0 WARP=1543 (0.0% OBMC / 3.0% WARP of 118050 eligible) | ||
| 29 | +film B (2160p HDR source): inter var-tx depths of 92163 blocks -- leaf single 0=17641 1=4611 (20.7% split) | leaf compound 0=28982 1=6577 (18.5% split) | 32x32 single 0=10508 1=8241 (44.0% split) | 32x32 compound 0=9468 1=6135 (39.3% split) | ||
| 30 | +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) | ||
| 31 | +| film B (2160p HDR source) 1920x1024 | 46.65 dB/40908 B, 48.03 dB/85330 B, 49.07 dB/169695 B, 50.10 dB/362307 B | +84.9% | +50.3% | 62.6s:19.0s:14.9s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -24, leaf_q_offset: 12 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 209091 arf 0 leaf 64266 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 | ||
| 34 | +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) | ||
| 35 | +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) | ||
| 36 | +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) | ||
| 37 | +| 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% | 27.5s:8.7s:11.4s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 353.60s | ||
| 41 | + | ||
| 42 | +RC=0 | ||
lanes/pyrgate/pg-4_lam035.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 197842 arf 587362 leaf 1012032 show_existing 60 | ||
| 8 | +bars 1080p: pricer armings default=14 real=170 | ||
| 9 | +bars 1080p: motion_mode 32x32 SIMPLE=74471 OBMC=0 WARP=109 | 16x16 SIMPLE=2682 OBMC=0 WARP=106 | 8x8 SIMPLE=15478 OBMC=0 WARP=1361 (0.0% OBMC / 1.7% WARP of 94207 eligible) | ||
| 10 | +bars 1080p: inter var-tx depths of 13016 blocks -- leaf single 0=1378 1=645 (31.9% split) | leaf compound 0=1638 1=1242 (43.1% split) | 32x32 single 0=969 1=2063 (68.0% split) | 32x32 compound 0=2629 1=2452 (48.3% split) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| bars 1080p 1920x1024 | 43.88 dB/258246 B, 47.57 dB/383014 B, 51.02 dB/514330 B, 53.91 dB/641706 B | +20.9% | +3.1% | 35.5s:6.8s:16.6s | | ||
| 14 | +bars 2160p: pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 178179 arf 607908 leaf 1272620 show_existing 60 | ||
| 15 | +bars 2160p: pricer armings default=15 real=148 | ||
| 16 | +bars 2160p: motion_mode 32x32 SIMPLE=45925 OBMC=0 WARP=6 | 16x16 SIMPLE=302 OBMC=0 WARP=15 | 8x8 SIMPLE=4949 OBMC=0 WARP=451 (0.0% OBMC / 0.9% WARP of 51648 eligible) | ||
| 17 | +bars 2160p: inter var-tx depths of 13181 blocks -- leaf single 0=356 1=80 (18.3% split) | leaf compound 0=5340 1=678 (11.3% split) | 32x32 single 0=573 1=1629 (74.0% split) | 32x32 compound 0=49 1=4476 (98.9% split) | ||
| 18 | +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) | ||
| 19 | +| bars 2160p 1920x1024 | 43.52 dB/308381 B, 47.56 dB/452953 B, 51.28 dB/590264 B, 54.31 dB/707169 B | +47.5% | +19.6% | 32.3s:5.9s:16.1s | | ||
| 20 | +film A (1080p source): pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 166807 arf 345451 leaf 278619 show_existing 60 | ||
| 21 | +film A (1080p source): pricer armings default=19 real=213 | ||
| 22 | +film A (1080p source): motion_mode 32x32 SIMPLE=63001 OBMC=0 WARP=1925 | 16x16 SIMPLE=25395 OBMC=0 WARP=2195 | 8x8 SIMPLE=6870 OBMC=0 WARP=1557 (0.0% OBMC / 5.6% WARP of 100943 eligible) | ||
| 23 | +film A (1080p source): inter var-tx depths of 118400 blocks -- leaf single 0=21420 1=4905 (18.6% split) | leaf compound 0=42316 1=11276 (21.0% split) | 32x32 single 0=9809 1=6552 (40.0% split) | 32x32 compound 0=13329 1=8793 (39.7% split) | ||
| 24 | +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) | ||
| 25 | +| film A (1080p source) 1920x768 | 43.38 dB/71298 B, 45.30 dB/119823 B, 46.76 dB/213539 B, 47.93 dB/386277 B | +54.5% | +24.5% | 58.5s:9.8s:14.0s | | ||
| 26 | +film B (2160p HDR source): pyramid requested 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 87562 arf 285421 leaf 229877 show_existing 60 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=187 | ||
| 28 | +film B (2160p HDR source): motion_mode 32x32 SIMPLE=86632 OBMC=0 WARP=1003 | 16x16 SIMPLE=18773 OBMC=0 WARP=790 | 8x8 SIMPLE=1768 OBMC=0 WARP=677 (0.0% OBMC / 2.3% WARP of 109643 eligible) | ||
| 29 | +film B (2160p HDR source): inter var-tx depths of 105784 blocks -- leaf single 0=20397 1=5176 (20.2% split) | leaf compound 0=32010 1=7560 (19.1% split) | 32x32 single 0=13063 1=9941 (43.2% split) | 32x32 compound 0=10854 1=6783 (38.5% split) | ||
| 30 | +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) | ||
| 31 | +| film B (2160p HDR source) 1920x1024 | 46.40 dB/37114 B, 47.84 dB/72657 B, 49.01 dB/163253 B, 50.00 dB/329896 B | +85.2% | +49.4% | 62.6s:19.0s:15.0s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 202236 arf 0 leaf 63641 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=158 real=0 | ||
| 34 | +screen capture (2026-07-25 02-09-04.mkv): motion_mode 32x32 SIMPLE=76719 OBMC=0 WARP=1967 | 16x16 SIMPLE=3357 OBMC=0 WARP=602 | 8x8 SIMPLE=714 OBMC=0 WARP=692 (0.0% OBMC / 3.9% WARP of 84051 eligible) | ||
| 35 | +screen capture (2026-07-25 02-09-04.mkv): inter var-tx depths of 21915 blocks -- leaf single 0=2697 1=2362 (46.7% split) | leaf compound 0=2888 1=2010 (41.0% split) | 32x32 single 0=2793 1=5275 (65.4% split) | 32x32 compound 0=1459 1=2431 (62.5% split) | ||
| 36 | +screen capture (2026-07-25 02-09-04.mkv): screen frames on=48 off=0 (100.0% on); palette blocks luma 8332 chroma 940; intrabc blocks 0 (searched 0 / valid 0 / won 0) | ||
| 37 | +| screen capture (2026-07-25 02-09-04.mkv) 1920x1024 | 45.54 dB/43527 B, 48.53 dB/56195 B, 51.01 dB/72661 B, 53.31 dB/93494 B | +49.6% | -15.3% | 27.9s:8.7s:11.5s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 355.52s | ||
| 41 | + | ||
| 42 | +RC=0 | ||
lanes/pyrgate/pg-640.logadded+71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +12 frames of each clip at 640x384, gop=12, 1 tile, 1 thread | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: facade, 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 28766 arf 73330 leaf 68831 show_existing 60 | ||
| 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 | ||
| 9 | +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 | ||
| 10 | +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 | ||
| 11 | +bars 1080p: compound by size 8x8 6726 16x16 3143 32x32 3136 | ||
| 12 | +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% | ||
| 13 | +bars 1080p: references LAST 6503 GOLDEN 5825 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 1048) | ||
| 14 | +bars 1080p: inter 32x32 split into 16s 1818 of 10560 blocks (17.2%); 16x16 leaves split into 8s 2302 of 8908 (25.8%) | ||
| 15 | +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 | ||
| 16 | +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%) | ||
| 17 | +bars 1080p: lr units none=2861 wiener=19 (0.7% restored) | ||
| 18 | +bars 1080p: pricer armings default=18 real=180 | ||
| 19 | +bars 1080p: screen frames on=0 off=4; palette blocks 0 sizes | ||
| 20 | +bars 1080p: chroma palette blocks 0 sizes | ||
| 21 | +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%) | ||
| 22 | +bars 1080p: intra tx depths 0=11051 (31.3%) 1=21035 (59.6%) 2=3234 (9.2%) | ||
| 23 | +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) | ||
| 24 | +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) | ||
| 25 | +| 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 | | ||
| 26 | +| 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 | | | | ||
| 27 | +bars 2160p: facade, 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 }) -- frames key 4 arf 12 leaf 32 show_existing 12; bytes key 24107 arf 51168 leaf 32123 show_existing 60 | ||
| 28 | +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 | ||
| 29 | +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 | ||
| 30 | +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 | ||
| 31 | +bars 2160p: compound by size 8x8 2804 16x16 2183 32x32 3281 | ||
| 32 | +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% | ||
| 33 | +bars 2160p: references LAST 6308 GOLDEN 6089 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 1136) | ||
| 34 | +bars 2160p: inter 32x32 split into 16s 1393 of 10560 blocks (13.2%); 16x16 leaves split into 8s 1547 of 7268 (21.3%) | ||
| 35 | +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 | ||
| 36 | +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%) | ||
| 37 | +bars 2160p: lr units none=2849 wiener=31 (1.1% restored) | ||
| 38 | +bars 2160p: pricer armings default=18 real=181 | ||
| 39 | +bars 2160p: screen frames on=0 off=4; palette blocks 0 sizes | ||
| 40 | +bars 2160p: chroma palette blocks 0 sizes | ||
| 41 | +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%) | ||
| 42 | +bars 2160p: intra tx depths 0=12624 (43.3%) 1=14486 (49.7%) 2=2046 (7.0%) | ||
| 43 | +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) | ||
| 44 | +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) | ||
| 45 | +| 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.2s | | ||
| 46 | +| 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 | | | | ||
| 47 | +screen capture (2026-07-25 02-09-04.mkv): facade, pyramid requested Some(Pyramid { mini_gop: 4, arf_q_offset: -16, leaf_q_offset: 8 }) effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 56621 arf 0 leaf 17143 show_existing 0 | ||
| 48 | +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 | ||
| 49 | +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 | ||
| 50 | +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 | ||
| 51 | +screen capture (2026-07-25 02-09-04.mkv): compound by size 8x8 284 16x16 1039 32x32 4423 | ||
| 52 | +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% | ||
| 53 | +screen capture (2026-07-25 02-09-04.mkv): references LAST 5134 GOLDEN 6517 (LAST2 0 LAST3 0 BWD 0 ALT2 0 ALT 611) | ||
| 54 | +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%) | ||
| 55 | +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 | ||
| 56 | +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%) | ||
| 57 | +screen capture (2026-07-25 02-09-04.mkv): lr units none=2878 wiener=2 (0.1% restored) | ||
| 58 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=170 real=0 | ||
| 59 | +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 | ||
| 60 | +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 | ||
| 61 | +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%) | ||
| 62 | +screen capture (2026-07-25 02-09-04.mkv): intra tx depths 0=6541 (18.3%) 1=21129 (59.2%) 2=8026 (22.5%) | ||
| 63 | +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) | ||
| 64 | +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) | ||
| 65 | +| 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% | 5.5s:1.0s:2.1s | | ||
| 66 | +| 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 | | | | ||
| 67 | +test encode::tests::bd_rate_vs_libaom_and_rav1e ... ok | ||
| 68 | + | ||
| 69 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 27.82s | ||
| 70 | + | ||
| 71 | +RC=0 | ||
lanes/pyrgate/pg-8_-16_8.logadded+42 -0
| @@ -0,0 +1,42 @@ | |||
| 1 | + | ||
| 2 | +running 1 test | ||
| 3 | + | ||
| 4 | +native crop, 12 frames, gop=12; tiles (0, 0), tile threads 1, intrabc false, palette maxcolors 128 | ||
| 5 | +| clip | ours PSNR/bytes per point | BD-rate vs libaom | BD-rate vs rav1e | wall ours:libaom:rav1e (noisy) | | ||
| 6 | +|---|---|---|---|---| | ||
| 7 | +bars 1080p: pyramid requested Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 8 leaf 36 show_existing 8; bytes key 200169 arf 398817 leaf 1156895 show_existing 40 | ||
| 8 | +bars 1080p: pricer armings default=16 real=176 | ||
| 9 | +bars 1080p: motion_mode 32x32 SIMPLE=80028 OBMC=0 WARP=157 | 16x16 SIMPLE=3481 OBMC=0 WARP=219 | 8x8 SIMPLE=19797 OBMC=0 WARP=645 (0.0% OBMC / 1.0% WARP of 104327 eligible) | ||
| 10 | +bars 1080p: inter var-tx depths of 12962 blocks -- leaf single 0=1637 1=911 (35.8% split) | leaf compound 0=1345 1=1055 (44.0% split) | 32x32 single 0=969 1=2142 (68.9% split) | 32x32 compound 0=2423 1=2480 (50.6% split) | ||
| 11 | +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) | ||
| 12 | +test encode::tests::bd_rate_screen_native has been running for over 60 seconds | ||
| 13 | +| bars 1080p 1920x1024 | 43.69 dB/250253 B, 47.42 dB/371453 B, 50.91 dB/504216 B, 53.72 dB/629999 B | +19.8% | +2.0% | 41.8s:8.1s:21.4s | | ||
| 14 | +bars 2160p: pyramid requested Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 8 leaf 36 show_existing 8; bytes key 179809 arf 411908 leaf 1450828 show_existing 40 | ||
| 15 | +bars 2160p: pricer armings default=15 real=148 | ||
| 16 | +bars 2160p: motion_mode 32x32 SIMPLE=50360 OBMC=0 WARP=6 | 16x16 SIMPLE=235 OBMC=0 WARP=12 | 8x8 SIMPLE=5151 OBMC=0 WARP=260 (0.0% OBMC / 0.5% WARP of 56024 eligible) | ||
| 17 | +bars 2160p: inter var-tx depths of 13493 blocks -- leaf single 0=419 1=101 (19.4% split) | leaf compound 0=5632 1=742 (11.6% split) | 32x32 single 0=433 1=1686 (79.6% split) | 32x32 compound 0=123 1=4357 (97.3% split) | ||
| 18 | +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) | ||
| 19 | +| bars 2160p 1920x1024 | 43.32 dB/303368 B, 47.40 dB/449020 B, 51.16 dB/588043 B, 54.13 dB/702154 B | +48.7% | +20.4% | 34.2s:6.0s:16.9s | | ||
| 20 | +film A (1080p source): pyramid requested Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 8 leaf 36 show_existing 8; bytes key 168690 arf 253049 leaf 350299 show_existing 40 | ||
| 21 | +film A (1080p source): pricer armings default=20 real=215 | ||
| 22 | +film A (1080p source): motion_mode 32x32 SIMPLE=66648 OBMC=0 WARP=2239 | 16x16 SIMPLE=32378 OBMC=0 WARP=2350 | 8x8 SIMPLE=8448 OBMC=0 WARP=1830 (0.0% OBMC / 5.6% WARP of 113893 eligible) | ||
| 23 | +film A (1080p source): inter var-tx depths of 115617 blocks -- leaf single 0=20197 1=4839 (19.3% split) | leaf compound 0=41412 1=11432 (21.6% split) | 32x32 single 0=10111 1=6950 (40.7% split) | 32x32 compound 0=12729 1=7947 (38.4% split) | ||
| 24 | +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) | ||
| 25 | +| film A (1080p source) 1920x768 | 43.26 dB/69882 B, 45.21 dB/117822 B, 46.74 dB/211566 B, 47.87 dB/372808 B | +55.9% | +25.8% | 65.3s:10.0s:15.9s | | ||
| 26 | +film B (2160p HDR source): pyramid requested Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 } effective Some(Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 }) -- frames key 4 arf 8 leaf 36 show_existing 8; bytes key 89394 arf 194222 leaf 297821 show_existing 40 | ||
| 27 | +film B (2160p HDR source): pricer armings default=17 real=196 | ||
| 28 | +film B (2160p HDR source): motion_mode 32x32 SIMPLE=101671 OBMC=0 WARP=1673 | 16x16 SIMPLE=26928 OBMC=0 WARP=1163 | 8x8 SIMPLE=3806 OBMC=0 WARP=908 (0.0% OBMC / 2.7% WARP of 136149 eligible) | ||
| 29 | +film B (2160p HDR source): inter var-tx depths of 104114 blocks -- leaf single 0=21287 1=5967 (21.9% split) | leaf compound 0=30154 1=7111 (19.1% split) | 32x32 single 0=13564 1=10365 (43.3% split) | 32x32 compound 0=10085 1=5581 (35.6% split) | ||
| 30 | +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) | ||
| 31 | +| film B (2160p HDR source) 1920x1024 | 46.31 dB/35138 B, 47.79 dB/69006 B, 48.99 dB/159430 B, 49.95 dB/317903 B | +83.6% | +47.3% | 68.6s:19.7s:15.2s | | ||
| 32 | +screen capture (2026-07-25 02-09-04.mkv): pyramid requested Pyramid { mini_gop: 8, arf_q_offset: -16, leaf_q_offset: 8 } effective None -- frames key 4 arf 0 leaf 44 show_existing 0; bytes key 209091 arf 0 leaf 64266 show_existing 0 | ||
| 33 | +screen capture (2026-07-25 02-09-04.mkv): pricer armings default=163 real=0 | ||
| 34 | +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) | ||
| 35 | +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) | ||
| 36 | +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) | ||
| 37 | +| 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% | 27.0s:8.7s:11.4s | | ||
| 38 | +test encode::tests::bd_rate_screen_native ... ok | ||
| 39 | + | ||
| 40 | +test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 580 filtered out; finished in 386.38s | ||
| 41 | + | ||
| 42 | +RC=0 | ||