| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 callback.Matches(ssrc, expected); | 1208 callback.Matches(ssrc, expected); |
| 1209 | 1209 |
| 1210 // Send padding. | 1210 // Send padding. |
| 1211 rtp_sender_->TimeToSendPadding(kMaxPaddingSize, PacketInfo::kNotAProbe); | 1211 rtp_sender_->TimeToSendPadding(kMaxPaddingSize, PacketInfo::kNotAProbe); |
| 1212 expected.transmitted.payload_bytes = 12; | 1212 expected.transmitted.payload_bytes = 12; |
| 1213 expected.transmitted.header_bytes = 36; | 1213 expected.transmitted.header_bytes = 36; |
| 1214 expected.transmitted.padding_bytes = kMaxPaddingSize; | 1214 expected.transmitted.padding_bytes = kMaxPaddingSize; |
| 1215 expected.transmitted.packets = 3; | 1215 expected.transmitted.packets = 3; |
| 1216 callback.Matches(ssrc, expected); | 1216 callback.Matches(ssrc, expected); |
| 1217 | 1217 |
| 1218 // Send FEC. | 1218 // Send ULPFEC. |
| 1219 rtp_sender_->SetUlpfecConfig(true, kRedPayloadType, kUlpfecPayloadType); | 1219 rtp_sender_->SetUlpfecConfig(kRedPayloadType, kUlpfecPayloadType); |
| 1220 FecProtectionParams fec_params; | 1220 FecProtectionParams fec_params; |
| 1221 fec_params.fec_mask_type = kFecMaskRandom; | 1221 fec_params.fec_mask_type = kFecMaskRandom; |
| 1222 fec_params.fec_rate = 1; | 1222 fec_params.fec_rate = 1; |
| 1223 fec_params.max_fec_frames = 1; | 1223 fec_params.max_fec_frames = 1; |
| 1224 rtp_sender_->SetFecParameters(&fec_params, &fec_params); | 1224 rtp_sender_->SetFecParameters(&fec_params, &fec_params); |
| 1225 ASSERT_TRUE(rtp_sender_->SendOutgoingData( | 1225 ASSERT_TRUE(rtp_sender_->SendOutgoingData( |
| 1226 kVideoFrameDelta, payload_type, 1234, 4321, payload, | 1226 kVideoFrameDelta, payload_type, 1234, 4321, payload, |
| 1227 sizeof(payload), nullptr, nullptr, nullptr)); | 1227 sizeof(payload), nullptr, nullptr, nullptr)); |
| 1228 expected.transmitted.payload_bytes = 40; | 1228 expected.transmitted.payload_bytes = 40; |
| 1229 expected.transmitted.header_bytes = 60; | 1229 expected.transmitted.header_bytes = 60; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 0)); | 1475 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 0)); |
| 1476 EXPECT_EQ(kVideoRotation_90, | 1476 EXPECT_EQ(kVideoRotation_90, |
| 1477 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 1)); | 1477 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 1)); |
| 1478 EXPECT_EQ(kVideoRotation_180, | 1478 EXPECT_EQ(kVideoRotation_180, |
| 1479 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 2)); | 1479 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 2)); |
| 1480 EXPECT_EQ(kVideoRotation_270, | 1480 EXPECT_EQ(kVideoRotation_270, |
| 1481 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 3)); | 1481 ConvertCVOByteToVideoRotation(flip_bit | camera_bit | 3)); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 } // namespace webrtc | 1484 } // namespace webrtc |
| OLD | NEW |