CategoryFile = HandBrakeInterop.vsmdi\r
EndGlobalSection\r
GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+ Debug|Mixed Platforms = Debug|Mixed Platforms\r
Debug|x64 = Debug|x64\r
Debug|x86 = Debug|x86\r
+ Release|Mixed Platforms = Release|Mixed Platforms\r
Release|x64 = Release|x64\r
Release|x86 = Release|x86\r
EndGlobalSection\r
GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+ {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|Mixed Platforms.ActiveCfg = Debug|x86\r
+ {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|Mixed Platforms.Build.0 = Debug|x86\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x64.ActiveCfg = Debug|x64\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x64.Build.0 = Debug|x64\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x86.ActiveCfg = Debug|x86\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Debug|x86.Build.0 = Debug|x86\r
+ {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|Mixed Platforms.ActiveCfg = Release|x86\r
+ {F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|Mixed Platforms.Build.0 = Release|x86\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x64.ActiveCfg = Release|x64\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x64.Build.0 = Release|x64\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x86.ActiveCfg = Release|x86\r
{F0A61F62-2C3B-4A87-AFF4-0C4256253DA1}.Release|x86.Build.0 = Release|x86\r
+ {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU\r
+ {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU\r
{D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x64.ActiveCfg = Debug|Any CPU\r
{D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x64.Build.0 = Debug|Any CPU\r
{D721824C-CAFA-40B1-83C9-83E4B1215D60}.Debug|x86.ActiveCfg = Debug|Any CPU\r
+ {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU\r
+ {D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|Mixed Platforms.Build.0 = Release|Any CPU\r
{D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|x64.ActiveCfg = Release|Any CPU\r
{D721824C-CAFA-40B1-83C9-83E4B1215D60}.Release|x86.ActiveCfg = Release|Any CPU\r
EndGlobalSection\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using HandBrake.SourceData;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+ using System.Collections.Generic;\r
+ using System.Linq;\r
+ using System.Text;\r
+ using HandBrake.SourceData;\r
+\r
public static class Converters\r
{\r
private static Dictionary<double, int> vrates = new Dictionary<double, int>\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 EncodeCompletedEventArgs : EventArgs\r
{\r
public bool Error { 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\r
{\r
+ using System;\r
+\r
public class EncodeProgressEventArgs : EventArgs\r
{\r
public float FractionComplete { get; set; }\r
public event EventHandler<EncodeCompletedEventArgs> EncodeCompleted;\r
\r
/// <summary>\r
- /// Destructor.\r
+ /// Finalizes an instance of the HandBrakeInstance class.\r
/// </summary>\r
~HandBrakeInstance()\r
{\r
}\r
\r
/// <summary>\r
- /// The list of titles on this instance.\r
+ /// Gets the list of titles on this instance.\r
/// </summary>\r
public List<Title> Titles\r
{\r
}\r
\r
/// <summary>\r
- /// The number of previews created during scan.\r
+ /// Gets the number of previews created during scan.\r
/// </summary>\r
public int PreviewCount\r
{\r
/// <summary>\r
/// Initializes this instance.\r
/// </summary>\r
- /// <param name="verbosity"></param>\r
+ /// <param name="verbosity">The code for the logging verbosity to use.</param>\r
public void Initialize(int verbosity)\r
{\r
HandBrakeUtils.RegisterLogger();\r
this.EncodeProgress(this, progressEventArgs);\r
}\r
}\r
- else if (state.state == NativeConstants.HB_STATE_MUXING)\r
- {\r
- //System.Diagnostics.Debug.WriteLine("Muxing...");\r
- }\r
else if (state.state == NativeConstants.HB_STATE_WORKDONE)\r
{\r
InteropUtilities.FreeMemory(this.encodeAllocatedMemory);\r
\r
foreach (Tuple<AudioEncoding, int> outputTrack in outputTrackList)\r
{\r
- audioList.Add(ConvertAudioBack(outputTrack.Item1, titleAudio[outputTrack.Item2 - 1], outputTrack.Item2, numTracks++, allocatedMemory));\r
+ audioList.Add(ConvertAudioBack(outputTrack.Item1, titleAudio[outputTrack.Item2 - 1], numTracks++, allocatedMemory));\r
}\r
\r
NativeList nativeAudioList = InteropUtilities.ConvertListBack<hb_audio_s>(audioList);\r
subtitleConfig.src_codeset = srtSubtitle.CharacterCode;\r
subtitleConfig.src_filename = srtSubtitle.FileName;\r
subtitleConfig.offset = srtSubtitle.Offset;\r
- //subtitleConfig.dest = hb_subtitle_config_s_subdest.PASSTHRUSUB;\r
subtitleConfig.default_track = srtSubtitle.Default ? 1 : 0;\r
\r
int srtAddSucceded = HBFunctions.hb_srt_add(ref nativeJob, ref subtitleConfig, srtSubtitle.LanguageCode);\r
/// </summary>\r
/// <param name="encoding">The encoding to apply.</param>\r
/// <param name="baseStruct">The base native structure.</param>\r
- /// <param name="track"></param>\r
- /// <param name="outputTrack"></param>\r
+ /// <param name="outputTrack">The output track number (0-based).</param>\r
/// <param name="allocatedMemory">The collection of allocated memory.</param>\r
/// <returns>The resulting native audio structure.</returns>\r
- private hb_audio_s ConvertAudioBack(AudioEncoding encoding, hb_audio_s baseStruct, int track, int outputTrack, List<IntPtr> allocatedMemory)\r
+ private hb_audio_s ConvertAudioBack(AudioEncoding encoding, hb_audio_s baseStruct, int outputTrack, List<IntPtr> allocatedMemory)\r
{\r
hb_audio_s nativeAudio = baseStruct;\r
\r
- //nativeAudio.config.input.track = track;\r
nativeAudio.config.output.track = outputTrack;\r
\r
if (encoding.Encoder == AudioEncoder.Passthrough)\r
\r
if (profile.KeepDisplayAspect)\r
{\r
- if (profile.Width == 0 && profile.Height == 0 || profile.Width == 0)\r
+ if ((profile.Width == 0 && profile.Height == 0) || profile.Width == 0)\r
{\r
width = (int)((double)height * croppedAspectRatio);\r
if (profile.MaxWidth > 0 && width > profile.MaxWidth)\r
Other similar extension points exist, see Microsoft.Common.targets.\r
<Target Name="BeforeBuild">\r
</Target>-->\r
- <Target Name="AfterBuild">\r
+ <!--<Target Name="AfterBuild">\r
<Copy SourceFiles="..\..\Lib\$(Platform)\hb.dll" DestinationFolder="$(OutDir)" />\r
- </Target>\r
+ </Target>-->\r
</Project>
\ No newline at end of file
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using HandBrake.SourceData;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System;\r
+ using System.Collections.Generic;\r
+ using System.Linq;\r
+ using HandBrake.SourceData;\r
+\r
public static class HandBrakeUtils\r
{\r
/// <summary>\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
using System.Runtime.InteropServices;\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
using System.Text;\r
-namespace HandBrake.Interop\r
+// <auto-generated />\r
+\r
+namespace HandBrake.Interop\r
{\r
public partial class NativeConstants\r
{\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
using System.Runtime.InteropServices;\r
-using System.Runtime.InteropServices;\r
+// <auto-generated />\r
+\r
+using System.Runtime.InteropServices;\r
\r
namespace HandBrake.Interop\r
{\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Runtime.InteropServices;\r
\r
namespace HandBrake.Interop\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Runtime.InteropServices;\r
\r
namespace HandBrake.Interop\r
/// int\r
public int pass;\r
\r
- /// char*\r
- //[MarshalAs(UnmanagedType.LPStr)]\r
- //public string x264opts;\r
-\r
public IntPtr advanced_opts;\r
\r
/// int\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Runtime.InteropServices;\r
\r
namespace HandBrake.Interop\r
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
using System.Runtime.InteropServices;\r
\r
namespace HandBrake.Interop\r
/// <summary>\r
/// Creats a new, empty native HandBrake list.\r
/// </summary>\r
+ /// <param name="capacity">The capacity of the new list.</param>\r
/// <returns>The new native list.</returns>\r
public static NativeList CreateNativeList(int capacity)\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
public static class MarshalingConstants\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 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\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\r
{\r
+ using System;\r
+ using System.Collections.Generic;\r
+ using System.Linq;\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.ComponentModel.DataAnnotations;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum Anamorphic\r
{\r
[Display(Name = "None")]\r
-using System;\r
-using System.Collections.Generic;\r
-using System.ComponentModel.DataAnnotations;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum AudioEncoder\r
{\r
[Display(Name = "AAC (faac)")]\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 AudioEncoding\r
{\r
public int InputNumber { get; set; }\r
/// Gets or sets the bitrate (in kbps) of this track.\r
/// </summary>\r
public int Bitrate { get; set; }\r
+\r
public Mixdown Mixdown { get; set; }\r
\r
/// <summary>\r
- /// Obsolete. Use SampleRateRaw instead.\r
+ /// Gets or sets the sample rate. Obsolete. Use SampleRateRaw instead.\r
/// </summary>\r
[Obsolete("This property is ignored and only exists for backwards compatibility. Use SampleRateRaw instead.")]\r
public string SampleRate { 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\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\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\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\r
{\r
public enum Detelecine\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.Collections.Generic;\r
+\r
public class EncodingProfile\r
{\r
public EncodingProfile()\r
-using System;\r
-using System.Collections.Generic;\r
-using System.ComponentModel.DataAnnotations;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum Mixdown\r
{\r
[Display(Name = "Dolby Pro Logic II")]\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
public enum OutputExtension\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.ComponentModel.DataAnnotations;\r
-using System.Linq;\r
-using System.Text;\r
-using System.ComponentModel;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum OutputFormat\r
{\r
[Display(Name = "MP4")]\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
public enum VideoEncodeRateType\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.ComponentModel.DataAnnotations;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum VideoEncoder\r
{\r
[Display(Name = "H.264 (x264)")]\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
public class Limits\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
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\r
{\r
public class SourceSubtitle\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
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\r
{\r
+ using System.Collections.Generic;\r
+\r
public class Subtitles\r
{\r
public List<SrtSubtitle> SrtSubtitles { get; set; }\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.ComponentModel.DataAnnotations;\r
-\r
-namespace HandBrake.Interop\r
+namespace HandBrake.Interop\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum VideoRangeType\r
{\r
[Display(Name = "Chapters")]\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
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.SourceData\r
{\r
// Only contains 2 real codecs at the moment as those are what we care about. More will be added later.\r
public enum AudioCodec\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
{\r
/// <summary>\r
public class AudioTrack\r
{\r
/// <summary>\r
- /// The track number of this Audio Track\r
+ /// Gets or sets the track number of this Audio Track\r
/// </summary>\r
public int TrackNumber { get; set; }\r
\r
public AudioCodec Codec { get; set; }\r
\r
/// <summary>\r
- /// The language (if detected) of this Audio Track\r
+ /// Gets or sets the language (if detected) of this Audio Track\r
/// </summary>\r
public string Language { get; set; }\r
\r
+ /// <summary>\r
+ /// Gets or sets the language code for this audio track.\r
+ /// </summary>\r
public string LanguageCode { get; set; }\r
\r
+ /// <summary>\r
+ /// Gets or sets the description for this audio track.\r
+ /// </summary>\r
public string Description { get; set; }\r
\r
/// <summary>\r
public int ChannelLayout { get; set; }\r
\r
/// <summary>\r
- /// The frequency (in Hz) of this Audio Track\r
+ /// Gets or sets the frequency (in Hz) of this Audio Track\r
/// </summary>\r
public int SampleRate { get; set; }\r
\r
/// <summary>\r
- /// The bitrate (in bits/sec) of this Audio Track.\r
+ /// Gets or sets the bitrate (in bits/sec) of this Audio Track.\r
/// </summary>\r
public int Bitrate { get; set; }\r
\r
+ /// <summary>\r
+ /// Gets the display string for this audio track.\r
+ /// </summary>\r
public string Display\r
{\r
get\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets the display string for this audio track (not including track number)\r
+ /// </summary>\r
public string NoTrackDisplay\r
{\r
get\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
{\r
+ using System;\r
+\r
/// <summary>\r
/// An object representing a Chapter aosciated with a Title, in a DVD\r
/// </summary>\r
public class Chapter\r
{\r
/// <summary>\r
- /// The number of this Chapter, in regards to its parent Title\r
+ /// Gets or sets the number of this Chapter, in regards to its parent Title\r
/// </summary>\r
public int ChapterNumber { get; set; }\r
\r
/// <summary>\r
- /// The length in time this Chapter spans\r
+ /// Gets or sets the length in time this Chapter spans\r
/// </summary>\r
public TimeSpan Duration { get; set; }\r
\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-using System.ComponentModel.DataAnnotations;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.SourceData\r
{\r
+ using System.ComponentModel.DataAnnotations;\r
+\r
public enum InputType\r
{\r
[Display(Name = "File")]\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
{\r
/// <summary>\r
public class Subtitle\r
{\r
/// <summary>\r
- /// The track number of this Subtitle\r
+ /// Gets or sets the track number of this Subtitle\r
/// </summary>\r
public int TrackNumber { get; set; }\r
\r
/// <summary>\r
- /// The language (if detected) of this Subtitle\r
+ /// Gets or sets the language (if detected) of this Subtitle\r
/// </summary>\r
public string Language { get; set; }\r
\r
/// <summary>\r
- /// Langauage Code\r
+ /// Gets or sets the Langauage Code.\r
/// </summary>\r
public string LanguageCode { get; set; }\r
\r
+ /// <summary>\r
+ /// Gets or sets the subtitle type.\r
+ /// </summary>\r
public SubtitleType SubtitleType { get; set; }\r
\r
+ /// <summary>\r
+ /// Gets or sets the subtitle source.\r
+ /// </summary>\r
public SubtitleSource SubtitleSource { get; set; }\r
\r
/// <summary>\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.SourceData\r
{\r
public enum SubtitleSource\r
{\r
-using System;\r
-using System.Collections.Generic;\r
-using System.Linq;\r
-using System.Text;\r
-\r
-namespace HandBrake.SourceData\r
+namespace HandBrake.SourceData\r
{\r
public enum SubtitleType\r
{\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
-\r
namespace HandBrake.SourceData\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
+\r
/// <summary>\r
/// An object that represents a single Title of a DVD\r
/// </summary>\r
private readonly List<Subtitle> subtitles;\r
\r
/// <summary>\r
- /// The constructor for this object\r
+ /// Initializes a new instance of the Title class.\r
/// </summary>\r
public Title()\r
{\r
public InputType InputType { get; set; }\r
\r
/// <summary>\r
- /// Collection of chapters in this Title\r
+ /// Gets a collection of chapters in this Title\r
/// </summary>\r
public List<Chapter> Chapters\r
{\r
}\r
\r
/// <summary>\r
- /// Collection of audio tracks associated with this Title\r
+ /// Gets a collection of audio tracks associated with this Title\r
/// </summary>\r
public List<AudioTrack> AudioTracks\r
{\r
}\r
\r
/// <summary>\r
- /// Collection of subtitles associated with this Title\r
+ /// Gets a collection of subtitles associated with this Title\r
/// </summary>\r
public List<Subtitle> Subtitles\r
{\r
}\r
\r
/// <summary>\r
- /// The track number of this Title (1-based).\r
+ /// Gets or sets the track number of this Title (1-based).\r
/// </summary>\r
public int TitleNumber { get; set; }\r
\r
/// <summary>\r
- /// The length in time of this Title\r
+ /// Gets or sets the length in time of this Title\r
/// </summary>\r
public TimeSpan Duration { get; set; }\r
\r
/// <summary>\r
- /// The resolution (width/height) of this Title\r
+ /// Gets or sets the resolution (width/height) of this Title\r
/// </summary>\r
public Size Resolution { get; set; }\r
\r
/// <summary>\r
- /// The aspect ratio of this Title\r
+ /// Gets or sets the aspect ratio of this Title\r
/// </summary>\r
public double AspectRatio { get; set; }\r
\r
public int AngleCount { get; set; }\r
\r
/// <summary>\r
- /// Par Value\r
+ /// Gets or sets the pixel aspect ratio.\r
/// </summary>\r
public Size ParVal { get; set; }\r
\r
/// <summary>\r
- /// The automatically detected crop region for this Title.\r
- /// This is an int array with 4 items in it as so:\r
- /// 0: \r
- /// 1: \r
- /// 2: \r
- /// 3: \r
+ /// Gets or sets the automatically detected crop region for this Title.\r
/// </summary>\r
public Cropping AutoCropDimensions { get; set; }\r
\r
public double Framerate { get; set; }\r
\r
/// <summary>\r
- /// The total number of frames in this title.\r
+ /// Gets the total number of frames in this title.\r
/// </summary>\r
public int Frames\r
{\r
this.Duration.Minutes, this.Duration.Seconds);\r
}\r
\r
+ /// <summary>\r
+ /// Gets the display string for this title.\r
+ /// </summary>\r
public string Display\r
{\r
get\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
+ using System.Collections.Generic;\r
+ using System.Linq;\r
+ using System.Text;\r
+\r
public static class Utilities\r
{\r
public static int GreatestCommonFactor(int a, int b)\r