Reduce motion sampling points
It causes minor compression performance change, with ~2% less
instruction counts.
STATS_CHANGED
Change-Id: I80492fd65e2dbaaa265b2c503b5b8aa31d3bffe3
diff --git a/av1/encoder/mcomp.c b/av1/encoder/mcomp.c
index 031c7cd..b2b544a 100644
--- a/av1/encoder/mcomp.c
+++ b/av1/encoder/mcomp.c
@@ -187,7 +187,10 @@
int tan_radius = AOMMAX((int)(0.41 * radius), 1);
int num_search_pts = 12;
if (radius == 1) num_search_pts = 8;
-
+ if (radius <= 5) {
+ tan_radius = radius;
+ num_search_pts = 8;
+ }
const MV ss_mvs[13] = {
{ 0, 0 },
{ -radius, 0 },