shithub: libvpx

Download patch

ref: 020d1ea32f836904fc9735bcfe65c3384f5c297e
parent: c71cbb8f282bb2100e7b2bec0f928f8ac5245d4e
author: Angie Chiang <angiebird@google.com>
date: Wed Apr 3 07:46:09 EDT 2019

Adjust the probs in get_mv_mode_cost

midres's performance is improved by 0.08%
hdres's performance is improved by 0.04%

Change-Id: Id48f2b654d8ae1909fcb6d21eda8bfb69087a18a

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -6291,9 +6291,9 @@
   // TODO(angiebird): The probabilities are roughly inferred from
   // default_inter_mode_probs. Check if there is a better way to set the
   // probabilities.
-  const int zero_mv_prob = 9;
-  const int new_mv_prob = 77;
-  const int ref_mv_prob = 170;
+  const int zero_mv_prob = 16;
+  const int new_mv_prob = 24 * 1;
+  const int ref_mv_prob = 256 - zero_mv_prob - new_mv_prob;
   assert(zero_mv_prob + new_mv_prob + ref_mv_prob == 256);
   switch (mv_mode) {
     case ZERO_MV_MODE: return vp9_prob_cost[zero_mv_prob]; break;