diff options
author | Jerome Jiang <jianj@google.com> | 2021-08-31 10:22:22 -0700 |
---|---|---|
committer | Jerome Jiang <jianj@google.com> | 2021-09-10 10:46:26 -0700 |
commit | 65a1751e5b98bf7f1d21bcbfdef352af34fb205d (patch) | |
tree | aea196d324f1f5c09861f015bbfa08da2773e672 /vp8/encoder/onyx_if.c | |
parent | ca40ca9bed87687eb0b534bf3974c95182dd29a1 (diff) | |
download | libvpx-65a1751e5b98bf7f1d21bcbfdef352af34fb205d.tar libvpx-65a1751e5b98bf7f1d21bcbfdef352af34fb205d.tar.gz libvpx-65a1751e5b98bf7f1d21bcbfdef352af34fb205d.tar.bz2 libvpx-65a1751e5b98bf7f1d21bcbfdef352af34fb205d.zip |
Add vp8 support to rc lib
For 1 layer CBR only.
Support for temporal layers comes later.
Rename the library to libvpxrc
Bug: b/188853141
Change-Id: Ib7f977b64c05b1a0596870cb7f8e6768cb483850
Diffstat (limited to 'vp8/encoder/onyx_if.c')
-rw-r--r-- | vp8/encoder/onyx_if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 57c94071b..fc154afd1 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -4017,7 +4017,8 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size, if (frame_over_shoot_limit == 0) frame_over_shoot_limit = 1; /* Are we are overshooting and up against the limit of active max Q. */ - if (((cpi->pass != 2) || + if (!cpi->rt_always_update_correction_factor && + ((cpi->pass != 2) || (cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER)) && (Q == cpi->active_worst_quality) && (cpi->active_worst_quality < cpi->worst_quality) && @@ -4446,8 +4447,7 @@ static void encode_frame_to_data_rate(VP8_COMP *cpi, size_t *size, } } - if (cpi->rt_always_update_correction_factor || !active_worst_qchanged) - vp8_update_rate_correction_factors(cpi, 2); + if (!active_worst_qchanged) vp8_update_rate_correction_factors(cpi, 2); cpi->last_q[cm->frame_type] = cm->base_qindex; |