Last row of filter taps equal to the one before it.
Make row indexed at 192/96 equal to the one indexed at 191/95,
so that clamping the table address to 191/95 produces results
consistent with the libaom implementation.
New change to replace 10692 which was reverted in 10870.
Change-Id: I756bd9a3567aa5ac14a2d4d7d2e9bda2ebc9ac7b
diff --git a/av1/common/warped_motion.c b/av1/common/warped_motion.c
index 9d13dc7..ada2e4e 100644
--- a/av1/common/warped_motion.c
+++ b/av1/common/warped_motion.c
@@ -602,6 +602,8 @@
{ 0, 0, 1, - 4, 13, 124, - 7, 1 }, { 0, 0, 1, - 4, 11, 125, - 6, 1 },
{ 0, 0, 1, - 3, 8, 126, - 5, 1 }, { 0, 0, 1, - 2, 6, 126, - 4, 1 },
{ 0, 0, 0, - 1, 4, 127, - 3, 1 }, { 0, 0, 0, 0, 2, 127, - 1, 0 },
+ // dummy (replicate row index 191)
+ { 0, 0, 0, 0, 2, 127, - 1, 0 },
#elif WARPEDPIXEL_PREC_BITS == 5
// [-1, 0)
@@ -655,11 +657,10 @@
{0, 0, 2, -8, 27, 117, -13, 3}, {0, 0, 2, -7, 22, 120, -11, 2},
{0, 0, 1, -6, 18, 122, -9, 2}, {0, 0, 1, -4, 13, 124, -7, 1},
{0, 0, 1, -3, 8, 126, -5, 1}, {0, 0, 0, -1, 4, 127, -3, 1},
+ // dummy (replicate row index 95)
+ {0, 0, 0, -1, 4, 127, -3, 1},
#endif // WARPEDPIXEL_PREC_BITS == 6
-
- // dummy
- { 0, 0, 0, 0, 1, 127, 0, 0 },
};
/* clang-format on */