summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encoder.c
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2020-01-16 23:17:26 -0800
committerJerome Jiang <jianj@google.com>2020-01-17 09:19:23 -0800
commit49aa77c61fc1d2dc369594fb19c3165f9c56bd18 (patch)
tree6f1902f24ab54a0bb4b7f3bec02078db778ce0f9 /vp9/encoder/vp9_encoder.c
parent18e93be9f2e9c863be573e910ff6940547fa0cad (diff)
downloadlibvpx-49aa77c61fc1d2dc369594fb19c3165f9c56bd18.tar
libvpx-49aa77c61fc1d2dc369594fb19c3165f9c56bd18.tar.gz
libvpx-49aa77c61fc1d2dc369594fb19c3165f9c56bd18.tar.bz2
libvpx-49aa77c61fc1d2dc369594fb19c3165f9c56bd18.zip
vp9: add delta q for uv channel. add tests.
Add control for delta q for uv. 0 by default. Change-Id: Ib8ed160b1a5c9a61ba15985076f6c6f121477103
Diffstat (limited to 'vp9/encoder/vp9_encoder.c')
-rw-r--r--vp9/encoder/vp9_encoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 9b03b2099..182064c48 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4065,7 +4065,7 @@ static int encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
cpi->oxcf.rc_mode == VPX_CBR &&
cm->frame_type != KEY_FRAME;
- vp9_set_quantizer(cm, q);
+ vp9_set_quantizer(cpi, q);
vp9_set_variance_partition_thresholds(cpi, q, 0);
setup_frame(cpi);
@@ -4094,7 +4094,7 @@ static int encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
(cpi->rc.high_source_sad ||
(cpi->use_svc && svc->high_source_sad_superframe))) {
if (vp9_encodedframe_overshoot(cpi, -1, &q)) {
- vp9_set_quantizer(cm, q);
+ vp9_set_quantizer(cpi, q);
vp9_set_variance_partition_thresholds(cpi, q, 0);
}
}
@@ -4144,7 +4144,7 @@ static int encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
// adjust some rate control parameters, and return to re-encode the frame.
if (vp9_encodedframe_overshoot(cpi, frame_size, &q)) {
vpx_clear_system_state();
- vp9_set_quantizer(cm, q);
+ vp9_set_quantizer(cpi, q);
vp9_set_variance_partition_thresholds(cpi, q, 0);
suppress_active_map(cpi);
// Turn-off cyclic refresh for re-encoded frame.
@@ -4294,7 +4294,7 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size,
}
#endif
- vp9_set_quantizer(cm, q);
+ vp9_set_quantizer(cpi, q);
if (loop_count == 0) setup_frame(cpi);