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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const RTPVideoHeader* video_header); | 56 const RTPVideoHeader* video_header); |
57 | 57 |
58 int32_t SendRTPIntraRequest(); | 58 int32_t SendRTPIntraRequest(); |
59 | 59 |
60 void SetVideoCodecType(RtpVideoCodecTypes type); | 60 void SetVideoCodecType(RtpVideoCodecTypes type); |
61 | 61 |
62 // ULPFEC. | 62 // ULPFEC. |
63 void SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type); | 63 void SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type); |
64 void GetUlpfecConfig(int* red_payload_type, int* ulpfec_payload_type) const; | 64 void GetUlpfecConfig(int* red_payload_type, int* ulpfec_payload_type) const; |
65 | 65 |
66 void SetFecParameters(const FecProtectionParams* delta_params, | 66 void SetFecParameters(const FecProtectionParams& delta_params, |
67 const FecProtectionParams* key_params); | 67 const FecProtectionParams& key_params); |
68 | 68 |
69 uint32_t VideoBitrateSent() const; | 69 uint32_t VideoBitrateSent() const; |
70 uint32_t FecOverheadRate() const; | 70 uint32_t FecOverheadRate() const; |
71 | 71 |
72 int SelectiveRetransmissions() const; | 72 int SelectiveRetransmissions() const; |
73 void SetSelectiveRetransmissions(uint8_t settings); | 73 void SetSelectiveRetransmissions(uint8_t settings); |
74 | 74 |
75 private: | 75 private: |
76 void SendVideoPacket(std::unique_ptr<RtpPacketToSend> packet, | 76 void SendVideoPacket(std::unique_ptr<RtpPacketToSend> packet, |
77 StorageType storage); | 77 StorageType storage); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // and any padding overhead. | 111 // and any padding overhead. |
112 RateStatistics fec_bitrate_ GUARDED_BY(stats_crit_); | 112 RateStatistics fec_bitrate_ GUARDED_BY(stats_crit_); |
113 // Bitrate used for video payload and RTP headers. | 113 // Bitrate used for video payload and RTP headers. |
114 RateStatistics video_bitrate_ GUARDED_BY(stats_crit_); | 114 RateStatistics video_bitrate_ GUARDED_BY(stats_crit_); |
115 OneTimeEvent first_frame_sent_; | 115 OneTimeEvent first_frame_sent_; |
116 }; | 116 }; |
117 | 117 |
118 } // namespace webrtc | 118 } // namespace webrtc |
119 | 119 |
120 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_VIDEO_H_ | 120 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_VIDEO_H_ |
OLD | NEW |