From f6a58d620da72e6753b0ec119e141a2991d4c8f3 Mon Sep 17 00:00:00 2001
From: Paul Wilkins <paulwilkins@google.com>
Date: Fri, 11 Jun 2010 15:10:51 +0100
Subject: [PATCH] Tuning of baseline Rd equation to improve behavior at the

 low and high Q ends.
---
 vp8/encoder/rdopt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c
index a6bd8e86dc..4aedbd9255 100644
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -237,12 +237,12 @@ void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue)
     vp8_clear_system_state();  //__asm emms;
 
     cpi->RDMULT = (int)( (0.0001 * (capped_q * capped_q * capped_q * capped_q))
-                        -(0.0125 * (capped_q * capped_q * capped_q))
+                        -(0.015 * (capped_q * capped_q * capped_q))
                         +(3.25 * (capped_q * capped_q))
-                        -(12.5 * capped_q) + 50.0);
+                        -(17.5 * capped_q) + 125.0);
 
-    if (cpi->RDMULT < 50)
-        cpi->RDMULT = 50;
+    if (cpi->RDMULT < 125)
+        cpi->RDMULT = 125;
 
     if (cpi->pass == 2 && (cpi->common.frame_type != KEY_FRAME))
     {
-- 
GitLab