| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 SetRateProfile(&rate_profile, | 61 SetRateProfile(&rate_profile, |
| 62 0, // update_index | 62 0, // update_index |
| 63 bitrate_, framerate_, | 63 bitrate_, framerate_, |
| 64 0); // frame_index_rate_update | 64 0); // frame_index_rate_update |
| 65 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1; | 65 rate_profile.frame_index_rate_update[1] = kNumFramesLong + 1; |
| 66 rate_profile.num_frames = kNumFramesLong; | 66 rate_profile.num_frames = kNumFramesLong; |
| 67 | 67 |
| 68 // Codec/network settings. | 68 // Codec/network settings. |
| 69 SetProcessParams(&config_, kHwCodec, kUseSingleCore, kPacketLoss, | 69 SetProcessParams(&config_, kHwCodec, kUseSingleCore, kPacketLoss, |
| 70 kKeyFrameInterval, filename, kVerboseLogging, kBatchMode); | 70 kKeyFrameInterval, filename, kVerboseLogging, kBatchMode); |
| 71 SetCodecSettings(&config_, &codec_settings_, codec_type_, | 71 SetCodecSettings(&config_, codec_type_, kNumTemporalLayers, |
| 72 kNumTemporalLayers, kErrorConcealmentOn, kDenoisingOn, | 72 kErrorConcealmentOn, kDenoisingOn, kFrameDropperOn, |
| 73 kFrameDropperOn, kSpatialResizeOn, kResilienceOn, width, | 73 kSpatialResizeOn, kResilienceOn, width, height); |
| 74 height); | |
| 75 | 74 |
| 76 // Use default thresholds for quality (PSNR and SSIM). | 75 // Use default thresholds for quality (PSNR and SSIM). |
| 77 QualityThresholds quality_thresholds; | 76 QualityThresholds quality_thresholds; |
| 78 | 77 |
| 79 // Use very loose thresholds for rate control, so even poor HW codecs will | 78 // Use very loose thresholds for rate control, so even poor HW codecs will |
| 80 // pass the requirements. | 79 // pass the requirements. |
| 81 RateControlThresholds rc_thresholds[1]; | 80 RateControlThresholds rc_thresholds[1]; |
| 82 // clang-format off | 81 // clang-format off |
| 83 SetRateControlThresholds( | 82 SetRateControlThresholds( |
| 84 rc_thresholds, | 83 rc_thresholds, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) { | 122 TEST_P(PlotVideoProcessorIntegrationTest, Process320x240) { |
| 124 RunTest(320, 240, "foreman_320x240"); | 123 RunTest(320, 240, "foreman_320x240"); |
| 125 } | 124 } |
| 126 | 125 |
| 127 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) { | 126 TEST_P(PlotVideoProcessorIntegrationTest, Process352x288) { |
| 128 RunTest(352, 288, "foreman_cif"); | 127 RunTest(352, 288, "foreman_cif"); |
| 129 } | 128 } |
| 130 | 129 |
| 131 } // namespace test | 130 } // namespace test |
| 132 } // namespace webrtc | 131 } // namespace webrtc |
| OLD | NEW |