vp9-svc: Add layer bitrate targeting to SVC datarate tests.
authorMarco <marpan@google.com>
Fri, 15 Dec 2017 00:35:33 +0000 (16:35 -0800)
committerMarco <marpan@google.com>
Wed, 20 Dec 2017 03:48:47 +0000 (19:48 -0800)
commit9ca9c12dbdea516f46e1e08203d7cc1378eb171b
tree022a963d46494eff91054eea4ed954b7c40d06ec
parenta2127236ae4742f329e5571d76b84de08cd3b8ea
vp9-svc: Add layer bitrate targeting to SVC datarate tests.

Modify and update the SVC datarate unittests to verify the
rate targeting for each spatial-temporal layer.
The current tests were only verifying the rate targeting
of the full SVC stream, not individual layers.
Also re-enabled a test that was disabled.

This is a stronger verification of the layered rate control
for SVC for 1 pass CBR encoding.

Added PostEncodeFrameHook, needed to get the layer_id and
update the layer buffer level.

Change-Id: I9fd54ad474686b20a6de3250d587e2cec194a56f
test/datarate_test.cc
test/encode_test_driver.cc
test/encode_test_driver.h