Remove deprecated functions in RTPSenderVideo
Bug: webrtc:10809 Change-Id: I7f5b175b43f3e79c0400b80c7278723d6036d8ee Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/156567 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29463}
This commit is contained in:
committed by
Commit Bot
parent
fbde32e596
commit
0deef725b9
@ -102,43 +102,6 @@ class RTPSenderVideo {
|
||||
const RTPFragmentationHeader* fragmentation,
|
||||
RTPVideoHeader video_header,
|
||||
absl::optional<int64_t> expected_retransmission_time_ms);
|
||||
|
||||
RTC_DEPRECATED
|
||||
bool SendVideo(VideoFrameType frame_type,
|
||||
int8_t payload_type,
|
||||
absl::optional<VideoCodecType> codec_type,
|
||||
uint32_t rtp_timestamp,
|
||||
int64_t capture_time_ms,
|
||||
const uint8_t* payload_data,
|
||||
size_t payload_size,
|
||||
const RTPFragmentationHeader* fragmentation,
|
||||
const RTPVideoHeader* video_header,
|
||||
absl::optional<int64_t> expected_retransmission_time_ms);
|
||||
|
||||
// TODO(bugs.webrtc.org/10809): Remove when downstream usage is gone.
|
||||
RTC_DEPRECATED
|
||||
bool SendVideo(VideoFrameType frame_type,
|
||||
int8_t payload_type,
|
||||
uint32_t capture_timestamp,
|
||||
int64_t capture_time_ms,
|
||||
const uint8_t* payload_data,
|
||||
size_t payload_size,
|
||||
const RTPFragmentationHeader* fragmentation,
|
||||
const RTPVideoHeader* video_header,
|
||||
absl::optional<int64_t> expected_retransmission_time_ms);
|
||||
|
||||
// TODO(bugs.webrtc.org/10809): Remove when downstream usage is gone.
|
||||
void RegisterPayloadType(int8_t payload_type,
|
||||
absl::string_view payload_name,
|
||||
bool raw_payload);
|
||||
|
||||
// Set RED and ULPFEC payload types. A payload type of -1 means that the
|
||||
// corresponding feature is turned off. Note that we DO NOT support enabling
|
||||
// ULPFEC without enabling RED, and RED is only ever used when ULPFEC is
|
||||
// enabled.
|
||||
// TODO(bugs.webrtc.org/10809): Remove when downstream usage is gone.
|
||||
void SetUlpfecConfig(int red_payload_type, int ulpfec_payload_type);
|
||||
|
||||
// FlexFEC/ULPFEC.
|
||||
// Set FEC rates, max frames before FEC is sent, and type of FEC masks.
|
||||
// Returns false on failure.
|
||||
@ -182,12 +145,13 @@ class RTPSenderVideo {
|
||||
int64_t last_frame_time_ms;
|
||||
};
|
||||
|
||||
size_t CalculateFecPacketOverhead() const RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_);
|
||||
size_t FecPacketOverhead() const RTC_EXCLUSIVE_LOCKS_REQUIRED(send_checker_);
|
||||
|
||||
void AppendAsRedMaybeWithUlpfec(
|
||||
std::unique_ptr<RtpPacketToSend> media_packet,
|
||||
bool protect_media_packet,
|
||||
std::vector<std::unique_ptr<RtpPacketToSend>>* packets);
|
||||
std::vector<std::unique_ptr<RtpPacketToSend>>* packets)
|
||||
RTC_EXCLUSIVE_LOCKS_REQUIRED(send_checker_);
|
||||
|
||||
// TODO(brandtr): Remove the FlexFEC functions when FlexfecSender has been
|
||||
// moved to PacedSender.
|
||||
@ -198,13 +162,9 @@ class RTPSenderVideo {
|
||||
std::vector<std::unique_ptr<RtpPacketToSend>> packets,
|
||||
size_t unpacketized_payload_size);
|
||||
|
||||
bool red_enabled() const RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_) {
|
||||
return red_payload_type_.has_value();
|
||||
}
|
||||
bool red_enabled() const { return red_payload_type_.has_value(); }
|
||||
|
||||
bool ulpfec_enabled() const RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_) {
|
||||
return ulpfec_payload_type_.has_value();
|
||||
}
|
||||
bool ulpfec_enabled() const { return ulpfec_payload_type_.has_value(); }
|
||||
|
||||
bool flexfec_enabled() const { return flexfec_sender_ != nullptr; }
|
||||
|
||||
@ -215,12 +175,6 @@ class RTPSenderVideo {
|
||||
RTPSender* const rtp_sender_;
|
||||
Clock* const clock_;
|
||||
|
||||
// Maps payload type to codec type, for packetization.
|
||||
// TODO(bugs.webrtc.org/10809): Remove when downstream usage is gone.
|
||||
rtc::CriticalSection payload_type_crit_;
|
||||
std::map<int8_t, absl::optional<VideoCodecType>> payload_type_map_
|
||||
RTC_GUARDED_BY(payload_type_crit_);
|
||||
|
||||
const int32_t retransmission_settings_;
|
||||
|
||||
// These members should only be accessed from within SendVideo() to avoid
|
||||
@ -246,9 +200,9 @@ class RTPSenderVideo {
|
||||
RTC_PT_GUARDED_BY(crit_);
|
||||
|
||||
// RED/ULPFEC.
|
||||
absl::optional<int> red_payload_type_ RTC_GUARDED_BY(crit_);
|
||||
absl::optional<int> ulpfec_payload_type_ RTC_GUARDED_BY(crit_);
|
||||
UlpfecGenerator ulpfec_generator_ RTC_GUARDED_BY(crit_);
|
||||
const absl::optional<int> red_payload_type_;
|
||||
const absl::optional<int> ulpfec_payload_type_;
|
||||
UlpfecGenerator ulpfec_generator_ RTC_GUARDED_BY(send_checker_);
|
||||
|
||||
// FlexFEC.
|
||||
FlexfecSender* const flexfec_sender_;
|
||||
|
||||
Reference in New Issue
Block a user