mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
15 lines
456 B
C#
15 lines
456 B
C#
using FFMpegCore.Enums;
|
|
|
|
namespace FFMpegCore.Arguments;
|
|
|
|
public class HardwareAccelerationArgument : IArgument
|
|
{
|
|
public HardwareAccelerationArgument(HardwareAccelerationDevice hardwareAccelerationDevice)
|
|
{
|
|
HardwareAccelerationDevice = hardwareAccelerationDevice;
|
|
}
|
|
|
|
public HardwareAccelerationDevice HardwareAccelerationDevice { get; }
|
|
|
|
public string Text => $"-hwaccel {HardwareAccelerationDevice.ToString().ToLower()}";
|
|
}
|