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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 years, 1 month 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
« no previous file with comments | « webrtc/media/sctp/sctpdataengine.h ('k') | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // |size| - Max transfer unit in bytes, default is 1500. 109 // |size| - Max transfer unit in bytes, default is 1500.
110 // Returns -1 on failure else 0. 110 // Returns -1 on failure else 0.
111 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0; 111 virtual int32_t SetMaxTransferUnit(uint16_t size) = 0;
112 112
113 // Sets transtport overhead. Default is IPv4 and UDP with no encryption. 113 // Sets transtport overhead. Default is IPv4 and UDP with no encryption.
114 // |tcp| - true for TCP false UDP. 114 // |tcp| - true for TCP false UDP.
115 // |ipv6| - true for IP version 6 false for version 4. 115 // |ipv6| - true for IP version 6 false for version 4.
116 // |authentication_overhead| - number of bytes to leave for an authentication 116 // |authentication_overhead| - number of bytes to leave for an authentication
117 // header. 117 // header.
118 // Returns -1 on failure else 0 118 // Returns -1 on failure else 0
119 // TODO(michaelt): deprecate the function.
119 virtual int32_t SetTransportOverhead(bool tcp, 120 virtual int32_t SetTransportOverhead(bool tcp,
120 bool ipv6, 121 bool ipv6,
121 uint8_t authentication_overhead = 0) = 0; 122 uint8_t authentication_overhead = 0) = 0;
122 123
124 // Sets transtport overhead per packet.
125 virtual void SetTransportOverhead(int transport_overhead_per_packet) = 0;
126
123 // Returns max payload length, which is a combination of the configuration 127 // Returns max payload length, which is a combination of the configuration
124 // MaxTransferUnit and TransportOverhead. 128 // MaxTransferUnit and TransportOverhead.
125 // Does not account for RTP headers and FEC/ULP/RED overhead (when FEC is 129 // Does not account for RTP headers and FEC/ULP/RED overhead (when FEC is
126 // enabled). 130 // enabled).
127 virtual uint16_t MaxPayloadLength() const = 0; 131 virtual uint16_t MaxPayloadLength() const = 0;
128 132
129 // Returns max data payload length, which is a combination of the 133 // Returns max data payload length, which is a combination of the
130 // configuration MaxTransferUnit, headers and TransportOverhead. 134 // configuration MaxTransferUnit, headers and TransportOverhead.
131 // Takes into account RTP headers and FEC/ULP/RED overhead (when FEC is 135 // Takes into account RTP headers and FEC/ULP/RED overhead (when FEC is
132 // enabled). 136 // enabled).
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0; 466 virtual int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) = 0;
463 467
464 // Sends a request for a keyframe. 468 // Sends a request for a keyframe.
465 // Returns -1 on failure else 0. 469 // Returns -1 on failure else 0.
466 virtual int32_t RequestKeyFrame() = 0; 470 virtual int32_t RequestKeyFrame() = 0;
467 }; 471 };
468 472
469 } // namespace webrtc 473 } // namespace webrtc
470 474
471 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_ 475 #endif // WEBRTC_MODULES_RTP_RTCP_INCLUDE_RTP_RTCP_H_
OLDNEW
« no previous file with comments | « webrtc/media/sctp/sctpdataengine.h ('k') | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698