MediaVideoDecoder Class

A video decoder created by MediaCodecBackend.CreateVideoDecoder.

public abstract class MediaVideoDecoder : MediaCodecImplementation
Inheritance
MediaCodecImplementation MediaVideoDecoder

Constructors

NameDescription
MediaVideoDecoder()

MediaVideoDecoder()

protected MediaVideoDecoder()

No documentation is available.

Methods

NameDescription
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)

Parameters

chunk EncodedVideoChunk
The chunk.

Returns

IReadOnlyList<VideoFrame>

Returns the pending frames (flush()). The default implementation returns none.

public virtual IReadOnlyList<VideoFrame> Flush()