]> granicus.if.org Git - libvpx/commitdiff
Fix the top-right reference block location
authorJingning Han <jingning@google.com>
Fri, 28 Oct 2016 21:19:12 +0000 (14:19 -0700)
committerYaowu Xu <yaowu@google.com>
Sun, 30 Oct 2016 05:26:48 +0000 (22:26 -0700)
This commit fixes the top-right reference block location for block
sizes above 8x8. It improves the coding performance of ref-mv:

lowres 0.08%
midres 0.15%

Thanks to jiafeng@ for finding this issue.

Change-Id: I70750fc7b18bf0126d3e07abc1b63ca5a160193e

av1/common/mvref_common.c

index 2344bc105e0e154fecb1dac3bd2e21cfda4e5376..5b0f21da23ce12d33249de8132497e05610009c1 100644 (file)
@@ -394,8 +394,8 @@ static void setup_ref_mv_list(const AV1_COMMON *cm, const MACROBLOCKD *xd,
 
   // Check top-right boundary
   if (has_tr)
-    newmv_count += scan_blk_mbmi(cm, xd, mi_row, mi_col, block, rf, -1, 1,
-                                 ref_mv_stack, refmv_count);
+    newmv_count += scan_blk_mbmi(cm, xd, mi_row, mi_col, block, rf, -1,
+                                 xd->n8_w, ref_mv_stack, refmv_count);
 
   nearest_refmv_count = *refmv_count;