ref: 377d2f027a60fac5d83a4c9de9767ac90997d1fa
parent: 0cac834b5a3ed300f338e30c57652bdb5fe1530e
author: Jingning Han <jingning@google.com>
date: Thu Dec 11 04:29:36 EST 2014
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