Delete unused methods from vcm::VideoCodingModule.
Bug: None Change-Id: Ia6871d486b507a08f4303d1f0da00829afbebb0e Reviewed-on: https://webrtc-review.googlesource.com/62101 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22469}
This commit is contained in:
@ -114,18 +114,6 @@ class VideoCodingModule : public Module {
|
||||
uint8_t payloadType,
|
||||
bool internalSource = false) = 0;
|
||||
|
||||
// API to get currently configured encoder target bitrate in bits/s.
|
||||
//
|
||||
// Return value : 0, on success.
|
||||
// < 0, on error.
|
||||
virtual int Bitrate(unsigned int* bitrate) const = 0;
|
||||
|
||||
// API to get currently configured encoder target frame rate.
|
||||
//
|
||||
// Return value : 0, on success.
|
||||
// < 0, on error.
|
||||
virtual int FrameRate(unsigned int* framerate) const = 0;
|
||||
|
||||
// Sets the parameters describing the send channel. These parameters are
|
||||
// inputs to the
|
||||
// Media Optimization inside the VCM and also specifies the target bit rate
|
||||
@ -146,27 +134,6 @@ class VideoCodingModule : public Module {
|
||||
uint8_t lossRate,
|
||||
int64_t rtt) = 0;
|
||||
|
||||
// Sets the parameters describing the receive channel. These parameters are
|
||||
// inputs to the
|
||||
// Media Optimization inside the VCM.
|
||||
//
|
||||
// Input:
|
||||
// - rtt : Current round-trip time in ms.
|
||||
// with the most amount available bandwidth in
|
||||
// a conference
|
||||
// scenario
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t SetReceiveChannelParameters(int64_t rtt) = 0;
|
||||
|
||||
// Deprecated: This method currently does not have any effect.
|
||||
// Register a video protection callback which will be called to deliver
|
||||
// the requested FEC rate and NACK status (on/off).
|
||||
// TODO(perkj): Remove once no projects use it.
|
||||
virtual int32_t RegisterProtectionCallback(
|
||||
VCMProtectionCallback* protection) = 0;
|
||||
|
||||
// Enable or disable a video protection method.
|
||||
//
|
||||
// Input:
|
||||
@ -244,21 +211,6 @@ class VideoCodingModule : public Module {
|
||||
int32_t numberOfCores,
|
||||
bool requireKeyFrame = false) = 0;
|
||||
|
||||
// Register an externally defined decoder/renderer object. Can be a decoder
|
||||
// only or a
|
||||
// decoder coupled with a renderer. Note that RegisterReceiveCodec must be
|
||||
// called to
|
||||
// be used for decoding incoming streams.
|
||||
//
|
||||
// Input:
|
||||
// - externalDecoder : The external decoder/renderer object.
|
||||
// - payloadType : The payload type which this decoder should
|
||||
// be
|
||||
// registered to.
|
||||
//
|
||||
virtual void RegisterExternalDecoder(VideoDecoder* externalDecoder,
|
||||
uint8_t payloadType) = 0;
|
||||
|
||||
// Register a receive callback. Will be called whenever there is a new frame
|
||||
// ready
|
||||
// for rendering.
|
||||
@ -274,20 +226,6 @@ class VideoCodingModule : public Module {
|
||||
virtual int32_t RegisterReceiveCallback(
|
||||
VCMReceiveCallback* receiveCallback) = 0;
|
||||
|
||||
// Register a receive statistics callback which will be called to deliver
|
||||
// information
|
||||
// about the video stream received by the receiving side of the VCM, for
|
||||
// instance the
|
||||
// average frame rate and bit rate.
|
||||
//
|
||||
// Input:
|
||||
// - receiveStats : The callback object to register.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t RegisterReceiveStatisticsCallback(
|
||||
VCMReceiveStatisticsCallback* receiveStats) = 0;
|
||||
|
||||
// Register a frame type request callback. This callback will be called when
|
||||
// the
|
||||
// module needs to request specific frame types from the send side.
|
||||
@ -342,35 +280,6 @@ class VideoCodingModule : public Module {
|
||||
size_t payloadLength,
|
||||
const WebRtcRTPHeader& rtpInfo) = 0;
|
||||
|
||||
// Minimum playout delay (Used for lip-sync). This is the minimum delay
|
||||
// required
|
||||
// to sync with audio. Not included in VideoCodingModule::Delay()
|
||||
// Defaults to 0 ms.
|
||||
//
|
||||
// Input:
|
||||
// - minPlayoutDelayMs : Additional delay in ms.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t SetMinimumPlayoutDelay(uint32_t minPlayoutDelayMs) = 0;
|
||||
|
||||
// Set the time required by the renderer to render a frame.
|
||||
//
|
||||
// Input:
|
||||
// - timeMS : The time in ms required by the renderer to render a
|
||||
// frame.
|
||||
//
|
||||
// Return value : VCM_OK, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t SetRenderDelay(uint32_t timeMS) = 0;
|
||||
|
||||
// The total delay desired by the VCM. Can be less than the minimum
|
||||
// delay set with SetMinimumPlayoutDelay.
|
||||
//
|
||||
// Return value : Total delay in ms, on success.
|
||||
// < 0, on error.
|
||||
virtual int32_t Delay() const = 0;
|
||||
|
||||
// Robustness APIs
|
||||
|
||||
// DEPRECATED.
|
||||
@ -390,13 +299,6 @@ class VideoCodingModule : public Module {
|
||||
virtual int SetReceiverRobustnessMode(ReceiverRobustness robustnessMode,
|
||||
VCMDecodeErrorMode errorMode) = 0;
|
||||
|
||||
// Set the decode error mode. The mode decides which errors (if any) are
|
||||
// allowed in decodable frames. Note that setting decode_error_mode to
|
||||
// anything other than kWithErrors without enabling nack will cause
|
||||
// long-term freezes (resulting from frequent key frame requests) if
|
||||
// packet loss occurs.
|
||||
virtual void SetDecodeErrorMode(VCMDecodeErrorMode decode_error_mode) = 0;
|
||||
|
||||
// Sets the maximum number of sequence numbers that we are allowed to NACK
|
||||
// and the oldest sequence number that we will consider to NACK. If a
|
||||
// sequence number older than |max_packet_age_to_nack| is missing
|
||||
@ -407,14 +309,8 @@ class VideoCodingModule : public Module {
|
||||
int max_packet_age_to_nack,
|
||||
int max_incomplete_time_ms) = 0;
|
||||
|
||||
// Setting a desired delay to the VCM receiver. Video rendering will be
|
||||
// delayed by at least desired_delay_ms.
|
||||
virtual int SetMinReceiverDelay(int desired_delay_ms) = 0;
|
||||
|
||||
virtual void RegisterPostEncodeImageCallback(
|
||||
EncodedImageCallback* post_encode_callback) = 0;
|
||||
// Releases pending decode calls, permitting faster thread shutdown.
|
||||
virtual void TriggerDecoderShutdown() = 0;
|
||||
};
|
||||
|
||||
} // namespace webrtc
|
||||
|
Reference in New Issue
Block a user