From: Jim Bankoski Date: Thu, 22 Jul 2010 20:07:13 +0000 (-0400) Subject: Skip unnecessary search of identical frames X-Git-Tag: v0.9.5~110^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69ae8f475dd895fba0bc40ffdab0ca2d7537888c;p=libvpx Skip unnecessary search of identical frames vp8_get_compressed_data() was defeating logic in encode_frame_to_datarate() that determined the reference buffers to search and forcing all frames to be eligible to search. In cases where buffers have identical contents, this is unnecessary extra work. Change-Id: I9e667ac39128ae32dc455a3db4c62e3efce6f114 --- diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index d9ff6b05b..99a09deb2 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -5209,8 +5209,6 @@ int vp8_get_compressed_data(VP8_PTR ptr, unsigned int *frame_flags, unsigned lon { // return to normal state - cpi->ref_frame_flags = VP8_ALT_FLAG | VP8_GOLD_FLAG | VP8_LAST_FLAG; - cm->refresh_entropy_probs = 1; cm->refresh_alt_ref_frame = 0; cm->refresh_golden_frame = 0;