diff options
author | Paul Wilkins <paulwilkins@google.com> | 2014-05-01 12:10:25 +0100 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2014-05-01 11:53:40 -0700 |
commit | 307b6c22a30b31aa0c8f48f1863e8e0e8bfcb254 (patch) | |
tree | 02842384008dfe90c591c78bffbdb169a1746af2 /vp9 | |
parent | 528a5c28b313fbcc7da6264f7151d26a610ddcfd (diff) | |
download | libvpx-307b6c22a30b31aa0c8f48f1863e8e0e8bfcb254.tar libvpx-307b6c22a30b31aa0c8f48f1863e8e0e8bfcb254.tar.gz libvpx-307b6c22a30b31aa0c8f48f1863e8e0e8bfcb254.tar.bz2 libvpx-307b6c22a30b31aa0c8f48f1863e8e0e8bfcb254.zip |
Switch the default 2 pass vbr variant.
On balance Deb's modified rate control for VBR seems
to be outperforming especially on some low motion YT
clips so I have switched this to be the default mode for
now.
Change-Id: I0713d430cad6425ac5c48fccdf332e12814ee44a
Diffstat (limited to 'vp9')
-rw-r--r-- | vp9/encoder/vp9_firstpass.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 1f995c9e7..5867fb3fc 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -61,7 +61,7 @@ #define MIN_GF_INTERVAL 4 #endif -#define LONG_TERM_VBR_CORRECTION +// #define LONG_TERM_VBR_CORRECTION static void swap_yv12(YV12_BUFFER_CONFIG *a, YV12_BUFFER_CONFIG *b) { YV12_BUFFER_CONFIG temp = *a; @@ -2402,8 +2402,8 @@ void vp9_twopass_postencode_update(VP9_COMP *cpi) { const double progress = (double)(cpi->twopass.stats_in - cpi->twopass.stats_in_start) / (cpi->twopass.stats_in_end - cpi->twopass.stats_in_start); - const int bits_used = progress * cpi->rc.this_frame_target + - (1.0 - progress) * cpi->rc.projected_frame_size; + const int bits_used = progress * rc->this_frame_target + + (1.0 - progress) * rc->projected_frame_size; #endif cpi->twopass.bits_left -= bits_used; |