shithub: libvpx

Download patch

ref: 9697a658048763439981406ab0f82e023483e3e2
parent: 1bb29e24553bc03c8cb2b3bb11daff8c109cc462
author: Jingning Han <jingning@google.com>
date: Mon Jul 2 08:34:21 EDT 2018

Add enable-tpl-model guard

Skip operations that exercise the tpl model values if the model
is turned off.

Change-Id: I9ab3b56950f6b5a40ae4670a570885aaaadf8382

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -5438,7 +5438,7 @@
 
     if (sf->partition_search_type == SOURCE_VAR_BASED_PARTITION)
       source_var_based_partition_search_method(cpi);
-  } else if (cpi->twopass.gf_group.index) {
+  } else if (cpi->twopass.gf_group.index && cpi->sf.enable_tpl_model) {
     TplDepFrame *tpl_frame = &cpi->tpl_stats[cpi->twopass.gf_group.index];
     TplDepStats *tpl_stats = tpl_frame->tpl_stats_ptr;