Interface IDecoderContext
Defines the common functionality exposed by decoder contexts.
Inherited Members
Namespace: FFmpeg.Codecs
Assembly: FFmpeg.dll
Syntax
public interface IDecoderContext : IDisposable, IOptionQueryable
Remarks
This interface provides access to codec information, configuration options, and common properties shared by all decoder context implementations.
Properties
View SourceBitRate
Gets or sets the average bit rate of the media stream.
Declaration
long BitRate { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Remarks
During decoding, this value is typically read from the input stream. During encoding, it controls the target average bit rate unless another rate control mode is used.
Codec
Gets the codec associated with this decoder.
Declaration
Codec Codec { get; }
Property Value
| Type | Description |
|---|---|
| Codec |
CodecID
Gets the identifier of the codec associated with this decoder.
Declaration
CodecID CodecID { get; }
Property Value
| Type | Description |
|---|---|
| CodecID |
CodecTag
Gets or sets the FourCC (four-character code) associated with the codec.
<p>
The codec tag identifies the codec within a media container. During
decoding, it is typically populated from the input stream. During
encoding, it may be specified explicitly; otherwise, a default value
appropriate for the selected <xref href="FFmpeg.Codecs.IDecoderContext.CodecID" data-throw-if-not-resolved="false"></xref> is used.
</p>
<p>
The FourCC value is stored with the least significant byte (LSB) first.
For example, the string <code>"ABCD"</code> is represented as:
<pre><code class="lang-csharp">('D' << 24) + ('C' << 16) + ('B' << 8) + 'A'</code></pre>
.
Declaration
FourCC CodecTag { get; set; }
Property Value
| Type | Description |
|---|---|
| FourCC |
CodecType
Gets the type of media handled by the decoder, such as video, audio, or subtitles.
Declaration
MediaType CodecType { get; }
Property Value
| Type | Description |
|---|---|
| MediaType |
Flags
Gets or sets codec-specific flags that control codec behavior.
Declaration
CodecFlags Flags { get; set; }
Property Value
| Type | Description |
|---|---|
| CodecFlags |
PacketTimeBase
Gets or sets the time base in which packet timestamps (PresentationTimestamp and DecompressionTimestamp) are expressed.
Declaration
Rational PacketTimeBase { get; set; }
Property Value
| Type | Description |
|---|---|
| Rational |