| Index: webrtc/modules/rtp_rtcp/source/rtp_sender.h
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.h b/webrtc/modules/rtp_rtcp/source/rtp_sender.h
|
| index ffbcb817e709cb569da1ec09c0e5d43adfd14735..33ed8a4bb6fb2d03d08efc944c3d2f9fcbfd0120 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_sender.h
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.h
|
| @@ -46,6 +46,8 @@ class RTPSenderInterface {
|
| virtual uint32_t SSRC() const = 0;
|
| virtual uint32_t Timestamp() const = 0;
|
|
|
| + // Deprecated version of BuildRtpHeader(). |inc_sequence_number| is ignored.
|
| + // TODO(sergeyu): Remove this method.
|
| virtual int32_t BuildRTPheader(uint8_t* data_buffer,
|
| int8_t payload_type,
|
| bool marker_bit,
|
| @@ -54,6 +56,12 @@ class RTPSenderInterface {
|
| bool timestamp_provided = true,
|
| bool inc_sequence_number = true) = 0;
|
|
|
| + virtual int32_t BuildRtpHeader(uint8_t* data_buffer,
|
| + int8_t payload_type,
|
| + bool marker_bit,
|
| + uint32_t capture_timestamp,
|
| + int64_t capture_time_ms) = 0;
|
| +
|
| // This returns the expected header length taking into consideration
|
| // the optional RTP header extensions that may not be currently active.
|
| virtual size_t RtpHeaderLength() const = 0;
|
| @@ -153,7 +161,7 @@ class RTPSender : public RTPSenderInterface {
|
| const uint8_t* payload_data,
|
| size_t payload_size,
|
| const RTPFragmentationHeader* fragmentation,
|
| - const RTPVideoHeader* rtp_hdr = NULL);
|
| + const RTPVideoHeader* rtp_header);
|
|
|
| // RTP header extension
|
| int32_t SetTransmissionTimeOffset(int32_t transmission_time_offset);
|
| @@ -167,7 +175,7 @@ class RTPSender : public RTPSenderInterface {
|
|
|
| size_t RtpHeaderExtensionLength() const;
|
|
|
| - uint16_t BuildRTPHeaderExtension(uint8_t* data_buffer, bool marker_bit) const;
|
| + uint16_t BuildRtpHeaderExtension(uint8_t* data_buffer, bool marker_bit) const;
|
|
|
| uint8_t BuildTransmissionTimeOffsetExtension(uint8_t *data_buffer) const;
|
| uint8_t BuildAudioLevelExtension(uint8_t* data_buffer) const;
|
| @@ -247,8 +255,13 @@ class RTPSender : public RTPSenderInterface {
|
| bool marker_bit,
|
| uint32_t capture_timestamp,
|
| int64_t capture_time_ms,
|
| - const bool timestamp_provided = true,
|
| - const bool inc_sequence_number = true) override;
|
| + bool timestamp_provided = true,
|
| + bool inc_sequence_number = true) override;
|
| + int32_t BuildRtpHeader(uint8_t* data_buffer,
|
| + int8_t payload_type,
|
| + bool marker_bit,
|
| + uint32_t capture_timestamp,
|
| + int64_t capture_time_ms) override;
|
|
|
| size_t RtpHeaderLength() const override;
|
| uint16_t AllocateSequenceNumber(uint16_t packets_to_send) override;
|
| @@ -304,7 +317,6 @@ class RTPSender : public RTPSenderInterface {
|
| bool timestamp_provided,
|
| uint32_t timestamp,
|
| int64_t capture_time_ms);
|
| -
|
| size_t SendPadData(size_t bytes,
|
| bool timestamp_provided,
|
| uint32_t timestamp,
|
|
|