add auto keyframe unit test

To do so we add a framework for encoding a yv12 file..

Change-Id: I94a061eb916beaf6cde920cf1aaadb6eed10a717
This commit is contained in:
Jim Bankoski
2012-06-23 11:20:41 -07:00
parent 007486329f
commit 96b6b6bbf0
5 changed files with 155 additions and 11 deletions

View File

@@ -105,8 +105,7 @@ void EncoderTest::RunLoop(VideoSource *video) {
Encoder encoder(cfg_, deadline_, &stats_);
bool again;
for (video->Begin(), again = true; again; video->Next()) {
for (again = true, video->Begin(); again; video->Next()) {
again = video->img() != NULL;
PreEncodeFrameHook(video);