Save encoded ivf files separately for different TLs.

This allows offline visualization of the different TL.

For now, there is no need to do the same for the decoded frames.

Bug: webrtc:10349
Tested: 1) ninja -C out/Debug; and out/Debug/modules_tests --gtest_filter="*MultiresVP8*:*SvcVP9*". 2) Downstream tests.
Change-Id: Iaf5ab19ee681488706d8777a5adba78efd5cc1ee
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128861
Commit-Queue: Rasmus Brandt <brandtr@webrtc.org>
Reviewed-by: Mirta Dvornicic <mirtad@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27240}
This commit is contained in:
Rasmus Brandt
2019-03-22 13:41:48 +01:00
committed by Commit Bot
parent 8f7ce222e7
commit 001c782ff2
5 changed files with 48 additions and 32 deletions

View File

@ -54,8 +54,7 @@ class VideoProcessorTest : public testing::Test {
q_.SendTask([this] {
video_processor_ = absl::make_unique<VideoProcessor>(
&encoder_mock_, &decoders_, &frame_reader_mock_, config_, &stats_,
nullptr /* encoded_frame_writer */,
nullptr /* decoded_frame_writer */);
&encoded_frame_writers_, /*decoded_frame_writers=*/nullptr);
});
}
@ -86,6 +85,7 @@ class VideoProcessorTest : public testing::Test {
std::vector<std::unique_ptr<VideoDecoder>> decoders_;
MockFrameReader frame_reader_mock_;
VideoCodecTestStatsImpl stats_;
VideoProcessor::IvfFileWriterMap encoded_frame_writers_;
std::unique_ptr<VideoProcessor> video_processor_;
};