public interface VideoDecoder
Modifier and Type | Interface and Description |
---|---|
static interface |
VideoDecoder.Callback |
static class |
VideoDecoder.DecodeInfo
Additional info for decoding.
|
static class |
VideoDecoder.Settings
Settings passed to the decoder by WebRTC.
|
Modifier and Type | Method and Description |
---|---|
default long |
createNativeVideoDecoder()
The decoder implementation backing this interface is either 1) a Java
decoder (e.g., an Android platform decoder), or alternatively 2) a native
decoder (e.g., a software decoder or a C++ decoder adapter).
|
VideoCodecStatus |
decode(EncodedImage frame,
VideoDecoder.DecodeInfo info)
Request the decoder to decode a frame.
|
java.lang.String |
getImplementationName()
Should return a descriptive name for the implementation.
|
boolean |
getPrefersLateDecoding()
The decoder should return true if it prefers late decoding.
|
VideoCodecStatus |
initDecode(VideoDecoder.Settings settings,
VideoDecoder.Callback decodeCallback)
Initializes the decoding process with specified settings.
|
VideoCodecStatus |
release()
Called when the decoder is no longer needed.
|
default long createNativeVideoDecoder()
VideoCodecStatus initDecode(VideoDecoder.Settings settings, VideoDecoder.Callback decodeCallback)
VideoCodecStatus release()
VideoCodecStatus decode(EncodedImage frame, VideoDecoder.DecodeInfo info)
boolean getPrefersLateDecoding()
java.lang.String getImplementationName()
6.0.0