]> granicus.if.org Git - libvpx/commitdiff
Lower bitrate threshold below which cyclic refresh is turned off.
authorMarco <marpan@google.com>
Fri, 13 Mar 2015 16:36:22 +0000 (09:36 -0700)
committerMarco <marpan@google.com>
Fri, 13 Mar 2015 16:42:45 +0000 (09:42 -0700)
Change-Id: Ib54ab11adf8178eec74f65388a89c8f912c7869a

vp9/encoder/vp9_aq_cyclicrefresh.c

index 44a6f98772dab820af1efb68a600022c97023c1b..96e9145455fde958cd1628b0dc900c7074a99268 100644 (file)
@@ -77,10 +77,10 @@ static int apply_cyclic_refresh_bitrate(const VP9_COMMON *cm,
   // with number of seg blocks, so compare available bits to number of blocks.
   // Average bits available per frame = avg_frame_bandwidth
   // Number of (8x8) blocks in frame = mi_rows * mi_cols;
-  const float factor  = 0.5;
+  const float factor = 0.25;
   const int number_blocks = cm->mi_rows  * cm->mi_cols;
   // The condition below corresponds to turning off at target bitrates:
-  // ~24kbps for CIF, 72kbps for VGA (at 30fps).
+  // (at 30fps), ~12kbps for CIF, 36kbps for VGA, 100kps for HD/720p.
   // Also turn off at very small frame sizes, to avoid too large fraction of
   // superblocks to be refreshed per frame. Threshold below is less than QCIF.
   if (rc->avg_frame_bandwidth < factor * number_blocks ||