]> granicus.if.org Git - libvpx/commitdiff
vp9. Use same source_sad threshold for all speeds.
authorMarco <marpan@google.com>
Wed, 15 Feb 2017 19:26:29 +0000 (11:26 -0800)
committerMarco <marpan@google.com>
Wed, 15 Feb 2017 19:28:26 +0000 (11:28 -0800)
Only affects real-time mode.

Change-Id: Iba836f110c4da936f5173cc0f54424d5b6121bff

vp9/encoder/vp9_ratectrl.c

index 67f2959c8f7ad92ce36b61f841db4d6c334ec62d..4c4c20cde951b5d74b7880f2febb513eb059f022 100644 (file)
@@ -2272,8 +2272,7 @@ void vp9_avg_source_sad(VP9_COMP *cpi) {
         int num_samples = 0;
         int sb_cols = (cm->mi_cols + MI_BLOCK_SIZE - 1) / MI_BLOCK_SIZE;
         int sb_rows = (cm->mi_rows + MI_BLOCK_SIZE - 1) / MI_BLOCK_SIZE;
-        uint64_t avg_source_sad_threshold = 5000;
-        if (cpi->oxcf.speed >= 8) avg_source_sad_threshold = 10000;
+        uint64_t avg_source_sad_threshold = 10000;
         if (cpi->oxcf.lag_in_frames > 0) {
           src_y = frames[frame]->y_buffer;
           src_ystride = frames[frame]->y_stride;