Remove unused function VideoDecoder::PrefersLateDecoding.

Bug: webrtc:12271
Change-Id: Iaf67df37c0eade8b0b6f38be122530c3d908cf35
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/201820
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Philip Eliasson <philipel@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33028}
This commit is contained in:
philipel 2021-01-14 21:49:06 +01:00 committed by Commit Bot
parent 42eef86c4f
commit 25b8235f03
3 changed files with 0 additions and 18 deletions

View File

@ -32,10 +32,6 @@ VideoDecoder::DecoderInfo VideoDecoder::GetDecoderInfo() const {
return info;
}
bool VideoDecoder::PrefersLateDecoding() const {
return true;
}
const char* VideoDecoder::ImplementationName() const {
return "unknown";
}

View File

@ -70,12 +70,6 @@ class RTC_EXPORT VideoDecoder {
virtual DecoderInfo GetDecoderInfo() const;
// Deprecated, use GetDecoderInfo().prefers_late_decoding instead.
// Returns true if the decoder prefer to decode frames late.
// That is, it can not decode infinite number of frames before the decoded
// frame is consumed.
// TODO(bugs.webrtc.org/12271): Remove when downstream has been updated.
virtual bool PrefersLateDecoding() const;
// Deprecated, use GetDecoderInfo().implementation_name instead.
virtual const char* ImplementationName() const;
};

View File

@ -86,14 +86,6 @@ public interface VideoDecoder {
* Request the decoder to decode a frame.
*/
@CalledByNative VideoCodecStatus decode(EncodedImage frame, DecodeInfo info);
/**
* The decoder should return true if it prefers late decoding. That is, it can not decode
* infinite number of frames before the decoded frame is consumed.
*/
// TODO(bugs.webrtc.org/12271): Remove when downstream has been updated.
default boolean getPrefersLateDecoding() {
return true;
}
/**
* Should return a descriptive name for the implementation. Gets called once and cached. May be
* called from arbitrary thread.