shithub: libvpx

Download patch

ref: 8d363882fda9d5640e794e7df7da07edfbba5fd6
parent: 310f5a769c52f80f5973bea74d9429684ccebcf3
author: Dmitry Kovalev <[email protected]>
date: Fri Aug 22 11:45:11 EDT 2014

Choosing GOOD mode by default.

This patch fixes slow first pass problem. Mode could only be determined
from the deadline value during frame encode call. Unfortunately, we use
mode value before any encode calls during the first pass encoding (see
set_speed_features() logic). The mode for the first pass must be different
from BEST to make first pass fast.

Change-Id: I562a7d32004ff631695d91c09a44d8a9076fd6b5

--- a/vp9/vp9_cx_iface.c
+++ b/vp9/vp9_cx_iface.c
@@ -323,7 +323,7 @@
   if (oxcf->init_framerate > 180)
     oxcf->init_framerate = 30;
 
-  oxcf->mode = BEST;
+  oxcf->mode = GOOD;
 
   switch (cfg->g_pass) {
     case VPX_RC_ONE_PASS: