Swap alt/gold/new/last frame buffer ptrs instead of copying.
authorFritz Koenig <frkoenig@google.com>
Thu, 22 Jul 2010 12:07:32 +0000 (08:07 -0400)
committerFritz Koenig <frkoenig@google.com>
Fri, 23 Jul 2010 18:53:59 +0000 (14:53 -0400)
commit0ce39012823b522c611db87f0810c540124e6e9d
treee833058b7230fbc6741fa201d8c6e6fb4353d420
parent68cf24310b1bc407948fe6130732d066a5c02e7d
Swap alt/gold/new/last frame buffer ptrs instead of copying.

At the end of the decode, frame buffers were being copied.
The frames are not updated after the copy, they are just
for reference on later frames.  This change allows multiple
references to the same frame buffer instead of copying it.

Changes needed to be made to the encoder to handle this.  The
encoder is still doing frame buffer copies in similar places
where pointer reference could be done.

Change-Id: I7c38be4d23979cc49b5f17241ca3a78703803e66
vp8/common/alloccommon.c
vp8/common/onyxc_int.h
vp8/decoder/decodframe.c
vp8/decoder/onyxd_if.c
vp8/decoder/threading.c
vp8/encoder/encodeframe.c
vp8/encoder/ethreading.c
vp8/encoder/firstpass.c
vp8/encoder/onyx_if.c
vp8/encoder/pickinter.c
vp8/encoder/rdopt.c