mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
RtpPacketInfo
: deprecated ctors and getter removed
Bug: webrtc:10739, b/246753278 Change-Id: I04d8a7886a7a1be7e155300a0c0ff3266fe6f28b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/275944 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38152}
This commit is contained in:
parent
a18144182d
commit
8eeb9b03a8
2 changed files with 0 additions and 53 deletions
|
@ -27,20 +27,6 @@ RtpPacketInfo::RtpPacketInfo(uint32_t ssrc,
|
|||
rtp_timestamp_(rtp_timestamp),
|
||||
receive_time_(receive_time) {}
|
||||
|
||||
RtpPacketInfo::RtpPacketInfo(
|
||||
uint32_t ssrc,
|
||||
std::vector<uint32_t> csrcs,
|
||||
uint32_t rtp_timestamp,
|
||||
absl::optional<uint8_t> audio_level,
|
||||
absl::optional<AbsoluteCaptureTime> absolute_capture_time,
|
||||
Timestamp receive_time)
|
||||
: ssrc_(ssrc),
|
||||
csrcs_(std::move(csrcs)),
|
||||
rtp_timestamp_(rtp_timestamp),
|
||||
receive_time_(receive_time),
|
||||
audio_level_(audio_level),
|
||||
absolute_capture_time_(absolute_capture_time) {}
|
||||
|
||||
RtpPacketInfo::RtpPacketInfo(const RTPHeader& rtp_header,
|
||||
Timestamp receive_time)
|
||||
: ssrc_(rtp_header.ssrc),
|
||||
|
@ -58,23 +44,6 @@ RtpPacketInfo::RtpPacketInfo(const RTPHeader& rtp_header,
|
|||
absolute_capture_time_ = extension.absolute_capture_time;
|
||||
}
|
||||
|
||||
RtpPacketInfo::RtpPacketInfo(
|
||||
uint32_t ssrc,
|
||||
std::vector<uint32_t> csrcs,
|
||||
uint32_t rtp_timestamp,
|
||||
absl::optional<uint8_t> audio_level,
|
||||
absl::optional<AbsoluteCaptureTime> absolute_capture_time,
|
||||
int64_t receive_time_ms)
|
||||
: RtpPacketInfo(ssrc,
|
||||
csrcs,
|
||||
rtp_timestamp,
|
||||
audio_level,
|
||||
absolute_capture_time,
|
||||
Timestamp::Millis(receive_time_ms)) {}
|
||||
RtpPacketInfo::RtpPacketInfo(const RTPHeader& rtp_header,
|
||||
int64_t receive_time_ms)
|
||||
: RtpPacketInfo(rtp_header, Timestamp::Millis(receive_time_ms)) {}
|
||||
|
||||
bool operator==(const RtpPacketInfo& lhs, const RtpPacketInfo& rhs) {
|
||||
return (lhs.ssrc() == rhs.ssrc()) && (lhs.csrcs() == rhs.csrcs()) &&
|
||||
(lhs.rtp_timestamp() == rhs.rtp_timestamp()) &&
|
||||
|
|
|
@ -37,27 +37,8 @@ class RTC_EXPORT RtpPacketInfo {
|
|||
uint32_t rtp_timestamp,
|
||||
Timestamp receive_time);
|
||||
|
||||
// TODO(bugs.webrtc.org/12722): Deprecated, remove once downstream projects
|
||||
// are updated.
|
||||
RtpPacketInfo(uint32_t ssrc,
|
||||
std::vector<uint32_t> csrcs,
|
||||
uint32_t rtp_timestamp,
|
||||
absl::optional<uint8_t> audio_level,
|
||||
absl::optional<AbsoluteCaptureTime> absolute_capture_time,
|
||||
Timestamp receive_time);
|
||||
|
||||
RtpPacketInfo(const RTPHeader& rtp_header, Timestamp receive_time);
|
||||
|
||||
// TODO(bugs.webrtc.org/12722): Deprecated, remove once downstream projects
|
||||
// are updated.
|
||||
RtpPacketInfo(uint32_t ssrc,
|
||||
std::vector<uint32_t> csrcs,
|
||||
uint32_t rtp_timestamp,
|
||||
absl::optional<uint8_t> audio_level,
|
||||
absl::optional<AbsoluteCaptureTime> absolute_capture_time,
|
||||
int64_t receive_time_ms);
|
||||
RtpPacketInfo(const RTPHeader& rtp_header, int64_t receive_time_ms);
|
||||
|
||||
RtpPacketInfo(const RtpPacketInfo& other) = default;
|
||||
RtpPacketInfo(RtpPacketInfo&& other) = default;
|
||||
RtpPacketInfo& operator=(const RtpPacketInfo& other) = default;
|
||||
|
@ -74,9 +55,6 @@ class RTC_EXPORT RtpPacketInfo {
|
|||
|
||||
Timestamp receive_time() const { return receive_time_; }
|
||||
void set_receive_time(Timestamp value) { receive_time_ = value; }
|
||||
// TODO(bugs.webrtc.org/12722): Deprecated, remove once downstream projects
|
||||
// are updated.
|
||||
int64_t receive_time_ms() const { return receive_time_.ms(); }
|
||||
|
||||
absl::optional<uint8_t> audio_level() const { return audio_level_; }
|
||||
RtpPacketInfo& set_audio_level(absl::optional<uint8_t> value) {
|
||||
|
|
Loading…
Reference in a new issue