Class HWUploadCuda
Uploads frames from system memory to a CUDA device for hardware-accelerated processing.
Inherited Members
Namespace: FFmpeg.Filters.VideoFilters
Assembly: FFmpeg.dll
Syntax
public class HWUploadCuda : FilterContext, IOptionQueryable, ILoggingContext, IAVPointer<_AVFilterContext>, IBufferSource, IBufferSink
Remarks
The CUDA device used by the filter can be selected through the Device property. If no device is specified, FFmpeg uses its default CUDA device.
Properties
View SourceDevice
Gets or sets the index of the CUDA device used by the filter.
Declaration
public int Device { get; set; }
Property Value
| Type | Description |
|---|---|
| int | The zero-based index of the CUDA device to use. |
Remarks
If not explicitly set, FFmpeg uses its default CUDA device.
Methods
View SourceAllocate(string, FilterGraph)
Allocates an uninitialized HWUploadCuda filter context.
Declaration
public static HWUploadCuda Allocate(string name, FilterGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name assigned to the filter context. |
| FilterGraph | graph | The filter graph to which the filter belongs. |
Returns
| Type | Description |
|---|---|
| HWUploadCuda | A newly allocated HWUploadCuda filter context. |
Remarks
The returned filter is not initialized. Call Init() after configuring any desired options.
Create(string, int, FilterGraph)
Creates and initializes an HWUploadCuda filter using the specified CUDA device.
Declaration
public static HWUploadCuda Create(string name, int device, FilterGraph graph)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name assigned to the filter context. |
| int | device | The zero-based index of the CUDA device to use. |
| FilterGraph | graph | The filter graph to which the filter belongs. |
Returns
| Type | Description |
|---|---|
| HWUploadCuda | An initialized HWUploadCuda filter context. |