forge
Explore
Log in

Don't you dare go Hollow

Record the measured OBMC min-4 dead end at the chroma blend site

Browse files at this commit

07b88ab6a23ada693108222164bb041f4e9499e0Ahmet Kaan GümüşParent: 86dc1a6
  • docs
    • record the measured OBMC min-4 dead end at the chroma blend site
Show full message
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.rsmodified+7 -0
@@ -19559,6 +19559,13 @@ fn obmc_blend(
1955919559 let tmp_y = obmc_neighbour_pred(ny, px + ox, py, nb.mv, bw, bh, true, h_kind, v_kind, nb_scale);
1956019560 obmc_blend_v(pred_y, side, ox, 0, bw, bh, &tmp_y);
1956119561 if !skip_chroma_above {
19562+ // lane-t900 r13 (measured, NOT a defect): libaom's min-4 clamp
19563+ // (`dec_build_prediction_by_above_pred`) sizes only the OBMC
19564+ // PREDICTION buffer; the blend length is the plain half
19565+ // (`build_obmc_inter_pred_above`: `overlap >> ss_y`), so flooring
19566+ // this at 4 blends rows libaom never blends -- on a 10-bit
19567+ // 1920x792 cut that went 36 differing frames -> 266, worst
19568+ // 13 B -> 11007 B.
1956219569 let (cbw, cbh, cox) = (bw / 2, overlap_above / 2, ox / 2);
1956319570 let tmp_u = obmc_neighbour_pred(nu, cpx + cox, cpy, nb.mv, cbw, cbh, false, h_kind, v_kind, nb_scale);
1956419571 obmc_blend_v(pred_u, chroma_side, cox, 0, cbw, cbh, &tmp_u);