Added Reset method to TwopassStatsStore
authorAdrian Grange <agrange@google.com>
Tue, 2 Oct 2012 16:36:41 +0000 (09:36 -0700)
committerAdrian Grange <agrange@google.com>
Wed, 3 Oct 2012 18:50:54 +0000 (11:50 -0700)
commit30f58b526d0b3c58af45c64eee16efbc7f3fe897
treecfd1784263b72d08fcf1e461085fd7e9358520b5
parent9704cdec9fb777833599312fc84e3f1311d25eed
Added Reset method to TwopassStatsStore

The stats buffer needs to be reset between runs of the
encoder. I added a Reset() function to TwopassStatsStore
and called it at the beginning of each encode.

This enables us to run multiple encodes which was
previously not possible since there was no way to reset
the stats between runs.

Change-Id: Iebb18dab83ba9331f009f764cc858609738a27f9
test/encode_test_driver.cc
test/encode_test_driver.h