Show / Hide Table of Contents

Class VideoBufferSink

Represents a video buffer sink filter that receives video frames from a filter graph.

Inheritance
object
OptionQueryableBase
FilterContext
VideoBufferSink
Implements
IOptionQueryable
ILoggingContext
IAVPointer<_AVFilterContext>
IBufferSource
IBufferSink
Inherited Members
FilterContext.Allocate(string, Filter, FilterGraph)
FilterContext.Create(string, Filter, FilterGraph)
FilterContext.Create(string, Filter, string, FilterGraph)
FilterContext.Create(string, Filter, AVDictionary, FilterGraph)
FilterContext.Create(string, Filter, IDictionary<string, string>, FilterGraph)
FilterContext.Create(string, Filter, AVMultiDictionary, FilterGraph)
FilterContext.As<T>()
FilterContext.Init(string)
FilterContext.Init()
FilterContext.Init(AVDictionary)
FilterContext.Init(AVMultiDictionary)
FilterContext.Init(IDictionary<string, string>)
FilterContext.ToString()
FilterContext.GetInputFilterPad(int)
FilterContext.GetOutputFilterPad(int)
FilterContext.GetInputFilterLink(int)
FilterContext.GetOutputFilterLink(int)
FilterContext.Delete()
FilterContext.Pointer
FilterContext.Filter
FilterContext.Name
FilterContext.Threads
FilterContext.HwDeviceContext
FilterContext.ExtraHWFrames
FilterContext.InputCount
FilterContext.OutputCount
FilterContext.InputFilterPads
FilterContext.OutputFilterPads
FilterContext.InputFilterLinks
FilterContext.OutputFilterLinks
OptionQueryableBase.ResetOptions()
OptionQueryableBase.GetOptions(bool)
OptionQueryableBase.FindOption(string, bool)
OptionQueryableBase.SetOption(string, string, bool)
OptionQueryableBase.SetOption(string, long, bool)
OptionQueryableBase.SetOption(string, bool, bool)
OptionQueryableBase.SetOption(string, double, bool)
OptionQueryableBase.SetOption(string, Rational, bool)
OptionQueryableBase.SetOption(string, ReadOnlySpan<byte>, bool)
OptionQueryableBase.SetOption(string, ReadOnlyMemory<byte>, bool)
OptionQueryableBase.SetOption(string, int, int, bool)
OptionQueryableBase.SetOption(string, (int Width, int Height), bool)
OptionQueryableBase.SetOption(string, PixelFormat, bool)
OptionQueryableBase.SetOption(string, SampleFormat, bool)
OptionQueryableBase.SetOption(string, IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(string, ILookup<string, string>, bool)
OptionQueryableBase.SetOption(IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(string, ref ILookup<string, string>, bool)
OptionQueryableBase.SetOption<T>(string, T, bool)
OptionQueryableBase.SetOption(string, object, bool)
OptionQueryableBase.SetOption(Option, string, bool)
OptionQueryableBase.SetOption(Option, bool, bool)
OptionQueryableBase.SetOption(Option, long, bool)
OptionQueryableBase.SetOption(Option, double, bool)
OptionQueryableBase.SetOption(Option, Rational, bool)
OptionQueryableBase.SetOption(Option, ReadOnlySpan<byte>, bool)
OptionQueryableBase.SetOption(Option, ReadOnlyMemory<byte>, bool)
OptionQueryableBase.SetOption(Option, int, int, bool)
OptionQueryableBase.SetOption(Option, (int Width, int Height), bool)
OptionQueryableBase.SetOption(Option, PixelFormat, bool)
OptionQueryableBase.SetOption(Option, SampleFormat, bool)
OptionQueryableBase.SetOption(Option, IDictionary<string, string>, bool)
OptionQueryableBase.SetOption(Option, ILookup<string, string>, bool)
OptionQueryableBase.SetOption<T>(Option, T, bool)
OptionQueryableBase.SetOption(Option, object, bool)
OptionQueryableBase.TryGetOption(string, out string, bool)
OptionQueryableBase.TryGetOption(string, out long, bool)
OptionQueryableBase.TryGetOption<T>(string, out T, bool)
OptionQueryableBase.TryGetOption(string, out ulong, bool)
OptionQueryableBase.TryGetOption(string, out int, bool)
OptionQueryableBase.TryGetOption(string, out bool, bool)
OptionQueryableBase.TryGetOption(string, out uint, bool)
OptionQueryableBase.TryGetOption(string, out double, bool)
OptionQueryableBase.TryGetOption(string, out Rational, bool)
OptionQueryableBase.TryGetOption(string, out PixelFormat, bool)
OptionQueryableBase.TryGetOption(string, out SampleFormat, bool)
OptionQueryableBase.TryGetOption(string, out IDictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out Dictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out AVDictionary, bool)
OptionQueryableBase.TryGetOption(string, out ILookup<string, string>, bool)
OptionQueryableBase.TryGetOption(string, out AVMultiDictionary, bool)
OptionQueryableBase.TryGetOption(string, out int, out int, bool)
OptionQueryableBase.TryGetOption(string, out (int Width, int Height), bool)
OptionQueryableBase.TryGetOption(string, Span<byte>, bool)
OptionQueryableBase.TryGetOption(string, out byte[], bool)
OptionQueryableBase.TryGetOption(string, out Memory<byte>, bool)
OptionQueryableBase.TryGetOption(string, out ReadOnlyMemory<byte>, bool)
OptionQueryableBase.TryGetOption(string, out object, bool)
OptionQueryableBase.TryGetOption(Option, out string, bool)
OptionQueryableBase.TryGetOption(Option, out long, bool)
OptionQueryableBase.TryGetOption<T>(Option, out T, bool)
OptionQueryableBase.TryGetOption(Option, out ulong, bool)
OptionQueryableBase.TryGetOption(Option, out int, bool)
OptionQueryableBase.TryGetOption(Option, out bool, bool)
OptionQueryableBase.TryGetOption(Option, out uint, bool)
OptionQueryableBase.TryGetOption(Option, out double, bool)
OptionQueryableBase.TryGetOption(Option, out Rational, bool)
OptionQueryableBase.TryGetOption(Option, out PixelFormat, bool)
OptionQueryableBase.TryGetOption(Option, out SampleFormat, bool)
OptionQueryableBase.TryGetOption(Option, out IDictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out Dictionary<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out AVDictionary, bool)
OptionQueryableBase.TryGetOption(Option, out ILookup<string, string>, bool)
OptionQueryableBase.TryGetOption(Option, out AVMultiDictionary, bool)
OptionQueryableBase.TryGetOption(Option, out int, out int, bool)
OptionQueryableBase.TryGetOption(Option, out (int Width, int Height), bool)
OptionQueryableBase.TryGetOption(Option, out byte[], bool)
OptionQueryableBase.TryGetOption(Option, out Memory<byte>, bool)
OptionQueryableBase.TryGetOption(Option, out ReadOnlyMemory<byte>, bool)
OptionQueryableBase.TryGetOption(Option, Span<byte>, bool)
OptionQueryableBase.TryGetOption(Option, out object, bool)
OptionQueryableBase.SetOption(string, ChannelLayout, bool)
OptionQueryableBase.SetOption(Option, ChannelLayout, bool)
OptionQueryableBase.TryGetOption(string, out ChannelLayout, bool)
OptionQueryableBase.TryGetOption(Option, out ChannelLayout, bool)
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: FFmpeg.Filters.VideoFilters
Assembly: FFmpeg.dll
Syntax
public class VideoBufferSink : FilterContext, IOptionQueryable, ILoggingContext, IAVPointer<_AVFilterContext>, IBufferSource, IBufferSink
Remarks

A VideoBufferSink is the exit point for video frames from a filter graph. Frames can be retrieved using ReceiveFrame(AVFrame) after the filter graph has been configured and initialized.

Properties

View Source

AlphaMode

Gets the alpha mode of frames produced by the buffer sink filter.

Declaration
public AlphaMode AlphaMode { get; }
Property Value
Type Description
AlphaMode

The alpha mode of the frames received from the sink.

View Source

ColorRange

Gets the color range of frames produced by the buffer sink filter.

Declaration
public ColorRange ColorRange { get; }
Property Value
Type Description
ColorRange

The color range of the frames received from the sink.

View Source

ColorSpace

Gets the color space of frames produced by the buffer sink filter.

Declaration
public ColorSpace ColorSpace { get; }
Property Value
Type Description
ColorSpace

The color space of the frames received from the sink.

View Source

FrameRate

Gets the frame rate of frames produced by the buffer sink filter.

Declaration
public Rational FrameRate { get; }
Property Value
Type Description
Rational

The frame rate of the frames received from the sink.

View Source

Height

Gets the height of frames produced by the buffer sink filter.

Declaration
public int Height { get; }
Property Value
Type Description
int

The frame height in pixels.

View Source

PixelAspectRatio

Gets the sample aspect ratio of frames produced by the buffer sink filter.

Declaration
public Rational PixelAspectRatio { get; }
Property Value
Type Description
Rational

The sample aspect ratio of the frames received from the sink.

View Source

PixelFormat

Gets the pixel format of frames produced by the buffer sink filter.

Declaration
public PixelFormat PixelFormat { get; }
Property Value
Type Description
PixelFormat

The pixel format of the frames received from the sink.

View Source

TimeBase

Gets the time base of frames produced by the buffer sink filter.

Declaration
public Rational TimeBase { get; }
Property Value
Type Description
Rational

The time base used for timestamps of frames received from the sink.

View Source

Width

Gets the width of frames produced by the buffer sink filter.

Declaration
public int Width { get; }
Property Value
Type Description
int

The frame width in pixels.

Methods

View Source

Allocate(string, FilterGraph)

Allocates an uninitialized video buffer sink filter.

Declaration
public static VideoBufferSink Allocate(string name, FilterGraph graph)
Parameters
Type Name Description
string name

The name of the filter instance.

FilterGraph graph

The filter graph that will own the filter.

Returns
Type Description
VideoBufferSink

The allocated, uninitialized video buffer sink filter.

Exceptions
Type Condition
FFmpegException

The filter could not be allocated.

View Source

Create(string, FilterGraph)

Creates and initializes a video buffer sink filter.

Declaration
public static VideoBufferSink Create(string name, FilterGraph graph)
Parameters
Type Name Description
string name

The name of the filter instance.

FilterGraph graph

The filter graph that will own the filter.

Returns
Type Description
VideoBufferSink

The initialized video buffer sink filter.

Exceptions
Type Condition
FFmpegException

The filter could not be allocated or initialized.

View Source

ReceiveFrame(AVFrame)

Receives the next available video frame from the buffer sink filter.

Declaration
public AVResult32 ReceiveFrame(AVFrame frame)
Parameters
Type Name Description
AVFrame frame

The destination frame that receives the filtered video data.

Returns
Type Description
AVResult32

The result returned by FFmpeg.

Remarks

The supplied frame is unreferenced before receiving the new frame. The frame's TimeBase is updated to the sink's time base and its BestEffortTimestamp is set to its presentation timestamp.

Exceptions
Type Condition
ArgumentNullException

frame is null.

Implements

IOptionQueryable
ILoggingContext
IAVPointer<T>
IBufferSource
IBufferSink

Extension Methods

LoggingContextExtensions.Debug(ILoggingContext, string)
LoggingContextExtensions.Error(ILoggingContext, string)
LoggingContextExtensions.Fatal(ILoggingContext, string)
LoggingContextExtensions.Info(ILoggingContext, string)
LoggingContextExtensions.Log(ILoggingContext, LogLevel, string)
LoggingContextExtensions.Panic(ILoggingContext, string)
LoggingContextExtensions.Trace(ILoggingContext, string)
LoggingContextExtensions.Verbose(ILoggingContext, string)
LoggingContextExtensions.Warning(ILoggingContext, string)
  • View Source
In this article
Back to top Generated by DocFX