Delete RtpRtcp methods SetKeyFrameRequestMethod and RequestKeyFrame
These are replaced with the methods SendPictureLossIndication and SendFullIntraRequest, added in cl https://webrtc-review.googlesource.com/c/src/+/140043. Also delete the corresponding state variable RtpRtcpImpl::key_frame_req_method_, the enum KeyFrameRequestMethod, and the nearby unused enum RtpRtcpPacketType. Bug: None Change-Id: I1ac2e4ce6dbe20d1d1cbb3d5b2256ea55b341a57 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141403 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28221}
This commit is contained in:
@ -90,7 +90,6 @@ ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration)
|
||||
packet_overhead_(28), // IPV4 UDP.
|
||||
nack_last_time_sent_full_ms_(0),
|
||||
nack_last_seq_number_sent_(0),
|
||||
key_frame_req_method_(kKeyFrameReqPliRtcp),
|
||||
remote_bitrate_(configuration.remote_bitrate_estimator),
|
||||
ack_observer_(configuration.ack_observer),
|
||||
rtt_stats_(configuration.rtt_stats),
|
||||
@ -708,24 +707,6 @@ bool ModuleRtpRtcpImpl::SendFeedbackPacket(
|
||||
return rtcp_sender_.SendFeedbackPacket(packet);
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::SetKeyFrameRequestMethod(
|
||||
const KeyFrameRequestMethod method) {
|
||||
key_frame_req_method_ = method;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::RequestKeyFrame() {
|
||||
switch (key_frame_req_method_) {
|
||||
case kKeyFrameReqPliRtcp:
|
||||
SendPictureLossIndication();
|
||||
break;
|
||||
case kKeyFrameReqFirRtcp:
|
||||
SendFullIntraRequest();
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t ModuleRtpRtcpImpl::SendLossNotification(uint16_t last_decoded_seq_num,
|
||||
uint16_t last_received_seq_num,
|
||||
bool decodability_flag,
|
||||
|
||||
@ -248,13 +248,6 @@ class ModuleRtpRtcpImpl : public RtpRtcp, public RTCPReceiver::ModuleRtpRtcp {
|
||||
bool RtcpXrRrtrStatus() const override;
|
||||
|
||||
// Video part.
|
||||
|
||||
// Set method for requesting a new key frame.
|
||||
int32_t SetKeyFrameRequestMethod(KeyFrameRequestMethod method) override;
|
||||
|
||||
// Send a request for a keyframe.
|
||||
int32_t RequestKeyFrame() override;
|
||||
|
||||
int32_t SendLossNotification(uint16_t last_decoded_seq_num,
|
||||
uint16_t last_received_seq_num,
|
||||
bool decodability_flag,
|
||||
@ -327,8 +320,6 @@ class ModuleRtpRtcpImpl : public RtpRtcp, public RTCPReceiver::ModuleRtpRtcp {
|
||||
int64_t nack_last_time_sent_full_ms_;
|
||||
uint16_t nack_last_seq_number_sent_;
|
||||
|
||||
KeyFrameRequestMethod key_frame_req_method_;
|
||||
|
||||
RemoteBitrateEstimator* const remote_bitrate_;
|
||||
|
||||
RtcpAckObserver* const ack_observer_;
|
||||
|
||||
Reference in New Issue
Block a user