public abstract class WrappedNativeVideoDecoder extends java.lang.Object implements VideoDecoder
VideoDecoder.Callback, VideoDecoder.DecodeInfo, VideoDecoder.Settings
Constructor and Description |
---|
WrappedNativeVideoDecoder() |
Modifier and Type | Method and Description |
---|---|
abstract 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 abstract long createNativeVideoDecoder()
VideoDecoder
createNativeVideoDecoder
in interface VideoDecoder
public final VideoCodecStatus initDecode(VideoDecoder.Settings settings, VideoDecoder.Callback decodeCallback)
VideoDecoder
initDecode
in interface VideoDecoder
public final VideoCodecStatus release()
VideoDecoder
release
in interface VideoDecoder
public final VideoCodecStatus decode(EncodedImage frame, VideoDecoder.DecodeInfo info)
VideoDecoder
decode
in interface VideoDecoder
public final boolean getPrefersLateDecoding()
VideoDecoder
getPrefersLateDecoding
in interface VideoDecoder
public final java.lang.String getImplementationName()
VideoDecoder
getImplementationName
in interface VideoDecoder
6.0.0