Interface IDecoder
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
OutputMediaType
Gets the output media type describing the decoded format.
MediaType OutputMediaType { get; }
Property Value
PlatformContext
Gets or sets the platform-specific decoder context.
object PlatformContext { get; set; }
Property Value
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
packetVersatileBufferThe compressed media sample to decode.