Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/modules/rtp_rtcp/include/rtp_rtcp.h

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // ************************************************************************** 103 // **************************************************************************
104 // Sender 104 // Sender
105 // ************************************************************************** 105 // **************************************************************************
106 106
107 // Sets MTU. 107 // Sets MTU.
108 // |size| - Max transfer unit in bytes, default is 1500. 108 // |size| - Max transfer unit in bytes, default is 1500.
109 // Returns -1 on failure else 0. 109 // Returns -1 on failure else 0.
110 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0; 110 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0;
111 111
112 // Sets transtport overhead. Default is IPv4 and UDP with no encryption. 112 // Sets transtport overhead per packet.
113 // |tcp| - true for TCP false UDP.
114 // |ipv6| - true for IP version 6 false for version 4.
115 // |authentication_overhead| - number of bytes to leave for an authentication
116 // header.
117 // Returns -1 on failure else 0 113 // Returns -1 on failure else 0
118 virtual int32_t SetTransportOverhead(bool tcp, 114 virtual int32_t SetTransportOverhead(
minyue-webrtc 2016/10/20 09:45:22 Removing/Modifying API may require to send some no
the sun 2016/10/20 10:40:52 Sorry, I didn't think about the rtprtcp module bei
119 bool ipv6, 115 int transport_overhead_per_packet_byte) = 0;
120 uint8_t authentication_overhead = 0) = 0;
121 116
122 // Returns max payload length, which is a combination of the configuration 117 // Returns max payload length, which is a combination of the configuration
123 // MaxTransferUnit and TransportOverhead. 118 // MaxTransferUnit and TransportOverhead.
124 // Does not account for RTP headers and FEC/ULP/RED overhead (when FEC is 119 // Does not account for RTP headers and FEC/ULP/RED overhead (when FEC is
125 // enabled). 120 // enabled).
126 virtual uint16_t MaxPayloadLength() const = 0; 121 virtual uint16_t MaxPayloadLength() const = 0;
127 122
128 // Returns max data payload length, which is a combination of the 123 // Returns max data payload length, which is a combination of the
129 // configuration MaxTransferUnit, headers and TransportOverhead. 124 // configuration MaxTransferUnit, headers and TransportOverhead.
130 // Takes into account RTP headers and FEC/ULP/RED overhead (when FEC is 125 // Takes into account RTP headers and FEC/ULP/RED overhead (when FEC is
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 466 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
472 467
473 // Sends a request for a keyframe. 468 // Sends a request for a keyframe.
474 // Returns -1 on failure else 0. 469 // Returns -1 on failure else 0.
475 virtual int32_t RequestKeyFrame() = 0; 470 virtual int32_t RequestKeyFrame() = 0;
476 }; 471 };
477 472
478 } // namespace webrtc 473 } // namespace webrtc
479 474
480 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 475 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698