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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc

Issue 3008913002: Split up VideoProcessorIntegrationTest files. (Closed)
Patch Set: asapersson comments 1. Created 3 years, 3 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest_libvpx.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest .h"
12
13 #include <vector>
14
15 namespace webrtc {
16 namespace test {
17
18 #if defined(WEBRTC_USE_H264)
19
20 namespace {
21
22 // Test settings.
23 // Only allow encoder/decoder to use single core, for predictability.
24 const bool kUseSingleCore = true;
25 const bool kVerboseLogging = false;
26 const bool kHwCodec = false;
27
28 // Codec settings.
29 const bool kResilienceOn = true;
30
31 // Default sequence is foreman (CIF): may be better to use VGA for resize test.
32 const int kCifWidth = 352;
33 const int kCifHeight = 288;
34 const char kForemanCif[] = "foreman_cif";
35 const int kNumFrames = 100;
36
37 const std::nullptr_t kNoVisualizationParams = nullptr;
38
39 } // namespace
40
41 // H264: Run with no packet loss and fixed bitrate. Quality should be very high.
42 // Note(hbos): The PacketManipulatorImpl code used to simulate packet loss in
43 // these unittests appears to drop "packets" in a way that is not compatible
44 // with H264. Therefore ProcessXPercentPacketLossH264, X != 0, unittests have
45 // not been added.
46 TEST_F(VideoProcessorIntegrationTest, Process0PercentPacketLossH264) {
47 SetTestConfig(&config_, kHwCodec, kUseSingleCore, 0.0f, kForemanCif,
48 kVerboseLogging);
49 SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false,
50 kResilienceOn, kCifWidth, kCifHeight);
51
52 RateProfile rate_profile;
53 SetRateProfile(&rate_profile, 0, 500, 30, 0);
54 rate_profile.frame_index_rate_update[1] = kNumFrames + 1;
55 rate_profile.num_frames = kNumFrames;
56
57 std::vector<RateControlThresholds> rc_thresholds;
58 AddRateControlThresholds(2, 60, 20, 10, 20, 0, 1, &rc_thresholds);
59
60 QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70);
61
62 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
63 kNoVisualizationParams);
64 }
65
66 #endif // defined(WEBRTC_USE_H264)
67
68 } // namespace test
69 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest_libvpx.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698