Remove VideoEncoder::SetChannelParameters.

The SetChannelParameters function was used when WebRTC supported decoding
with errors, which we no longer do.

This cleanup CL is related to the work tracked by 9946.

Bug: webrtc:9946
Change-Id: Id2d5ed23031388f890c42651bfbe5f79eda701e5
Reviewed-on: https://webrtc-review.googlesource.com/c/108861
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25505}
This commit is contained in:
philipel
2018-11-05 17:30:22 +01:00
committed by Commit Bot
parent c22f551842
commit ee49f7087f
41 changed files with 11 additions and 193 deletions

View File

@ -216,7 +216,12 @@ public interface VideoEncoder {
* @param packetLoss How many packets are lost on average per 255 packets.
* @param roundTripTimeMs Round-trip time of the network in milliseconds.
*/
@CalledByNative VideoCodecStatus setChannelParameters(short packetLoss, long roundTripTimeMs);
// TODO(webrtc:9946): Remove this function when downstream projects have been
// updated.
@Deprecated
default VideoCodecStatus setChannelParameters(short packetLoss, long roundTripTimeMs) {
return VideoCodecStatus.OK;
}
/** Sets the bitrate allocation and the target framerate for the encoder. */
@CalledByNative VideoCodecStatus setRateAllocation(BitrateAllocation allocation, int framerate);