diff options
author | Scott LaVarnway <slavarnway@google.com> | 2013-04-19 16:32:15 -0400 |
---|---|---|
committer | Scott LaVarnway <slavarnway@google.com> | 2013-04-19 18:38:10 -0400 |
commit | 9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f (patch) | |
tree | fcf3589755b80165c6a745c52b1c0ec3a101b0ac /vp9/decoder/vp9_decodemv.c | |
parent | d4c97f949f9e4ffe3461feacc8adb639c2824d49 (diff) | |
download | libvpx-9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f.tar libvpx-9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f.tar.gz libvpx-9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f.tar.bz2 libvpx-9662531d77d6a47e7d7cdc6b0c5d9f3388507c8f.zip |
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
Diffstat (limited to 'vp9/decoder/vp9_decodemv.c')
-rw-r--r-- | vp9/decoder/vp9_decodemv.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |