Moved analysis to Stats.

Slicing, aggregation and analysis has been moved to Stats class.
Data of all spatial layers is stored in single Stats object.

Bug: webrtc:8524
Change-Id: Ic9a64859a36a1ccda661942a201cdeeed470686a
Reviewed-on: https://webrtc-review.googlesource.com/50301
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22094}
This commit is contained in:
Sergey Silkin
2018-02-20 09:48:26 +01:00
committed by Commit Bot
parent 45d725d501
commit 06a8f304ef
17 changed files with 701 additions and 468 deletions

View File

@ -54,8 +54,6 @@ class VideoProcessorTest : public testing::Test {
config_.SetCodecSettings(kVideoCodecVP8, 1, 1, 1, false, false, false,
false, kWidth, kHeight);
stats_.resize(1);
decoder_mock_ = new MockVideoDecoder();
decoders_.push_back(std::unique_ptr<VideoDecoder>(decoder_mock_));
@ -96,7 +94,7 @@ class VideoProcessorTest : public testing::Test {
MockVideoDecoder* decoder_mock_;
std::vector<std::unique_ptr<VideoDecoder>> decoders_;
MockFrameReader frame_reader_mock_;
std::vector<Stats> stats_;
Stats stats_;
std::unique_ptr<VideoProcessor> video_processor_;
};