public class VideoDecoderFallback
extends java.lang.Object
VideoDecoder.Callback, VideoDecoder.DecodeInfo, VideoDecoder.Settings| Constructor and Description |
|---|
VideoDecoderFallback(VideoDecoder fallback,
VideoDecoder primary) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public VideoDecoderFallback(VideoDecoder fallback, VideoDecoder primary)
public long createNativeVideoDecoder()
VideoDecodercreateNativeVideoDecoder in interface VideoDecoderpublic VideoCodecStatus initDecode(VideoDecoder.Settings settings, VideoDecoder.Callback decodeCallback)
VideoDecoderinitDecode in interface VideoDecoderpublic VideoCodecStatus release()
VideoDecoderrelease in interface VideoDecoderpublic VideoCodecStatus decode(EncodedImage frame, VideoDecoder.DecodeInfo info)
VideoDecoderdecode in interface VideoDecoderpublic boolean getPrefersLateDecoding()
VideoDecodergetPrefersLateDecoding in interface VideoDecoderpublic java.lang.String getImplementationName()
VideoDecodergetImplementationName in interface VideoDecoder