diff options
author | sr55 <[email protected]> | 2020-07-18 16:58:39 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-07-18 16:58:51 +0100 |
commit | 0014ddb8b4a559e07beffd70bc712511e8c9d881 (patch) | |
tree | e7875019e84db0e916ed95ce80016d3a4385b8fd /win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs | |
parent | 2513a7306223c71a199bacc2502b8227272bec4f (diff) |
WinGui: Make QSV hardware detection APIs information available to the UI for use and refactor the video tab preset defaulting behaviour. Better defaults for Nvidia, AMD and VCE hardware based on current generation hardware.
Diffstat (limited to 'win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs b/win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs index b98794d5d..7a892dc22 100644 --- a/win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs +++ b/win/CS/HandBrake.Interop/Interop/HbLib/Wrappers/HbFunctionsDirect.cs @@ -497,5 +497,15 @@ namespace HandBrake.Interop.Interop.HbLib.Wrappers { return HBFunctions.hb_filter_get_tunes_json(filter_id); } + + public int hb_get_cpu_platform() + { + return HBFunctions.hb_get_cpu_platform(); + } + + public int qsv_hardware_generation(int cpu_platform) + { + return HBFunctions.qsv_hardware_generation(cpu_platform); + } } } |