diff options
author | Marco Paniconi <marpan@google.com> | 2018-08-03 17:28:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-08-03 17:28:57 +0000 |
commit | e802f3a87dc5f12ce087324e221dd46dd8f4f22d (patch) | |
tree | 26810e608bbaeb3f9b4fa9d2540bb87867f056a3 /vp9/encoder/vp9_ratectrl.c | |
parent | 3f3d0adec18239f2b818cb6bafac407f2d6af66e (diff) | |
parent | 89d23138d2a67a3e518d1026f87cdd5a9e1bee78 (diff) | |
download | libvpx-e802f3a87dc5f12ce087324e221dd46dd8f4f22d.tar libvpx-e802f3a87dc5f12ce087324e221dd46dd8f4f22d.tar.gz libvpx-e802f3a87dc5f12ce087324e221dd46dd8f4f22d.tar.bz2 libvpx-e802f3a87dc5f12ce087324e221dd46dd8f4f22d.zip |
Merge "vp9: Adjust qp_thresh on slide change overshoot detection"
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r-- | vp9/encoder/vp9_ratectrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index 47669a049..1ec696517 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -2820,7 +2820,7 @@ int vp9_encodedframe_overshoot(VP9_COMP *cpi, int frame_size, int *q) { // If this decision is not based on an encoded frame size but just on // scene/slide change detection (i.e., re_encode_overshoot_rt = 0), adjust the // qp_thresh and skip the (frame_size > thresh_rate) condition in this case. - if (!sf->re_encode_overshoot_rt) thresh_qp = rc->worst_quality >> 1; + if (!sf->re_encode_overshoot_rt) thresh_qp = 3 * (rc->worst_quality >> 2); if ((!sf->re_encode_overshoot_rt || frame_size > thresh_rate) && cm->base_qindex < thresh_qp) { double rate_correction_factor = |