diff options
author | Jerome Jiang <jianj@google.com> | 2023-05-04 10:59:46 -0400 |
---|---|---|
committer | Jerome Jiang <jianj@google.com> | 2023-05-04 10:59:46 -0400 |
commit | 2e5261647f0440e78081f9bfaaaa5ef9d10140d6 (patch) | |
tree | 37677c216776364e9fc7db565d7e10323d919a98 /test | |
parent | f059f9ee2df114ffa475aaef064f93396ebf39cc (diff) | |
download | libvpx-2e5261647f0440e78081f9bfaaaa5ef9d10140d6.tar libvpx-2e5261647f0440e78081f9bfaaaa5ef9d10140d6.tar.gz libvpx-2e5261647f0440e78081f9bfaaaa5ef9d10140d6.tar.bz2 libvpx-2e5261647f0440e78081f9bfaaaa5ef9d10140d6.zip |
Add num_blocks to VpxTplFrameStats
I realized the calculation of the size of the list of VpxTplBlockStats
is non-trivial. So it's better to add the field for the size.
Bug: b/273736974
Change-Id: Ic1b50597c1f89a8f866b5669ca676407be6dc9d8
Diffstat (limited to 'test')
-rw-r--r-- | test/encode_api_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc index 0514cd828..e435ed872 100644 --- a/test/encode_api_test.cc +++ b/test/encode_api_test.cc @@ -406,6 +406,7 @@ class EncodeApiGetTplStatsTest if (tpl_stats[i].frame_width != 0) { ASSERT_EQ(tpl_stats[i].frame_width, width_); ASSERT_EQ(tpl_stats[i].frame_height, height_); + ASSERT_GT(tpl_stats[i].num_blocks, 0); ASSERT_NE(tpl_stats[i].block_stats_list, nullptr); stats_not_all_zero = true; } |