summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2018-03-20 15:39:02 -0700
committerJerome Jiang <jianj@google.com>2018-03-22 17:11:05 -0700
commit1ae97b4a4db010ee87bedca5943c64f55d43f6f7 (patch)
tree4f7adc14e538c1e438d9dc9e1b5a782597859517 /vp9
parent4a20caef7851a07f2a3864faaaa522c1a9282e9e (diff)
downloadlibvpx-1ae97b4a4db010ee87bedca5943c64f55d43f6f7.tar
libvpx-1ae97b4a4db010ee87bedca5943c64f55d43f6f7.tar.gz
libvpx-1ae97b4a4db010ee87bedca5943c64f55d43f6f7.tar.bz2
libvpx-1ae97b4a4db010ee87bedca5943c64f55d43f6f7.zip
vp9 svc frame drop: enable adaptive rd for row mt.
adaptive_rd_threshold_mt is set to 1 when speed >= 7 for SVC. QVGA in SVC uses speed 5 which set adaptive_rd_threshold_mt to 0. If VGA or HD is dropped for the last super frame, the flag is still 0 when the encoder is destroyed. Thus memory won't be released. Change the bitrate threshold in datarate test. Change-Id: I55352cc0b030568d38eb735d99c2fa29058d3690
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_multi_thread.c8
-rw-r--r--vp9/encoder/vp9_speed_features.c5
2 files changed, 3 insertions, 10 deletions
diff --git a/vp9/encoder/vp9_multi_thread.c b/vp9/encoder/vp9_multi_thread.c
index da06fb151..381edca99 100644
--- a/vp9/encoder/vp9_multi_thread.c
+++ b/vp9/encoder/vp9_multi_thread.c
@@ -146,11 +146,9 @@ void vp9_row_mt_mem_dealloc(VP9_COMP *cpi) {
TileDataEnc *this_tile =
&cpi->tile_data[tile_row * multi_thread_ctxt->allocated_tile_cols +
tile_col];
- if (cpi->sf.adaptive_rd_thresh_row_mt) {
- if (this_tile->row_base_thresh_freq_fact != NULL) {
- vpx_free(this_tile->row_base_thresh_freq_fact);
- this_tile->row_base_thresh_freq_fact = NULL;
- }
+ if (this_tile->row_base_thresh_freq_fact != NULL) {
+ vpx_free(this_tile->row_base_thresh_freq_fact);
+ this_tile->row_base_thresh_freq_fact = NULL;
}
}
}
diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c
index cfa6aa403..879cd2070 100644
--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -667,11 +667,6 @@ static void set_rt_speed_feature_framesize_independent(
(uint8_t *)vpx_calloc((cm->mi_stride >> 3) * ((cm->mi_rows >> 3) + 1),
sizeof(*cpi->count_lastgolden_frame_usage));
}
- // Disable adaptive_rd_thresh for row_mt for SVC with frame dropping.
- // This is causing some tests to fail.
- // TODO(marpan/jianj): Look into this failure and re-enable later.
- if (cpi->use_svc && cpi->oxcf.drop_frames_water_mark)
- sf->adaptive_rd_thresh_row_mt = 0;
}
void vp9_set_speed_features_framesize_dependent(VP9_COMP *cpi) {