forge
Explore
Log in

Don't you dare go Hollow

The r2 fixture swap landed in the sibling gate

Browse files at this commit

b94f6a0153a0f24a45afca8f841bbb86946fb00cAhmet Kaan GümüşParent: 9f7b5d2
  • fix
    • the r2 fixture swap landed in the sibling gate
Show full message
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.rsmodified+14 -14
@@ -6586,20 +6586,10 @@ mod tests {
65866586 let vertical_split = attempt % 2 == 1;
65876587 let cq = [58, 52, 45, 61][(attempt / 2 % 4) as usize];
65886588 let sp = 8 + (attempt / 8) * 4;
6589- // Half ramp, half deterministic pseudo-noise: the flat "200"
6590- // half of r1's source made aomenc code the right-hand
6591- // superblocks skip, so at 8 bit no >32 intra block ever
6592- // appeared (probed cq 45/52/58/61/63 = 0 hits). The textured
6593- // half forces intra above 32x32 in an inter frame at BOTH
6594- // depths, so both arms carry the shape.
65956589 let geq = if vertical_split {
6596- format!(
6597- "if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))"
6598- )
6590+ format!("if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), 200)")
65996591 } else {
6600- format!(
6601- "if(lt(X,128), 40+mod(floor((Y+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))"
6602- )
6592+ format!("if(lt(X,64), 40+mod(floor((Y+N*{sp})/32)*90,200), 200)")
66036593 };
66046594 let duration = frame_count as f64 / 25.0;
66056595 let source = format!(
@@ -6786,10 +6776,20 @@ mod tests {
67866776 let vertical_split = attempt % 2 == 1;
67876777 let cq = [58, 52, 45, 61][(attempt / 2 % 4) as usize];
67886778 let sp = 8 + (attempt / 8) * 4;
6779+ // Half ramp, half deterministic pseudo-noise: the flat "200"
6780+ // half of r1's source made aomenc code the right-hand
6781+ // superblocks skip, so at 8 bit no >32 intra block ever
6782+ // appeared (probed cq 45/52/58/61/63 = 0 hits). The textured
6783+ // half forces intra above 32x32 in an inter frame at BOTH
6784+ // depths, so both arms carry the shape.
67896785 let geq = if vertical_split {
6790- format!("if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), 200)")
6786+ format!(
6787+ "if(lt(Y,64), 40+mod(floor((X+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))"
6788+ )
67916789 } else {
6792- format!("if(lt(X,64), 40+mod(floor((Y+N*{sp})/32)*90,200), 200)")
6790+ format!(
6791+ "if(lt(X,128), 40+mod(floor((Y+N*{sp})/32)*90,200), mod((X*7+Y*13+N*97)*31,256))"
6792+ )
67936793 };
67946794 let duration = frame_count as f64 / 25.0;
67956795 let source = format!(