diff --git a/crates/ec-vp9/src/loopfilter.rs b/crates/ec-vp9/src/loopfilter.rs index f177a973..6b3bc619 100644 --- a/crates/ec-vp9/src/loopfilter.rs +++ b/crates/ec-vp9/src/loopfilter.rs @@ -436,11 +436,16 @@ impl LfGrids { if c % step != 0 { continue; } - let taps = match uv_tx { + // vp9_adjust_mask: 4-tap on a 64x64 left border is + // promoted to 8-tap (`left_uv[TX_4] & 0x1111` → TX_8). + let mut taps = match uv_tx { TX_16X16 | TX_32X32 if c * 4 >= 8 && c * 4 + 8 <= uv_w => 16, TX_16X16 | TX_32X32 | TX_8X8 => 8, _ => 4, }; + if taps == 4 && c % 8 == 0 { + taps = 8; + } let (bl, li, th) = limits(level, sharpness); let off = r * 4 * uv_stride + c * 4; if uv_w >= c * 4 + 4 { @@ -464,11 +469,16 @@ impl LfGrids { if r % step != 0 { continue; } - let taps = match uv_tx { + // above_border_uv 0x000f: 4-tap on a 64x64 top border + // is promoted to 8-tap. + let mut taps = match uv_tx { TX_16X16 | TX_32X32 if r * 4 >= 8 && r * 4 + 8 <= uv_h => 16, TX_16X16 | TX_32X32 | TX_8X8 => 8, _ => 4, }; + if taps == 4 && r % 8 == 0 { + taps = 8; + } let (bl, li, th) = limits(level, sharpness); let off = r * 4 * uv_stride + c * 4; if uv_h >= r * 4 + 4 { diff --git a/lanes/vp9kf.report.md b/lanes/vp9kf.report.md index ea995c1c..23f113a0 100644 --- a/lanes/vp9kf.report.md +++ b/lanes/vp9kf.report.md @@ -339,3 +339,19 @@ Next: chroma ss11 at U(31,11) — likely remaining 4-vs-8 dual threshold or TX_3 Flash 429 until 2026-09-18 19:27. Continue on main grok. +## HANDOFF #7 (2026-09-15) — chroma 64x64 border 4→8 + +`vp9_adjust_mask` promotes 4-tap UV on a 64x64 border to 8-tap +(`left_uv[TX_4] & 0x1111` → TX_8; `above_uv[TX_4] & 0x000f` → TX_8). +Also: TX_32 UV bits are OR'd into TX_16 before ss11 reads them — do not +skip TX_32; do not treat skip as the 16-pixel miss. + +U 16→7, V 20→11. Y still 0. Isolated `vpx_lpf_horizontal_4` matches our +filter4; remaining cluster is U(31..32,11..12) where 8-tap inner p0/q0 +disagree after V+H (x31 is the last pixel of the previous 8-pack H). + +Next: port `vp9_setup_mask` UV rule for <16x16 (only the first 8x8 of +each 16x16 calls `build_masks`; the other three are `build_y_mask`). +Do not touch luma. + +