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

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

Issue 2956243002: Add SetCodecSettings method for configuring VideoCodec settings. (Closed)
Patch Set: address comment Created 3 years, 6 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 | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 42f0e69e83f077f08d47e4c0f0f7ed2b1573dcbc..d0829853acb860ffc3017bc29b6d8de696262e0d 100644
--- a/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
+++ b/webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc
@@ -17,6 +17,8 @@ namespace {
// Codec settings.
const int kBitrates[] = {30, 50, 100, 200, 300, 500, 1000};
const int kFps[] = {30};
+const int kNumTemporalLayers = 1;
+const int kKeyFrameInterval = -1;
const bool kErrorConcealmentOn = false;
const bool kDenoisingOn = false;
const bool kFrameDropperOn = true;
@@ -65,13 +67,13 @@ class PlotVideoProcessorIntegrationTest
rate_profile.num_frames = kNumFramesLong;
// Codec/network settings.
- CodecParams process_settings;
- SetCodecParams(
- &process_settings, codec_type_, kHwCodec, kUseSingleCore, kPacketLoss,
- -1, // key_frame_interval
- 1, // num_temporal_layers
- kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, kSpatialResizeOn,
- kResilienceOn, width, height, filename, kVerboseLogging, kBatchMode);
+ ProcessParams process_settings(kHwCodec, kUseSingleCore, kPacketLoss,
+ kKeyFrameInterval, filename, kVerboseLogging,
+ kBatchMode);
+ SetCodecSettings(&config_, &codec_settings_, codec_type_,
+ kNumTemporalLayers, kErrorConcealmentOn, kDenoisingOn,
+ kFrameDropperOn, kSpatialResizeOn, kResilienceOn, width,
+ height);
// Use default thresholds for quality (PSNR and SSIM).
QualityThresholds quality_thresholds;
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698