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

Unified Diff: webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc

Issue 2695653002: Add support for creating HW codecs in VideoProcessor tests. (Closed)
Patch Set: Rebase fixes. Created 3 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
Index: webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
diff --git a/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc b/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
index d4152e0c7491108dd26ccee08699116d7f9a0356..580809b9d2550452323787bf4c6ed7cb74c0e677 100644
--- a/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
+++ b/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
@@ -21,6 +21,7 @@ const bool kDenoisingOn = false;
const bool kFrameDropperOn = true;
const bool kSpatialResizeOn = false;
const VideoCodecType kVideoCodecType[] = {kVideoCodecVP8};
+const bool kHwCodec = false;
// Packet loss probability [0.0, 1.0].
const float kPacketLoss = 0.0f;
@@ -52,7 +53,7 @@ class PlotVideoProcessorIntegrationTest
rate_profile.num_frames = kNumFramesLong;
// Codec/network settings.
CodecConfigPars process_settings;
- SetCodecParameters(&process_settings, codec_type_, kPacketLoss,
+ SetCodecParameters(&process_settings, codec_type_, kHwCodec, kPacketLoss,
-1, // key_frame_interval
1, // num_temporal_layers
kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn,
@@ -88,19 +89,19 @@ INSTANTIATE_TEST_CASE_P(
::testing::ValuesIn(kVideoCodecType)));
TEST_P(PlotVideoProcessorIntegrationTest, ProcessSQCif) {
- RunTest(128, 96, "foreman_128x96");
+ RunTest(128, 96, "foreman_sqcif");
}
TEST_P(PlotVideoProcessorIntegrationTest, ProcessQQVga) {
- RunTest(160, 120, "foreman_160x120");
+ RunTest(160, 120, "foreman_qqvga");
}
TEST_P(PlotVideoProcessorIntegrationTest, ProcessQCif) {
- RunTest(176, 144, "foreman_176x144");
+ RunTest(176, 144, "foreman_qcif");
}
TEST_P(PlotVideoProcessorIntegrationTest, ProcessQVga) {
- RunTest(320, 240, "foreman_320x240");
+ RunTest(320, 240, "foreman_qvga");
}
TEST_P(PlotVideoProcessorIntegrationTest, ProcessCif) {

Powered by Google App Engine
This is Rietveld 408576698