]> granicus.if.org Git - libvpx/commitdiff
vp9_spatial_svc_encoder: Enable aq-mode for real-time mode.
authorMarco <marpan@chromium.org>
Wed, 26 Aug 2015 22:18:13 +0000 (15:18 -0700)
committerMarco <marpan@chromium.org>
Wed, 26 Aug 2015 22:19:44 +0000 (15:19 -0700)
For real-time mode (speeds >=5) enable aq-mode=3.

Change-Id: Ib8b4ef7609bc30ac935742c8d27e8cd89933c6af

examples/vp9_spatial_svc_encoder.c

index cfb1377c0fccc627a95b53e45b7a32052b2bdb10..af8aa86485cabff76dea8ceaea95cf757a1761a9 100644 (file)
@@ -635,6 +635,9 @@ int main(int argc, const char **argv) {
     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));
+  if (svc_ctx.speed >= 5)
+    vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3);
+
 
   // Encode frames
   while (!end_of_stream) {