Table of Contents

Interface IDecoder

Namespace
VAST.Media
Assembly
VAST.Common.dll

Defines the contract for a media decoder that converts compressed media samples to uncompressed format.

public interface IDecoder : IDisposable
Inherited Members

Properties

IsUsable

Gets a value indicating whether the decoder is usable and properly initialized.

bool IsUsable { get; }

Property Value

bool

OutputMediaType

Gets the output media type describing the decoded format.

MediaType OutputMediaType { get; }

Property Value

MediaType

PlatformContext

Gets or sets the platform-specific decoder context.

object PlatformContext { get; set; }

Property Value

object

Methods

Drain()

Drains any remaining samples from the decoder's internal buffers.

void Drain()

Read()

Reads a decoded sample from the decoder.

VersatileBuffer Read()

Returns

VersatileBuffer

The decoded sample, or null if no sample is available.

Write(VersatileBuffer)

Writes a compressed media sample to the decoder for processing.

void Write(VersatileBuffer packet)

Parameters

packet VersatileBuffer

The compressed media sample to decode.