ref: 13b02a8efec5b3cdaad513779382b782abb5f4bb
parent: ff42e04f9cb60e63ca3fe12ac497f27c68555e1f
author: Marco <[email protected]>
date: Wed Jun 7 06:27:19 EDT 2017
vp9: SVC: Enable row-mt in sample encoder. Change-Id: I4b51043cb3f5955efe947fe4685aed4a21adb8bd
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -699,7 +699,10 @@
vpx_codec_control(&codec, VP8E_SET_CPUUSED, svc_ctx.speed);
if (svc_ctx.threads) {
vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (svc_ctx.threads >> 1));
- vpx_codec_control(&codec, VP9E_SET_ROW_MT, 0);
+ if (svc_ctx.threads > 1)
+ vpx_codec_control(&codec, VP9E_SET_ROW_MT, 1);
+ else
+ vpx_codec_control(&codec, VP9E_SET_ROW_MT, 0);
}
if (svc_ctx.speed >= 5 && svc_ctx.aqmode == 1)
vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);