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.
15 lines
540 B
15 lines
540 B
using ErsatzTV.FFmpeg.Filter.Cuda; |
|
using ErsatzTV.FFmpeg.Filter.Qsv; |
|
|
|
namespace ErsatzTV.FFmpeg.Filter; |
|
|
|
public static class AvailableSubtitleOverlayFilters |
|
{ |
|
public static IPipelineFilterStep ForAcceleration(HardwareAccelerationMode accelMode, FrameState currentState) => |
|
accelMode switch |
|
{ |
|
HardwareAccelerationMode.Nvenc => new OverlaySubtitleCudaFilter(), |
|
HardwareAccelerationMode.Qsv => new OverlaySubtitleQsvFilter(currentState), |
|
_ => new OverlaySubtitleFilter() |
|
}; |
|
}
|
|
|