From 11eabcf6e929b316ccc3509d73ab176beca2522f Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 27 Jan 2015 20:45:39 +0000 Subject: WinGui: Strip out some unused code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6821 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrakeInterop/HandBrakeInstance.cs | 85 +--------------------- .../Interfaces/IHandBrakeInstance.cs | 57 +-------------- .../HandBrakeInterop/Json/Scan/TitleList.cs | 1 + 3 files changed, 4 insertions(+), 139 deletions(-) (limited to 'win/CS/HandBrake.Interop') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs index 4d9b6791b..6920295cb 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs @@ -180,54 +180,6 @@ namespace HandBrake.Interop this.hbHandle = HBFunctions.hb_init(verbosity, update_check: 0); } - /// - /// Starts scanning the given path. - /// - /// - /// The path to the video to scan. - /// - /// - /// The number of preview images to make. - /// - /// - /// The minimum duration of a title to show up on the scan. - /// - public void StartScan(string path, int previewCount, TimeSpan minDuration) - { - this.StartScan(path, previewCount, minDuration, 0); - } - - /// - /// Starts a scan for the given input path. - /// - /// - /// The path of the video to scan. - /// - /// - /// The number of preview images to generate for each title while scanning. - /// - public void StartScan(string path, int previewCount) - { - this.StartScan(path, previewCount, TimeSpan.FromSeconds(10), 0); - } - - /// - /// Starts a scan of the given path. - /// - /// - /// The path of the video to scan. - /// - /// - /// The number of preview images to generate for each title while scanning. - /// - /// - /// The title index to scan (1-based, 0 for all titles). - /// - public void StartScan(string path, int previewCount, int titleIndex) - { - this.StartScan(path, previewCount, TimeSpan.Zero, titleIndex); - } - /// /// Starts a scan of the given path. /// @@ -377,24 +329,6 @@ namespace HandBrake.Interop } } - /// - /// Starts an encode with the given job. - /// - /// - /// The job to start. - /// - /// - /// The title. - /// - /// - /// The scan Preview Count. - /// - [HandleProcessCorruptedStateExceptions] - public void StartEncode(EncodeJob jobToStart, Title title, int scanPreviewCount) - { - this.StartEncode(jobToStart, title, false, 0, 0, 0, scanPreviewCount); - } - /// /// Starts an encode with the given job. /// @@ -404,23 +338,8 @@ namespace HandBrake.Interop /// /// The title. /// - /// - /// The scan Preview Count. - /// - /// - /// Preview Feature: Preview to encode - /// - /// - /// Number of seconds to encode for the preview - /// - /// - /// The overall Selected Length Seconds. - /// - /// - /// Number of previews - /// - [HandleProcessCorruptedStateExceptions] - public void StartEncode(EncodeJob job, Title title, bool preview, int previewNumber, int previewSeconds, double overallSelectedLengthSeconds, int scanPreviewCount) + [HandleProcessCorruptedStateExceptions] + public void StartEncode(EncodeJob job, Title title) { JsonEncodeObject encodeObject = EncodeFactory.Create(job, title); diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Interfaces/IHandBrakeInstance.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Interfaces/IHandBrakeInstance.cs index 40dd3de11..e74ea81e8 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Interfaces/IHandBrakeInstance.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Interfaces/IHandBrakeInstance.cs @@ -109,62 +109,7 @@ namespace HandBrake.Interop.Interfaces /// /// The title. /// - /// - /// The scan Preview Count. - /// - void StartEncode(EncodeJob jobToStart, Title title, int scanPreviewCount); - - /// - /// Starts an encode with the given job. - /// - /// - /// The job to start. - /// - /// - /// The title. - /// - /// - /// True if this is a preview encode. - /// - /// - /// The preview number to start the encode at (0-based). - /// - /// - /// The number of seconds in the preview. - /// - /// - /// The currently selected encode length. Used in preview - /// for calculating bitrate when the target size would be wrong. - /// - /// - /// The scan Preview Count. - /// - void StartEncode(EncodeJob job, Title title, bool preview, int previewNumber, int previewSeconds, double overallSelectedLengthSeconds, int scanPreviewCount); - - /// - /// Starts scanning the given path. - /// - /// - /// The path to the video to scan. - /// - /// - /// The number of preview images to make. - /// - void StartScan(string path, int previewCount); - - /// - /// Starts a scan of the given path. - /// - /// - /// The path of the video to scan. - /// - /// - /// The number of previews to make on each title. - /// - /// - /// The title index to scan (1-based, 0 for all titles). - /// - void StartScan(string path, int previewCount, int titleIndex); + void StartEncode(EncodeJob jobToStart, Title title); /// /// Starts a scan of the given path. diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Scan/TitleList.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Scan/TitleList.cs index c65962c66..cff3b3035 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Scan/TitleList.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Json/Scan/TitleList.cs @@ -93,6 +93,7 @@ namespace HandBrake.Interop.Json.Scan /// /// Gets or sets the type. + /// HB_DVD_TYPE, HB_BD_TYPE, HB_STREAM_TYPE, HB_FF_STREAM_TYPE /// public int Type { get; set; } -- cgit v1.2.3