summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/Utilities
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-06-08 23:04:22 +0100
committersr55 <[email protected]>2018-06-08 23:04:22 +0100
commitc2a7fba08f489844a1474c01be455ae1e9a03abb (patch)
treef3a7a414d0d6a1ad3b9e2c553d74b5d0b32b95d4 /win/CS/HandBrake.Interop/Utilities
parentf4bd868418555189faac85e0af3f3ad64058836a (diff)
WinGui: Add Support for the VCE Encoders.
Diffstat (limited to 'win/CS/HandBrake.Interop/Utilities')
-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;
+ }
+ }
+ }
}
}