mirror of https://github.com/ErsatzTV/ErsatzTV.git
3 changed files with 23 additions and 14 deletions
@ -0,0 +1,19 @@ |
|||||||
|
using System.Runtime.InteropServices; |
||||||
|
using ErsatzTV.FFmpeg.Runtime; |
||||||
|
|
||||||
|
namespace ErsatzTV.FFmpeg.Capabilities.Qsv; |
||||||
|
|
||||||
|
public static class QsvInitModes |
||||||
|
{ |
||||||
|
public static IEnumerable<QsvInitMode> GetModesToTest(IRuntimeInfo runtimeInfo) |
||||||
|
{ |
||||||
|
yield return QsvInitMode.None; |
||||||
|
|
||||||
|
if (runtimeInfo.IsOSPlatform(OSPlatform.Windows)) |
||||||
|
{ |
||||||
|
yield return QsvInitMode.D3d11Va; |
||||||
|
} |
||||||
|
|
||||||
|
yield return QsvInitMode.Qsv; |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue