Class BufferSrcParameters
Represents the parameters used for configuring a buffer source in FFmpeg. Provides mechanisms to allocate, manage, and dispose of buffer source parameters.
Inherited Members
Namespace: FFmpeg.Filters
Assembly: FFmpeg.dll
Syntax
public sealed class BufferSrcParameters : IDisposable, IAVPointer<_AVBufferSrcParameters>
Properties
View SourceChannelLayout
Gets the channel layout for the buffer source.
Declaration
public ChannelLayout_ref ChannelLayout { get; }
Property Value
| Type | Description |
|---|---|
| ChannelLayout_ref |
ColorRange
Gets or sets the color range of the buffer source.
Declaration
public ColorRange ColorRange { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorRange |
ColorSpace
Gets or sets the color space of the buffer source.
Declaration
public ColorSpace ColorSpace { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorSpace |
FrameRate
Gets or sets the frame rate of the buffer source.
Declaration
public Rational FrameRate { get; set; }
Property Value
| Type | Description |
|---|---|
| Rational |
Height
Gets or sets the height of the buffer source.
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PixelFormat
Gets or sets the pixel format used for the buffer source.
Declaration
public PixelFormat PixelFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| PixelFormat |
SampleAspectRatio
Gets or sets the sample aspect ratio of the buffer source.
Declaration
public Rational SampleAspectRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| Rational |
SampleFormat
Gets or sets the sample format used for the buffer source.
Declaration
public SampleFormat SampleFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| SampleFormat |
SampleRate
Gets or sets the sample rate of the buffer source.
Declaration
public int SampleRate { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TimeBase
Gets or sets the time base for the buffer source.
Declaration
public Rational TimeBase { get; set; }
Property Value
| Type | Description |
|---|---|
| Rational |
Width
Gets or sets the width of the buffer source.
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceAllocate()
Allocates memory for the buffer source parameters using FFmpeg's av_buffersrc_parameters_alloc function.
Declaration
public static BufferSrcParameters Allocate()
Returns
| Type | Description |
|---|---|
| BufferSrcParameters | A new instance of BufferSrcParameters if memory allocation succeeds. |
Exceptions
| Type | Condition |
|---|---|
| OutOfMemoryException | Thrown if memory allocation fails. |
Dispose()
Disposes of the resources (other than memory) used by the BufferSrcParameters.
Declaration
public void Dispose()
~BufferSrcParameters()
Finalizer for the BufferSrcParameters class. Ensures that unmanaged resources are freed if Dispose() is not called.
Declaration
protected ~BufferSrcParameters()