From: Marco Date: Thu, 23 Mar 2017 05:36:19 +0000 (-0700) Subject: vp9: Non-rd partition: avoid unneeded call to chrome_check X-Git-Tag: v1.7.0~599^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4863e07c01ca539bd2a0ebcbed6f210050d6c578;p=libvpx vp9: Non-rd partition: avoid unneeded call to chrome_check 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 --- diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 613a7f75a..a4dad85d4 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -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; } }