vp9: Remove legacy comments for avg_source_sad.
authorJerome Jiang <jianj@google.com>
Tue, 4 Apr 2017 23:28:27 +0000 (16:28 -0700)
committerJerome Jiang <jianj@google.com>
Tue, 4 Apr 2017 23:28:27 +0000 (16:28 -0700)
Change-Id: Ia6e8614535a097f17f37fc382cef8e22e03b70f6

vp9/encoder/vp9_encoder.c
vp9/encoder/vp9_ratectrl.c

index fb929e1..141577b 100644 (file)
@@ -3153,7 +3153,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
   }
 
   // Avoid scaling last_source unless its needed.
-  // Last source is needed if vp9_avg_source_sad() is used, or if
+  // Last source is needed if avg_source_sad() is used, or if
   // partition_search_type == SOURCE_VAR_BASED_PARTITION, or if noise
   // estimation is enabled.
   if (cpi->unscaled_last_source != NULL &&
index 5386f6a..f79b7c6 100644 (file)
@@ -2289,7 +2289,6 @@ void vp9_scene_detection_onepass(VP9_COMP *cpi) {
         for (sbi_row = 0; sbi_row < sb_rows; ++sbi_row) {
           for (sbi_col = 0; sbi_col < sb_cols; ++sbi_col) {
             // Checker-board pattern, ignore boundary.
-            // If the use_source_sad is on, compute for every superblock.
             if (((sbi_row > 0 && sbi_col > 0) &&
                  (sbi_row < sb_rows - 1 && sbi_col < sb_cols - 1) &&
                  ((sbi_row % 2 == 0 && sbi_col % 2 == 0) ||