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

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

Issue 3009963002: Add ability to instantiate VideoEncoderSoftwareFallback in VP tests. (Closed)
Patch Set: srte 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
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 25 matching lines...) Expand all
36 protected: 36 protected:
37 VideoProcessorIntegrationTestOpenH264() { 37 VideoProcessorIntegrationTestOpenH264() {
38 config_.filename = "foreman_cif"; 38 config_.filename = "foreman_cif";
39 config_.input_filename = ResourcePath(config_.filename, "yuv"); 39 config_.input_filename = ResourcePath(config_.filename, "yuv");
40 config_.output_filename = 40 config_.output_filename =
41 TempFilename(OutputPath(), "videoprocessor_integrationtest_libvpx"); 41 TempFilename(OutputPath(), "videoprocessor_integrationtest_libvpx");
42 config_.networking_config.packet_loss_probability = 0.0; 42 config_.networking_config.packet_loss_probability = 0.0;
43 // Only allow encoder/decoder to use single core, for predictability. 43 // Only allow encoder/decoder to use single core, for predictability.
44 config_.use_single_core = true; 44 config_.use_single_core = true;
45 config_.verbose = false; 45 config_.verbose = false;
46 config_.hw_codec = false; 46 config_.hw_encoder = false;
47 config_.hw_decoder = false;
47 } 48 }
48 }; 49 };
49 50
50 // H264: Run with no packet loss and fixed bitrate. Quality should be very high. 51 // H264: Run with no packet loss and fixed bitrate. Quality should be very high.
51 // Note(hbos): The PacketManipulatorImpl code used to simulate packet loss in 52 // Note(hbos): The PacketManipulatorImpl code used to simulate packet loss in
52 // these unittests appears to drop "packets" in a way that is not compatible 53 // these unittests appears to drop "packets" in a way that is not compatible
53 // with H264. Therefore ProcessXPercentPacketLossH264, X != 0, unittests have 54 // with H264. Therefore ProcessXPercentPacketLossH264, X != 0, unittests have
54 // not been added. 55 // not been added.
55 TEST_F(VideoProcessorIntegrationTestOpenH264, Process0PercentPacketLossH264) { 56 TEST_F(VideoProcessorIntegrationTestOpenH264, Process0PercentPacketLossH264) {
56 SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false, 57 SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false,
(...skipping 10 matching lines...) Expand all
67 QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70); 68 QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70);
68 69
69 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds, 70 ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds,
70 kNoVisualizationParams); 71 kNoVisualizationParams);
71 } 72 }
72 73
73 #endif // defined(WEBRTC_USE_H264) 74 #endif // defined(WEBRTC_USE_H264)
74 75
75 } // namespace test 76 } // namespace test
76 } // namespace webrtc 77 } // 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