mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
444 B
17 lines
444 B
namespace ErsatzTV.FFmpeg.GlobalOption.HardwareAcceleration; |
|
|
|
public class CudaHardwareAccelerationOption(bool isVulkanHdr) : GlobalOption |
|
{ |
|
public override string[] GlobalOptions |
|
{ |
|
get |
|
{ |
|
if (isVulkanHdr) |
|
{ |
|
return ["-init_hw_device", "cuda=nv", "-init_hw_device", "vulkan=vk@nv", "-hwaccel", "vulkan"]; |
|
} |
|
|
|
return ["-hwaccel", "cuda"]; |
|
} |
|
} |
|
}
|
|
|