Show / Hide Table of Contents

Interface IDecoderContext

Defines the common functionality exposed by decoder contexts.

Inherited Members
IDisposable.Dispose()
IOptionQueryable.FindOption(string, bool)
IOptionQueryable.ResetOptions()
IOptionQueryable.GetOptions(bool)
IOptionQueryable.SetOption(Option, (int Width, int Height), bool)
IOptionQueryable.SetOption(Option, PixelFormat, bool)
IOptionQueryable.SetOption(Option, SampleFormat, bool)
IOptionQueryable.SetOption(Option, bool, bool)
IOptionQueryable.SetOption(Option, double, bool)
IOptionQueryable.SetOption(Option, IDictionary<string, string>, bool)
IOptionQueryable.SetOption(Option, ILookup<string, string>, bool)
IOptionQueryable.SetOption(Option, int, int, bool)
IOptionQueryable.SetOption(Option, long, bool)
IOptionQueryable.SetOption(Option, object, bool)
IOptionQueryable.SetOption(Option, Rational, bool)
IOptionQueryable.SetOption(Option, ReadOnlyMemory<byte>, bool)
IOptionQueryable.SetOption(Option, ReadOnlySpan<byte>, bool)
IOptionQueryable.SetOption(Option, string, bool)
IOptionQueryable.SetOption(IDictionary<string, string>, bool)
IOptionQueryable.SetOption(string, (int Width, int Height), bool)
IOptionQueryable.SetOption(string, PixelFormat, bool)
IOptionQueryable.SetOption(string, SampleFormat, bool)
IOptionQueryable.SetOption(string, bool, bool)
IOptionQueryable.SetOption(string, double, bool)
IOptionQueryable.SetOption(string, IDictionary<string, string>, bool)
IOptionQueryable.SetOption(string, ILookup<string, string>, bool)
IOptionQueryable.SetOption(string, int, int, bool)
IOptionQueryable.SetOption(string, long, bool)
IOptionQueryable.SetOption(string, object, bool)
IOptionQueryable.SetOption(string, Rational, bool)
IOptionQueryable.SetOption(string, ReadOnlyMemory<byte>, bool)
IOptionQueryable.SetOption(string, ReadOnlySpan<byte>, bool)
IOptionQueryable.SetOption(string, ref ILookup<string, string>, bool)
IOptionQueryable.SetOption(string, string, bool)
IOptionQueryable.TryGetOption(Option, out (int Width, int Height), bool)
IOptionQueryable.TryGetOption(Option, out AVDictionary, bool)
IOptionQueryable.TryGetOption(Option, out AVMultiDictionary, bool)
IOptionQueryable.TryGetOption(Option, out PixelFormat, bool)
IOptionQueryable.TryGetOption(Option, out SampleFormat, bool)
IOptionQueryable.TryGetOption(Option, out bool, bool)
IOptionQueryable.TryGetOption(Option, out byte[], bool)
IOptionQueryable.TryGetOption(Option, out Dictionary<string, string>, bool)
IOptionQueryable.TryGetOption(Option, out double, bool)
IOptionQueryable.TryGetOption(Option, out IDictionary<string, string>, bool)
IOptionQueryable.TryGetOption(Option, out ILookup<string, string>, bool)
IOptionQueryable.TryGetOption(Option, out int, bool)
IOptionQueryable.TryGetOption(Option, out int, out int, bool)
IOptionQueryable.TryGetOption(Option, out long, bool)
IOptionQueryable.TryGetOption(Option, out Memory<byte>, bool)
IOptionQueryable.TryGetOption(Option, out object, bool)
IOptionQueryable.TryGetOption(Option, out Rational, bool)
IOptionQueryable.TryGetOption(Option, out ReadOnlyMemory<byte>, bool)
IOptionQueryable.TryGetOption(Option, out string, bool)
IOptionQueryable.TryGetOption(Option, out uint, bool)
IOptionQueryable.TryGetOption(Option, out ulong, bool)
IOptionQueryable.TryGetOption(Option, Span<byte>, bool)
IOptionQueryable.TryGetOption(string, out (int Width, int Height), bool)
IOptionQueryable.TryGetOption(string, out AVDictionary, bool)
IOptionQueryable.TryGetOption(string, out AVMultiDictionary, bool)
IOptionQueryable.TryGetOption(string, out PixelFormat, bool)
IOptionQueryable.TryGetOption(string, out SampleFormat, bool)
IOptionQueryable.TryGetOption(string, out bool, bool)
IOptionQueryable.TryGetOption(string, out byte[], bool)
IOptionQueryable.TryGetOption(string, out Dictionary<string, string>, bool)
IOptionQueryable.TryGetOption(string, out double, bool)
IOptionQueryable.TryGetOption(string, out IDictionary<string, string>, bool)
IOptionQueryable.TryGetOption(string, out ILookup<string, string>, bool)
IOptionQueryable.TryGetOption(string, out int, bool)
IOptionQueryable.TryGetOption(string, out int, out int, bool)
IOptionQueryable.TryGetOption(string, out long, bool)
IOptionQueryable.TryGetOption(string, out Memory<byte>, bool)
IOptionQueryable.TryGetOption(string, out object, bool)
IOptionQueryable.TryGetOption(string, out Rational, bool)
IOptionQueryable.TryGetOption(string, out ReadOnlyMemory<byte>, bool)
IOptionQueryable.TryGetOption(string, out string, bool)
IOptionQueryable.TryGetOption(string, out uint, bool)
IOptionQueryable.TryGetOption(string, out ulong, bool)
IOptionQueryable.TryGetOption(string, Span<byte>, bool)
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 Source

BitRate

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.

View Source

Codec

Gets the codec associated with this decoder.

Declaration
Codec Codec { get; }
Property Value
Type Description
Codec
View Source

CodecID

Gets the identifier of the codec associated with this decoder.

Declaration
CodecID CodecID { get; }
Property Value
Type Description
CodecID
View Source

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
View Source

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
View Source

Flags

Gets or sets codec-specific flags that control codec behavior.

Declaration
CodecFlags Flags { get; set; }
Property Value
Type Description
CodecFlags
View Source

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
  • View Source
In this article
Back to top Generated by DocFX