Reduce mem copies in encoder loopfilter level picking
authorAttila Nagy <attilanagy@google.com>
Tue, 29 Nov 2011 11:48:02 +0000 (13:48 +0200)
committerAttila Nagy <attilanagy@google.com>
Wed, 7 Dec 2011 07:59:50 +0000 (09:59 +0200)
commite570b0406db127ea53047a8e76d22174e5ac0638
treeeaa16728a5c8d79cc1ce555d909e0a31f3412a3e
parentbdd60a7be779400e597cae001448a44d21c98f2b
Reduce mem copies in encoder loopfilter level picking

Do the test filtering in the existing backup frame buffer instead of
the original. Copy the original data into extra buffer before doing
the  filtering. This way there is no need to restore the original
unfiltered  frame at the end of level picking process.

This came up in some discussions with Johann. Thanks!

Change-Id: I495f4301d983854673276c34ec0ddf9a9d622122
vp8/encoder/onyx_if.c
vp8/encoder/onyx_int.h
vp8/encoder/picklpf.c