shithub: libvpx

Download patch

ref: 0af189c00d48f92fbcc52c04d28af7a3af848d18
parent: 018290a344c8144f012f08aaa83491b9749f7e96
parent: 169c846575aeaa4991ac1807656804253e66c99b
author: Marco Paniconi <marpan@google.com>
date: Fri Mar 10 13:26:06 EST 2017

Merge "vp9: Sample encoder vpx_temporal_svc_encoder: enable row-mt"

--- a/examples/vpx_temporal_svc_encoder.c
+++ b/examples/vpx_temporal_svc_encoder.c
@@ -722,7 +722,12 @@
     vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 1);
     vpx_codec_control(&codec, VP9E_SET_TUNE_CONTENT, 0);
     vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1));
-    vpx_codec_control(&codec, VP9E_SET_ROW_MT, 0);
+    // TODO(marpan/jianj): There is an issue with row-mt for low resolutons at
+    // high speed settings, disable its use for those cases for now.
+    if (cfg.g_threads > 1 && ((cfg.g_w > 320 && cfg.g_h > 240) || speed < 7))
+      vpx_codec_control(&codec, VP9E_SET_ROW_MT, 1);
+    else
+      vpx_codec_control(&codec, VP9E_SET_ROW_MT, 0);
     if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1 : 0))
       die_codec(&codec, "Failed to set SVC");
     for (i = 0; i < cfg.ts_number_layers; ++i) {