mirror of https://github.com/ErsatzTV/ErsatzTV.git
3 changed files with 14 additions and 3 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
namespace ErsatzTV.FFmpeg.Filter.Cuda; |
||||
|
||||
public class CudaSoftwareFallbackUploadFilter : BaseFilter |
||||
{ |
||||
public override string Filter => "hwupload"; |
||||
|
||||
public override FrameState NextState(FrameState currentState) => |
||||
currentState with { FrameDataLocation = FrameDataLocation.Hardware }; |
||||
} |
||||
@ -1,11 +1,10 @@
@@ -1,11 +1,10 @@
|
||||
namespace ErsatzTV.FFmpeg.Filter; |
||||
namespace ErsatzTV.FFmpeg.Filter.Cuda; |
||||
|
||||
public class HardwareUploadCudaFilter(FrameDataLocation frameDataLocation) : BaseFilter |
||||
{ |
||||
public override string Filter => frameDataLocation switch |
||||
{ |
||||
FrameDataLocation.Hardware => string.Empty, |
||||
FrameDataLocation.Unknown => "hwupload", |
||||
_ => "hwupload_cuda" |
||||
}; |
||||
|
||||
Loading…
Reference in new issue