Chromium Code Reviews| Index: modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc |
| diff --git a/modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc b/modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc |
| index e6db027e1d8d22e4a251e37053f42a61173eda3c..eac27a7317d99804f9045cf3e45c8b56f93ae058 100644 |
| --- a/modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc |
| +++ b/modules/video_coding/codecs/test/videoprocessor_integrationtest_openh264.cc |
| @@ -67,8 +67,33 @@ TEST_F(VideoProcessorIntegrationTestOpenH264, Process0PercentPacketLossH264) { |
| QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70); |
| - ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, &quality_thresholds, |
| - kNoVisualizationParams); |
| + ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, |
| + &quality_thresholds, nullptr, kNoVisualizationParams); |
| +} |
| + |
| +// H264: Enable SingleNalUnit packetization mode. Encoder should split |
| +// large frames into multiple slices and limit length of NAL units. |
| +TEST_F(VideoProcessorIntegrationTestOpenH264, ProcessNoLossSingleNalUnitH264) { |
|
brandtr
2017/09/26 09:19:13
'ProcessNoLossSingleNalUnit' (see above).
ssilkin
2017/09/26 11:07:05
Done.
|
| + config_.packetization_mode = H264PacketizationMode::SingleNalUnit; |
| + config_.networking_config.max_payload_size_in_bytes = 500; |
| + SetCodecSettings(&config_, kVideoCodecH264, 1, false, false, true, false, |
| + kResilienceOn, kCifWidth, kCifHeight); |
| + |
| + RateProfile rate_profile; |
| + SetRateProfile(&rate_profile, 0, 500, 30, 0); |
| + rate_profile.frame_index_rate_update[1] = kNumFrames + 1; |
| + rate_profile.num_frames = kNumFrames; |
| + |
| + std::vector<RateControlThresholds> rc_thresholds; |
| + AddRateControlThresholds(2, 60, 30, 10, 20, 0, 1, &rc_thresholds); |
| + |
| + QualityThresholds quality_thresholds(35.0, 25.0, 0.93, 0.70); |
| + |
| + BitstreamThresholds bs_thresholds( |
| + config_.networking_config.max_payload_size_in_bytes); |
| + |
| + ProcessFramesAndMaybeVerify(rate_profile, &rc_thresholds, |
| + &quality_thresholds, &bs_thresholds, kNoVisualizationParams); |
|
hbos
2017/09/25 16:13:41
nit: 2 more spaces to the indentation here, git cl
ssilkin
2017/09/26 09:17:52
Done.
|
| } |
| #endif // defined(WEBRTC_USE_H264) |