-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+\r
[AttributeUsage(AttributeTargets.Field)]\r
public sealed class DisplayStringAttribute : Attribute\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+\r
public class EncodeProgressEventArgs : EventArgs\r
{\r
public float FractionComplete { get; set; }\r
-namespace HandBrake.Interop\r
+using HandBrake.Interop.Model;\r
+using HandBrake.Interop.Model.Encoding;\r
+using HandBrake.Interop.SourceData;\r
+\r
+namespace HandBrake.Interop\r
{\r
using System;\r
using System.Collections.Generic;\r
using System.IO;\r
using System.Linq;\r
using System.Runtime.InteropServices;\r
- using System.Text;\r
- using System.Timers;\r
- using System.Threading;\r
using System.Windows.Media.Imaging;\r
- using HandBrake.SourceData;\r
- using HandBrake.Interop;\r
\r
/// <summary>\r
/// A wrapper for a HandBrake instance.\r
HbLib.hb_register_error_handler(errorCallback);\r
}\r
\r
- this.hbHandle = HbLib.hb_init(verbosity, update_check: 0);\r
+ this.hbHandle = HbLib.hb_init(verbosity, 0);\r
}\r
\r
/// <summary>\r
for (int i = 0; i < nativeJob.height; i++)\r
{\r
Marshal.Copy(managedBuffer, i * nativeJob.width * 4, ptr, nativeJob.width * 4);\r
- ptr = IntPtr.Add(ptr, bitmapData.Stride);\r
+ ptr = AddOffset(ptr, bitmapData.Stride);\r
}\r
\r
bitmap.UnlockBits(bitmapData);\r
}\r
}\r
\r
+ public static IntPtr AddOffset(IntPtr src, int offset)\r
+ {\r
+ return new IntPtr(src.ToInt64() + offset);\r
+ }\r
+\r
/// <summary>\r
/// Starts an encode with the given job.\r
/// </summary>\r
<AppDesignerFolder>Properties</AppDesignerFolder>\r
<RootNamespace>HandBrake.Interop</RootNamespace>\r
<AssemblyName>HandBrakeInterop</AssemblyName>\r
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>\r
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>\r
<FileAlignment>512</FileAlignment>\r
<FileUpgradeFlags>\r
</FileUpgradeFlags>\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+ using System.Runtime.InteropServices;\r
\r
internal partial class NativeConstants\r
{\r
{\r
using System;\r
using System.Collections.Generic;\r
- using System.Linq;\r
- using System.Text;\r
using System.Runtime.InteropServices;\r
\r
/// <summary>\r
namespace HandBrake.Interop\r
{\r
- using System;\r
- using System.Collections.Generic;\r
- using System.Linq;\r
- using System.Text;\r
-\r
/// <summary>\r
/// Represents a language.\r
/// </summary>\r
namespace HandBrake.Interop\r
{\r
- using System;\r
using System.Collections.Generic;\r
- using System.Linq;\r
- using System.Text;\r
\r
/// <summary>\r
/// Contains utilities for converting language codes.\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+\r
public class MessageLoggedEventArgs : EventArgs\r
{\r
public string Message { get; set; }\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
public class Cropping\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.Xml.Serialization;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
+ using System;\r
+ using System.Collections.Generic;\r
+ using System.Xml.Serialization;\r
+\r
public class EncodeJob\r
{\r
public SourceType SourceType { get; set; }\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Anamorphic\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum AudioEncoder\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public class AudioEncoding\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Decomb\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Deinterlace\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Denoise\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Detelecine\r
{\r
using System.Collections.Generic;\r
using System.Linq;\r
using System.Text;\r
+using HandBrake.Interop.Model;\r
+using HandBrake.Interop.Model.Encoding;\r
\r
namespace HandBrake.Interop\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum Mixdown\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum OutputExtension\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.ComponentModel;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum OutputFormat\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum VideoEncodeRateType\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model.Encoding\r
{\r
public enum VideoEncoder\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
public class Size\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
public class SourceSubtitle\r
{\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
public enum SourceType\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
public class SrtSubtitle\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop.Model\r
{\r
+ using System.Collections.Generic;\r
+\r
public class Subtitles\r
{\r
public List<SrtSubtitle> SrtSubtitles { get; set; }\r
{\r
using System;\r
using System.Collections.Generic;\r
- using System.Linq;\r
- using System.Text;\r
\r
/// <summary>\r
/// Represents a HandBrake style native list.\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+\r
public class ScanProgressEventArgs : EventArgs\r
{\r
public int CurrentTitle { get; set; }\r
/* AudioTrack.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
-using System;\r
-using System.Collections.Generic;\r
-using System.IO;\r
-using System.Text.RegularExpressions;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.Interop.SourceData\r
{\r
/// <summary>\r
/// An object represending an AudioTrack associated with a Title, in a DVD\r
/* Chapter.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
-using System;\r
-using System.Collections.Generic;\r
-using System.IO;\r
-using System.Text.RegularExpressions;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.Interop.SourceData\r
{\r
+ using System;\r
+\r
/// <summary>\r
/// An object representing a Chapter aosciated with a Title, in a DVD\r
/// </summary>\r
/* Subtitle.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
-using System.Collections.Generic;\r
-using System.IO;\r
-using System.Text.RegularExpressions;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.Interop.SourceData\r
{\r
/// <summary>\r
/// An object that represents a subtitle associated with a Title, in a DVD\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.Interop.SourceData\r
{\r
public enum SubtitleType\r
{\r
/* Title.cs $\r
- \r
- This file is part of the HandBrake source code.\r
- Homepage: <http://handbrake.fr>.\r
- It may be used under the terms of the GNU General Public License. */\r
+ This file is part of the HandBrake source code.\r
+ Homepage: <http://handbrake.fr>.\r
+ It may be used under the terms of the GNU General Public License. */\r
\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Globalization;\r
-using System.IO;\r
-using System.Text.RegularExpressions;\r
-using HandBrake.Interop;\r
+using HandBrake.Interop.Model;\r
\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.Interop.SourceData\r
{\r
+ using System;\r
+ using System.Collections.Generic;\r
+ using System.Globalization;\r
+\r
/// <summary>\r
/// An object that represents a single Title of a DVD\r
/// </summary>\r