Refactor choose_partitioning computing scheme
authorJingning Han <jingning@google.com>
Thu, 11 Dec 2014 17:29:36 +0000 (09:29 -0800)
committerJingning Han <jingning@google.com>
Thu, 11 Dec 2014 17:33:40 +0000 (09:33 -0800)
commit377d2f027a60fac5d83a4c9de9767ac90997d1fa
treee5d08dbcc468dba56e1c0600cbf4f1920300836c
parent0cac834b5a3ed300f338e30c57652bdb5fe1530e
Refactor choose_partitioning computing scheme

This commit refactors the choose_partitioning function. It removes
redundant memset calls and makes the encoder to calculate
variance value per block only when it is needed. It reduces the
average runtime cost of choose_partitioning by 60%. Overall it
reduces speed -6 runtime by 2-5%.

Change-Id: I951922c50d901d0fff77a3bafc45992179bacef9
vp9/encoder/vp9_encodeframe.c