shithub: libvpx

Download patch

ref: 7bbc2ca3fe7d106a7de5914aa05befd8d2139bc6
parent: 4ddfa331c4f5730e1fbcf561d91602c6806ac5ae
parent: 6c5f88a280214d07b188a2e97ed736535f813195
author: Jingning Han <[email protected]>
date: Fri Sep 7 18:27:23 EDT 2018

Merge "Add NORMAL_BOOST macro"

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -44,6 +44,7 @@
 #define COMPLEXITY_STATS_OUTPUT 0
 
 #define FIRST_PASS_Q 10.0
+#define NORMAL_BOOST 100
 #define MIN_ARF_GF_BOOST 240
 #define MIN_DECAY_FACTOR 0.01
 #define NEW_MV_MODE_PENALTY 32
@@ -2070,7 +2071,7 @@
   // return 0 for invalid inputs (could arise e.g. through rounding errors)
   if (!boost || (total_group_bits <= 0) || (frame_count < 0)) return 0;
 
-  allocation_chunks = (frame_count * 100) + boost;
+  allocation_chunks = (frame_count * NORMAL_BOOST) + boost;
 
   // Prevent overflow.
   if (boost > 1023) {