]> granicus.if.org Git - libvpx/commitdiff
Force alt reference frame off in rtc mode
authorJingning Han <jingning@google.com>
Wed, 19 Feb 2014 23:11:12 +0000 (15:11 -0800)
committerJingning Han <jingning@google.com>
Thu, 20 Feb 2014 23:27:16 +0000 (15:27 -0800)
When non-RD coding decision is used in rtc mode, the alt reference
is not used for inter frame prediction. This commit disabled alt ref
option whenever speed -6 is used.

Change-Id: I0b33ca03661de1db2d9bef1bcbff848cd4c9396f

vp9/encoder/vp9_onyx_if.c

index 73ac9bc882414f28901c968d34c556feb121e88b..e11232e6162304e5cfc8ef9b3e31c34db64d18da 100644 (file)
@@ -1381,6 +1381,9 @@ void vp9_change_config(VP9_PTR ptr, VP9_CONFIG *oxcf) {
 
   cpi->oxcf = *oxcf;
 
+  if (cpi->oxcf.cpu_used == -6)
+    cpi->oxcf.play_alternate = 0;
+
   switch (cpi->oxcf.mode) {
       // Real time and one pass deprecated in test code base
     case MODE_GOODQUALITY: