]> granicus.if.org Git - libvpx/commitdiff
vp9: Non-rd partition: avoid unneeded call to chrome_check
authorMarco <marpan@google.com>
Thu, 23 Mar 2017 05:36:19 +0000 (22:36 -0700)
committerMarco <marpan@google.com>
Thu, 23 Mar 2017 05:40:28 +0000 (22:40 -0700)
Since y_sad is not computed yet (on the early exit due to source_sad),
no need to check for setting color_sensitiviy.

Only affects speed >=8. No change in behavior.

Change-Id: I3a6f2d20fed38d8b8ec51b75bcacf9a21f2db916

vp9/encoder/vp9_encodeframe.c

index 613a7f75a6ec47972c650addfa1a4615e3dd0194..a4dad85d466746ef9c8c94bd350d6fa7a92cb6fd 100644 (file)
@@ -1024,7 +1024,6 @@ static int choose_partitioning(VP9_COMP *cpi, const TileInfo *const tile,
     // If source_sad is low copy the partition without computing the y_sad.
     if (x->skip_low_source_sad && cpi->sf.copy_partition_flag &&
         copy_partitioning(cpi, x, mi_row, mi_col, segment_id, sb_offset)) {
-      chroma_check(cpi, x, bsize, y_sad, is_key_frame);
       return 0;
     }
   }