From c76ebffdcc6ecd870d90a4455cf86aaa40ff04e2 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 6 Mar 2015 09:51:21 -0800 Subject: [PATCH] Set the threads/tile_columns in vpx_temporal_svc_encoder. Change-Id: I794e8b64f26ebe68d7f18c3a11cb7c80e1cd3110 --- examples/vpx_temporal_svc_encoder.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c index 7a582d2b8..dea29c021 100644 --- a/examples/vpx_temporal_svc_encoder.c +++ b/examples/vpx_temporal_svc_encoder.c @@ -610,6 +610,9 @@ int main(int argc, char **argv) { cfg.rc_buf_optimal_sz = 600; cfg.rc_buf_sz = 1000; + // Use 1 thread as default. + cfg.g_threads = 1; + // Enable error resilient mode. cfg.g_error_resilient = 1; cfg.g_lag_in_frames = 0; @@ -675,6 +678,7 @@ int main(int argc, char **argv) { vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0); vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0); + vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1)); if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) { die_codec(&codec, "Failed to set SVC"); }