summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Utilities/SystemInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/Utilities/SystemInfo.cs')
-rw-r--r--win/CS/HandBrake.Interop/Utilities/SystemInfo.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/Utilities/SystemInfo.cs b/win/CS/HandBrake.Interop/Utilities/SystemInfo.cs
index af0c24724..a364c50ac 100644
--- a/win/CS/HandBrake.Interop/Utilities/SystemInfo.cs
+++ b/win/CS/HandBrake.Interop/Utilities/SystemInfo.cs
@@ -90,5 +90,37 @@ namespace HandBrake.Interop.Utilities
}
}
}
+
+ public static bool IsVceH264Available
+ {
+ get
+ {
+ try
+ {
+ return HBFunctions.hb_vce_h264_available() != 0;
+ }
+ catch (Exception)
+ {
+ // Silent failure. Typically this means the dll hasn't been built with --enable-qsv
+ return false;
+ }
+ }
+ }
+
+ public static bool IsVceH265Available
+ {
+ get
+ {
+ try
+ {
+ return HBFunctions.hb_vce_h265_available() != 0;
+ }
+ catch (Exception)
+ {
+ // Silent failure. Typically this means the dll hasn't been built with --enable-qsv
+ return false;
+ }
+ }
+ }
}
}