From b94f6a0153a0f24a45afca8f841bbb86946fb00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 08:17:21 +0300 Subject: [PATCH] fix(sbrect10): the r2 fixture swap landed in the sibling gate r2's half-random lavfi source was meant for the no-CFL uv_mode gate (whose 8-bit arm decodes zero intra blocks above 32x32 on the flat "200" source); it was written into the superblock-rect gate instead, where it cost the 10-bit residual arm the coded 64-axis transform unit lane-r14 r2 measured on the flat source. Sources swapped back to the gate each was measured on. --- crates/ec-av1/src/stream.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index bdd1513d..5a17ec35 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -6586,20 +6586,10 @@ mod tests { let vertical_split = attempt % 2 == 1; let cq = [58, 52, 45, 61][(attempt / 2 % 4) as usize]; let sp = 8 + (attempt / 8) * 4; - // Half ramp, half deterministic pseudo-noise: the flat "200" - // half of r1's source made aomenc code the right-hand - // superblocks skip, so at 8 bit no >32 intra block ever - // appeared (probed cq 45/52/58/61/63 = 0 hits). The textured - // half forces intra above 32x32 in an inter frame at BOTH - // depths, so both arms carry the shape. let geq = if vertical_split { - format!( - "if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))" - ) + format!("if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), 200)") } else { - format!( - "if(lt(X,128), 40+mod(floor((Y+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))" - ) + format!("if(lt(X,64), 40+mod(floor((Y+N*{sp})/32)*90,200), 200)") }; let duration = frame_count as f64 / 25.0; let source = format!( @@ -6786,10 +6776,20 @@ mod tests { let vertical_split = attempt % 2 == 1; let cq = [58, 52, 45, 61][(attempt / 2 % 4) as usize]; let sp = 8 + (attempt / 8) * 4; + // Half ramp, half deterministic pseudo-noise: the flat "200" + // half of r1's source made aomenc code the right-hand + // superblocks skip, so at 8 bit no >32 intra block ever + // appeared (probed cq 45/52/58/61/63 = 0 hits). The textured + // half forces intra above 32x32 in an inter frame at BOTH + // depths, so both arms carry the shape. let geq = if vertical_split { - format!("if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), 200)") + format!( + "if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))" + ) } else { - format!("if(lt(X,64), 40+mod(floor((Y+N*{sp})/32)*90,200), 200)") + format!( + "if(lt(X,128), 40+mod(floor((Y+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))" + ) }; let duration = frame_count as f64 / 25.0; let source = format!(