Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: webrtc/video/full_stack.cc

Issue 1691953004: Add VP9 to full stack tests. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add two vp9 tests for now Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/full_stack.cc
diff --git a/webrtc/video/full_stack.cc b/webrtc/video/full_stack.cc
index e870c1ff14f2cd6def267d5bacb68f025fb2bad3..8a97ba8a9a13b5fbe3e27bd1d34abd6ab4fadc0d 100644
--- a/webrtc/video/full_stack.cc
+++ b/webrtc/video/full_stack.cc
@@ -21,6 +21,29 @@ class FullStackTest : public VideoQualityTest {
void RunTest(const VideoQualityTest::Params &params) {
RunWithAnalyzer(params);
}
+
+ void ForemanCifWithoutPacketLoss(const std::string& video_codec) {
+ // TODO(pbos): Decide on psnr/ssim thresholds for foreman_cif.
+ VideoQualityTest::Params foreman_cif = {
+ {352, 288, 30, 700000, 700000, 700000, video_codec, 1},
+ {"foreman_cif"},
+ {},
+ {"foreman_cif_net_delay_0_0_plr_0_" + video_codec, 0.0, 0.0,
+ kFullStackTestDurationSecs}};
+ RunTest(foreman_cif);
+ }
+
+ void ForemanCifPlr5(const std::string& video_codec) {
+ VideoQualityTest::Params foreman_cif = {
+ {352, 288, 30, 30000, 500000, 2000000, video_codec, 1},
+ {"foreman_cif"},
+ {},
+ {"foreman_cif_delay_50_0_plr_5_" + video_codec, 0.0, 0.0,
+ kFullStackTestDurationSecs}};
+ foreman_cif.pipe.loss_percent = 5;
+ foreman_cif.pipe.queue_delay_ms = 50;
+ RunTest(foreman_cif);
+ }
};
// VideoQualityTest::Params params = {
@@ -33,6 +56,14 @@ class FullStackTest : public VideoQualityTest {
// logs // bool
// };
+TEST_F(FullStackTest, ForemanCifWithoutPacketLossVp9) {
+ ForemanCifWithoutPacketLoss("VP9");
+}
+
+TEST_F(FullStackTest, ForemanCifPlr5Vp9) {
+ ForemanCifPlr5("VP9");
+}
+
TEST_F(FullStackTest, ParisQcifWithoutPacketLoss) {
VideoQualityTest::Params paris_qcif = {
{176, 144, 30, 300000, 300000, 300000, "VP8", 1},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698