Show / Hide Table of Contents

Interface IBufferSink

Interface to access ReceiveFrame

Namespace: FFmpeg.Filters
Assembly: FFmpeg.dll
Syntax
public interface IBufferSink

Properties

View Source

AlphaMode

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

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

This property is only valid for video buffer sink filters.

View Source

Channels

Gets the number of channels in audio frames produced by the buffer sink filter.

Declaration
int Channels { get; }
Property Value
Type Description
int
Remarks

This property is only valid for audio buffer sink filters.

View Source

ColorRange

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

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

This property is only valid for video buffer sink filters.

View Source

ColorSpace

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

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

This property is only valid for video buffer sink filters.

View Source

Context

Pointer to the internal filter context

Declaration
_AVFilterContext* Context { get; }
Property Value
Type Description
_AVFilterContext*
View Source

FrameRate

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

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

This property is only valid for video buffer sink filters.

View Source

Height

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

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

This property is only valid for video buffer sink filters.

View Source

MediaType

Gets the media type produced by the buffer sink filter.

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

PixelAspectRatio

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

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

This property is only valid for video buffer sink filters.

View Source

PixelFormat

Gets the pixel format produced by the buffer sink filter.

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

This property is only valid for video buffer sink filters.

View Source

SampleFormat

Gets the sample format produced by the buffer sink filter.

Declaration
SampleFormat SampleFormat { get; }
Property Value
Type Description
SampleFormat
Remarks

This property is only valid for audio buffer sink filters.

View Source

SampleRate

Gets the sample rate of audio frames produced by the buffer sink filter.

Declaration
int SampleRate { get; }
Property Value
Type Description
int
Remarks

This property is only valid for audio buffer sink filters.

View Source

TimeBase

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

Declaration
Rational TimeBase { get; }
Property Value
Type Description
Rational
View Source

Width

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

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

This property is only valid for video buffer sink filters.

Methods

View Source

ReceiveFrame(AVFrame)

Receives a frame from a buffer sink filter.

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

The destination frame that receives the filtered data.

Returns
Type Description
AVResult32

The result returned by FFmpeg.

View Source

TryGetChannelLayout(out ChannelLayout?)

Attempts to retrieve the channel layout of audio frames produced by the buffer sink filter.

Declaration
bool TryGetChannelLayout(out ChannelLayout? layout)
Parameters
Type Name Description
ChannelLayout layout

When this method returns true, contains the channel layout; otherwise, null.

Returns
Type Description
bool

true if the channel layout was successfully retrieved; otherwise, false.

Remarks

This method is only valid for audio buffer sink filters.

  • View Source
In this article
Back to top Generated by DocFX