From 0dc659ba728b5570564ef09cf1d73c8110529def Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 14 Jun 2017 22:09:19 +0100 Subject: WinGui: Remove OpenCL code that was breaking things. --- win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs | 7 +------ win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs | 4 ---- .../Interop/Interfaces/IHandBrakeInstance.cs | 5 +---- win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Video.cs | 5 ----- 4 files changed, 2 insertions(+), 19 deletions(-) (limited to 'win/CS/HandBrake.ApplicationServices/Interop') diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs index 854dc4cbe..7919086cc 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs @@ -216,15 +216,11 @@ namespace HandBrake.ApplicationServices.Interop /// /// The title index to scan (1-based, 0 for all titles). /// - /// - /// OpenCL enabled. - /// - public void StartScan(string path, int previewCount, TimeSpan minDuration, int titleIndex, bool clEnabled = false) + public void StartScan(string path, int previewCount, TimeSpan minDuration, int titleIndex) { this.previewCount = previewCount; IntPtr pathPtr = InteropUtilities.ToUtf8PtrFromString(path); - HBFunctions.hb_opencl_set_enable(this.hbHandle, clEnabled ? 1 : 0); HBFunctions.hb_scan(this.hbHandle, pathPtr, titleIndex, previewCount, 1, (ulong)(minDuration.TotalSeconds * 90000)); Marshal.FreeHGlobal(pathPtr); @@ -372,7 +368,6 @@ namespace HandBrake.ApplicationServices.Interop NullValueHandling = NullValueHandling.Ignore, }; - HBFunctions.hb_opencl_set_enable(this.hbHandle, encodeObject.Video.OpenCL ? 1 : 0); string encode = JsonConvert.SerializeObject(encodeObject, Formatting.Indented, settings); HBFunctions.hb_add_json(this.hbHandle, InteropUtilities.ToUtf8PtrFromString(encode)); HBFunctions.hb_start(this.hbHandle); diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs index beb572f0d..beaf2e689 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HbLib/HbFunctions.cs @@ -71,10 +71,6 @@ namespace HandBrake.ApplicationServices.Interop.HbLib [DllImport("hb", EntryPoint = "hb_dvd_set_dvdnav", CallingConvention = CallingConvention.Cdecl)] public static extern void hb_dvd_set_dvdnav(int enable); - // void hb_opencl_set_enable(hb_handle_t* h, int enable_opencl); - [DllImport("hb", EntryPoint = "hb_opencl_set_enable", CallingConvention = CallingConvention.Cdecl)] - public static extern void hb_opencl_set_enable(IntPtr hbHandle, int enable); - /// Return Type: void ///param0: hb_handle_t* ///path: char* diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs b/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs index 910621d81..d0338aea5 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Interfaces/IHandBrakeInstance.cs @@ -132,10 +132,7 @@ namespace HandBrake.ApplicationServices.Interop.Interfaces /// /// The min Duration. /// - /// - /// The title index to scan (1-based, 0 for all titles). - /// - void StartScan(string path, int previewCount, TimeSpan minDuration, int titleIndex, bool clEnabled = false); + void StartScan(string path, int previewCount, TimeSpan minDuration, int titleIndex); /// /// Stops the current encode. diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Video.cs b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Video.cs index 6844eaf0d..b22910768 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Video.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/Video.cs @@ -77,11 +77,6 @@ namespace HandBrake.ApplicationServices.Interop.Json.Encode /// public string Tune { get; set; } - /// - /// Gets or sets a value indicating whether open cl. - /// - public bool OpenCL { get; set; } - /// /// Gets or sets a value indicating whether hw decode. /// -- cgit v1.2.3