]> granicus.if.org Git - libvpx/commit
vp9: fix memory alloc for adaptive_rd_thresh_row_mt.
authorJerome Jiang <jianj@google.com>
Mon, 13 Aug 2018 18:01:31 +0000 (11:01 -0700)
committerJerome Jiang <jianj@google.com>
Tue, 14 Aug 2018 17:55:31 +0000 (10:55 -0700)
commitb4e783da577bc3631a48e071b67931b7833ec651
treed9578867d140b3ed4ed66d4e60a6423b476a3493
parentf1d44c1f45bb0828ef4a683ad42544b3c6fc3af1
vp9: fix memory alloc for adaptive_rd_thresh_row_mt.

When the feature is enabled and the memory is not available, allocate
it. There was a case where speed feature changed in the middle of stream
but the number of tiles stayed the same, memory was not re-allocated.

Another case is where speed for base layer is different than that of
higher quality layers (same resolution). Removed the speed constraints
forcing base layer using same speed setting.

Thus the memory for adaptive_rd_thresh_row_mt stayed NULL but the
feature was enabled.

Add an end to end test to cover this case.

Change-Id: I2f1f802ef98a554571b30094d3600b9439228457
test/svc_datarate_test.cc
test/svc_test.cc
test/vp9_end_to_end_test.cc
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_multi_thread.c
vp9/encoder/vp9_multi_thread.h