diff options
author | sr55 <[email protected]> | 2017-03-05 19:48:35 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-03-05 19:48:46 +0000 |
commit | 5d2c3cc85cae38c365ffdefa40054563d45b1506 (patch) | |
tree | 011ecafdd621340f793b521a9dd789a39d672028 /win/CS/HandBrake.ApplicationServices/Utilities | |
parent | 8b92638f31984cab89a5de9b9557a8f463e1be13 (diff) |
WinGui: Add support in the UI for QSV 10bit H.265 encoder.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs index 8ccf04462..8966b5a8f 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs @@ -74,5 +74,21 @@ namespace HandBrake.ApplicationServices.Utilities }
}
}
+
+ public static bool IsQsvAvailableH26510bit
+ {
+ get
+ {
+ try
+ {
+ return (HBFunctions.hb_qsv_available() & NativeConstants.HB_VCODEC_QSV_H265_10BIT) != 0;
+ }
+ catch (Exception)
+ {
+ // Silent failure. Typically this means the dll hasn't been built with --enable-qsv
+ return false;
+ }
+ }
+ }
}
}
|