summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2017-03-07 14:32:30 -0800
committerJerome Jiang <jianj@google.com>2017-03-10 01:01:07 +0000
commitffb3c50da1d7ac24e6ae7858cb62abb348552b6a (patch)
tree80c8ad4dd8122941cd38e2904b92db6b9c9bb8e6 /examples
parentf951881e8cc8487b812b2cd562fb1d9d583ec30b (diff)
downloadlibvpx-ffb3c50da1d7ac24e6ae7858cb62abb348552b6a.tar
libvpx-ffb3c50da1d7ac24e6ae7858cb62abb348552b6a.tar.gz
libvpx-ffb3c50da1d7ac24e6ae7858cb62abb348552b6a.tar.bz2
libvpx-ffb3c50da1d7ac24e6ae7858cb62abb348552b6a.zip
vp9: Enable row multithreading for SVC in real-time mode.
Enable row-mt for SVC for real-time mode, speed >=5. Add the controls to the sample encoders, but keep it off for now. Add the control and enable it for the 1 pass CBR unittests. For speed 7, 3 layer SVC, 2 threads, row-mt enabled gives about ~5% speedup. Change-Id: Ie8e77323c17263e3e7a7b9858aec12a3a93ec0c1
Diffstat (limited to 'examples')
-rw-r--r--examples/vp9_spatial_svc_encoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/vp9_spatial_svc_encoder.c b/examples/vp9_spatial_svc_encoder.c
index 0e409387b..1f5078aad 100644
--- a/examples/vp9_spatial_svc_encoder.c
+++ b/examples/vp9_spatial_svc_encoder.c
@@ -697,8 +697,10 @@ int main(int argc, const char **argv) {
if (svc_ctx.speed != -1)
vpx_codec_control(&codec, VP8E_SET_CPUUSED, svc_ctx.speed);
- if (svc_ctx.threads)
+ 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.speed >= 5 && svc_ctx.aqmode == 1)
vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);
if (svc_ctx.speed >= 5)