From 9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f Mon Sep 17 00:00:00 2001 From: Scott LaVarnway Date: Fri, 19 Apr 2013 16:32:15 -0400 Subject: Eliminated prev_mip memsets/memcpys For 1080 material, this buffer is currently 2,270,928 bytes. This patch swaps ptrs instead of copying and uses the last show_frame flag instead of setting the entire buffer to zero. For the test clip used, the decoder improved by up to 1%. Change-Id: I686825712ad56043e09ada9808dc489f875a6ce0 --- vp9/decoder/vp9_decodemv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vp9/decoder/vp9_decodemv.c') diff --git a/vp9/decoder/vp9_decodemv.c b/vp9/decoder/vp9_decodemv.c index 0c2bebfbc..eaf50bae7 100644 --- a/vp9/decoder/vp9_decodemv.c +++ b/vp9/decoder/vp9_decodemv.c @@ -631,7 +631,8 @@ static void read_mb_modes_mv(VP9D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, const int use_prev_in_find_mv_refs = cm->width == cm->last_width && cm->height == cm->last_height && - !cm->error_resilient_mode; + !cm->error_resilient_mode && + cm->last_show_frame; int mb_to_left_edge, mb_to_right_edge, mb_to_top_edge, mb_to_bottom_edge; -- cgit v1.2.3