MediaVideoDecoder Class
A video decoder created by MediaCodecBackend.CreateVideoDecoder.
public abstract class MediaVideoDecoder : MediaCodecImplementation- Inheritance
MediaCodecImplementationMediaVideoDecoder
Constructors
| Name | Description |
|---|---|
| MediaVideoDecoder() |
MediaVideoDecoder()
protected MediaVideoDecoder()No documentation is available.
Methods
| Name | Description |
|---|---|
| Decode(EncodedVideoChunk) | Decodes a chunk and returns the frames that are ready (possibly none, when the decoder reorders the frames). The timestamp and the duration of the frames are the ones of their chunks. The library applies the rotation, the flip, the display aspect ratio and the color space of the configuration. |
| Flush() | Returns the pending frames (flush()). The default implementation returns none. |
Decode(EncodedVideoChunk)
Decodes a chunk and returns the frames that are ready (possibly none, when the decoder reorders the frames). The timestamp and the duration of the frames are the ones of their chunks. The library applies the rotation, the flip, the display aspect ratio and the color space of the configuration.
public abstract IReadOnlyList<VideoFrame> Decode(EncodedVideoChunk chunk)Flush()
MediaCodecBackend.csReturns the pending frames (flush()). The default implementation returns none.
public virtual IReadOnlyList<VideoFrame> Flush()