diff options
author | Paul Wilkins <paulwilkins@google.com> | 2012-02-29 12:32:46 -0800 |
---|---|---|
committer | Jim Bankoski <jimbankoski@google.com> | 2012-03-01 10:35:22 -0800 |
commit | 6d843227626a9e3775b4309100532d586356cd43 (patch) | |
tree | 18428f81ca0b9020f0a23ee29b02ccc8c3014fff /vp8 | |
parent | ce328b855f951e5a9fd0d9d92df09d65ea0d8be9 (diff) | |
download | libvpx-6d843227626a9e3775b4309100532d586356cd43.tar libvpx-6d843227626a9e3775b4309100532d586356cd43.tar.gz libvpx-6d843227626a9e3775b4309100532d586356cd43.tar.bz2 libvpx-6d843227626a9e3775b4309100532d586356cd43.zip |
vp8e - force at least some change in over and under shoots
Change-Id: Ie1796f272dc33bf5a1c8ac990da625961d272aa9
Diffstat (limited to 'vp8')
-rw-r--r-- | vp8/encoder/ratectrl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vp8/encoder/ratectrl.c b/vp8/encoder/ratectrl.c index f4ed30026..bf84035aa 100644 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@ -1532,6 +1532,15 @@ void vp8_compute_frame_size_bounds(VP8_COMP *cpi, int *frame_under_shoot_limit, } } } + + // For very small rate targets where the fractional adjustment + // (eg * 7/8) may be tiny make sure there is at least a minimum + // range. + *frame_over_shoot_limit += 200; + *frame_under_shoot_limit -= 200; + if ( *frame_under_shoot_limit < 0 ) + *frame_under_shoot_limit = 0; + } } |