Interface IBufferSink
Interface to access ReceiveFrame
Namespace: FFmpeg.Filters
Assembly: FFmpeg.dll
Syntax
public interface IBufferSink
Properties
View SourceAlphaMode
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.
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.
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.
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.
Context
Pointer to the internal filter context
Declaration
_AVFilterContext* Context { get; }
Property Value
| Type | Description |
|---|---|
| _AVFilterContext* |
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.
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.
MediaType
Gets the media type produced by the buffer sink filter.
Declaration
MediaType MediaType { get; }
Property Value
| Type | Description |
|---|---|
| MediaType |
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.
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.
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.
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.
TimeBase
Gets the time base of frames produced by the buffer sink filter.
Declaration
Rational TimeBase { get; }
Property Value
| Type | Description |
|---|---|
| Rational |
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 SourceReceiveFrame(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. |
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.