ref: 5cde05fda8e7567949c13aa1097c9abb6051b36c
parent: 0670c7ad8f3e788e90816f07f8f68bbbffdea3f6
parent: 840dc6966de11aaa21f292aa3eff36f66ccfc3a5
author: Marco Paniconi <marpan@google.com>
date: Wed Mar 20 19:06:05 EDT 2019
Merge "vp9-rtc: Fixes for low-resoln"
--- a/vp9/encoder/vp9_aq_cyclicrefresh.c
+++ b/vp9/encoder/vp9_aq_cyclicrefresh.c
@@ -530,9 +530,9 @@
cr->rate_boost_fac = 10;
}
// Adjust some parameters for low resolutions.
- if (cm->width <= 352 && cm->height <= 288) {
+ if (cm->width * cm->height <= 352 * 288) {
if (rc->avg_frame_bandwidth < 3000) {
- cr->motion_thresh = 16;
+ cr->motion_thresh = 64;
cr->rate_boost_fac = 13;
} else {
cr->max_qdelta_perc = 70;
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1700,11 +1700,10 @@
int no_scaling = 0;
unsigned int thresh_svc_skip_golden = 500;
unsigned int thresh_skip_golden = 500;
- int force_smooth_filter =
- (cpi->oxcf.speed >= 8 && cm->width * cm->height <= 320 * 240 &&
- cm->base_qindex >= 200)
- ? 1
- : 0;
+ // TODO(marpan/jianj): forcing smooth_interpol is visually better for noisy
+ // content, at low resolns. Look into adding this conditon. For now keep
+ // it off.
+ int force_smooth_filter = 0;
int scene_change_detected =
cpi->rc.high_source_sad ||
(cpi->use_svc && cpi->svc.high_source_sad_superframe);