Refines the recode loop
Uses number of 4x4 blocks using global motion as metric to
decide whether to recode or not.
Improves performance a little.
lowres: -0.658%
Change-Id: I6b1913b7bd31d7a25ca8ca5c75c9b6bb87151a78
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 1ae20a6..1a2c7a7 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -4404,7 +4404,7 @@
};
const WarpedMotionParams *gm = &cpi->common.global_motion[(ref)];
assert(gm->wmtype < GLOBAL_TRANS_TYPES);
- if (cpi->global_motion_used[ref] >= gm_amortization_blks[gm->wmtype]) {
+ if (cpi->global_motion_used[ref][0] >= gm_amortization_blks[gm->wmtype]) {
return 0;
} else {
const int cost = (gm_params_cost[gm->wmtype] << AV1_PROB_COST_SHIFT) +