From 07b88ab6a23ada693108222164bb041f4e9499e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 3 Sep 2026 02:49:14 +0300 Subject: [PATCH] docs(av1): record the measured OBMC min-4 dead end at the chroma blend site libaom clamps the OBMC neighbour PREDICTION's plane dimension to a minimum of 4 rows/columns, but the blend length stays the plain half (overlap >> ss), so flooring the chroma blend at 4 is wrong: measured on a 10-bit 1920x792 cut it took 36 differing decode frames to 266 and the worst frame from 13 to 11007 bytes. Comment only, no behaviour change. --- crates/ec-av1/src/decode.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index fca72f51..b9df8a05 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -19559,6 +19559,13 @@ fn obmc_blend( let tmp_y = obmc_neighbour_pred(ny, px + ox, py, nb.mv, bw, bh, true, h_kind, v_kind, nb_scale); obmc_blend_v(pred_y, side, ox, 0, bw, bh, &tmp_y); if !skip_chroma_above { + // lane-t900 r13 (measured, NOT a defect): libaom's min-4 clamp + // (`dec_build_prediction_by_above_pred`) sizes only the OBMC + // PREDICTION buffer; the blend length is the plain half + // (`build_obmc_inter_pred_above`: `overlap >> ss_y`), so flooring + // this at 4 blends rows libaom never blends -- on a 10-bit + // 1920x792 cut that went 36 differing frames -> 266, worst + // 13 B -> 11007 B. let (cbw, cbh, cox) = (bw / 2, overlap_above / 2, ox / 2); let tmp_u = obmc_neighbour_pred(nu, cpx + cox, cpy, nb.mv, cbw, cbh, false, h_kind, v_kind, nb_scale); obmc_blend_v(pred_u, chroma_side, cox, 0, cbw, cbh, &tmp_u);