summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Bankoski <jimbankoski@google.com>2010-07-22 16:07:13 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-09-08 11:31:34 -0400
commit69ae8f475dd895fba0bc40ffdab0ca2d7537888c (patch)
treef20a49d6cc518be005d0f657d31b10eecd4e4cd1
parent63ccfbd54537cde423298703b42cd30001e2b053 (diff)
downloadlibvpx-69ae8f475dd895fba0bc40ffdab0ca2d7537888c.tar
libvpx-69ae8f475dd895fba0bc40ffdab0ca2d7537888c.tar.gz
libvpx-69ae8f475dd895fba0bc40ffdab0ca2d7537888c.tar.bz2
libvpx-69ae8f475dd895fba0bc40ffdab0ca2d7537888c.zip
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
-rw-r--r--vp8/encoder/onyx_if.c2
1 files changed, 0 insertions, 2 deletions
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;