| Index: webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
|
| index 16c49a0f566f66f097386677455c27564b1a57d1..6510dd9d183a1f2d5e7a7428fac5242d2ede93e9 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
|
| @@ -59,14 +59,9 @@ class RTPSenderVideo {
|
|
|
| void SetVideoCodecType(RtpVideoCodecTypes type);
|
|
|
| - // FEC
|
| - void SetUlpfecConfig(bool enabled,
|
| - int red_payload_type,
|
| - int ulpfec_payload_type);
|
| -
|
| - void UlpfecConfig(bool* enabled,
|
| - int* red_payload_type,
|
| - int* ulpfec_payload_type) const;
|
| + // ULPFEC.
|
| + void SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type);
|
| + void UlpfecConfig(int* red_payload_type, int* ulpfec_payload_type) const;
|
|
|
| void SetFecParameters(const FecProtectionParams* delta_params,
|
| const FecProtectionParams* key_params);
|
| @@ -85,6 +80,14 @@ class RTPSenderVideo {
|
| StorageType media_packet_storage,
|
| bool protect);
|
|
|
| + bool red_enabled() const EXCLUSIVE_LOCKS_REQUIRED(crit_) {
|
| + return red_payload_type_ >= 0;
|
| + }
|
| +
|
| + bool ulpfec_enabled() const EXCLUSIVE_LOCKS_REQUIRED(crit_) {
|
| + return ulpfec_payload_type_ >= 0;
|
| + }
|
| +
|
| RTPSender* const rtp_sender_;
|
| Clock* const clock_;
|
|
|
| @@ -96,10 +99,9 @@ class RTPSenderVideo {
|
| int32_t retransmission_settings_ GUARDED_BY(crit_) = kRetransmitBaseLayer;
|
| VideoRotation last_rotation_ GUARDED_BY(encoder_checker_) = kVideoRotation_0;
|
|
|
| - // FEC
|
| - bool fec_enabled_ GUARDED_BY(crit_) = false;
|
| + // RED/ULPFEC.
|
| int red_payload_type_ GUARDED_BY(crit_) = -1;
|
| - int fec_payload_type_ GUARDED_BY(crit_) = -1;
|
| + int ulpfec_payload_type_ GUARDED_BY(crit_) = -1;
|
| FecProtectionParams delta_fec_params_ GUARDED_BY(crit_) = FecProtectionParams{
|
| 0, 1, kFecMaskRandom};
|
| FecProtectionParams key_fec_params_ GUARDED_BY(crit_) = FecProtectionParams{
|
|
|