summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-06-04 21:19:13 +0000
committersr55 <[email protected]>2010-06-04 21:19:13 +0000
commit6874e9ed1779e1c7813d8b356c1fe9d716d545e1 (patch)
tree6e5b8ba1066aa029e7785ede6d6b3f538b143a5c /win
parentb53def77923e7fad2f405a07e23f21dbdcc231da (diff)
WinGui:
#interop - Missing documentation headers + stylecop tweaks / cleanup git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3356 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/C#/interop/EncodeProgressEventArgs.cs22
-rw-r--r--win/C#/interop/HbLib.cs200
-rw-r--r--win/C#/interop/Model/Cropping.cs18
-rw-r--r--win/C#/interop/Model/EncodeJob.cs49
-rw-r--r--win/C#/interop/Model/Encoding/Anamorphic.cs3
-rw-r--r--win/C#/interop/Model/Encoding/AudioEncoder.cs3
-rw-r--r--win/C#/interop/Model/Encoding/AudioEncoding.cs26
-rw-r--r--win/C#/interop/Model/Encoding/Decomb.cs3
-rw-r--r--win/C#/interop/Model/Encoding/Deinterlace.cs3
-rw-r--r--win/C#/interop/Model/Encoding/Denoise.cs3
-rw-r--r--win/C#/interop/Model/Encoding/Detelecine.cs3
-rw-r--r--win/C#/interop/Model/Encoding/EncodingProfile.cs9
-rw-r--r--win/C#/interop/Model/Encoding/Mixdown.cs3
-rw-r--r--win/C#/interop/Model/Encoding/OutputExtension.cs3
-rw-r--r--win/C#/interop/Model/Encoding/OutputFormat.cs3
-rw-r--r--win/C#/interop/Model/Encoding/VideoEncodeRateType.cs3
-rw-r--r--win/C#/interop/Model/Encoding/VideoEncoder.cs3
-rw-r--r--win/C#/interop/Model/Size.cs19
-rw-r--r--win/C#/interop/Model/SourceSubtitle.cs21
-rw-r--r--win/C#/interop/Model/SourceType.cs18
-rw-r--r--win/C#/interop/Model/SrtSubtitle.cs28
-rw-r--r--win/C#/interop/Model/Subtitles.cs10
-rw-r--r--win/C#/interop/ScanProgressEventArgs.cs10
-rw-r--r--win/C#/interop/Settings.StyleCop10
-rw-r--r--win/C#/interop/SourceData/AudioTrack.cs38
-rw-r--r--win/C#/interop/SourceData/Chapter.cs4
-rw-r--r--win/C#/interop/SourceData/Subtitle.cs28
-rw-r--r--win/C#/interop/SourceData/SubtitleType.cs12
-rw-r--r--win/C#/interop/SourceData/Title.cs69
29 files changed, 434 insertions, 190 deletions
diff --git a/win/C#/interop/EncodeProgressEventArgs.cs b/win/C#/interop/EncodeProgressEventArgs.cs
index 9ebcada9e..7241104ba 100644
--- a/win/C#/interop/EncodeProgressEventArgs.cs
+++ b/win/C#/interop/EncodeProgressEventArgs.cs
@@ -11,12 +11,34 @@ namespace HandBrake.Interop
{
using System;
+ /// <summary>
+ /// Encode Progress Event Arguments
+ /// </summary>
public class EncodeProgressEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets or sets FractionComplete.
+ /// </summary>
public float FractionComplete { get; set; }
+
+ /// <summary>
+ /// Gets or sets CurrentFrameRate.
+ /// </summary>
public float CurrentFrameRate { get; set; }
+
+ /// <summary>
+ /// Gets or sets AverageFrameRate.
+ /// </summary>
public float AverageFrameRate { get; set; }
+
+ /// <summary>
+ /// Gets or sets EstimatedTimeLeft.
+ /// </summary>
public TimeSpan EstimatedTimeLeft { get; set; }
+
+ /// <summary>
+ /// Gets or sets Pass.
+ /// </summary>
public int Pass { get; set; }
}
}
diff --git a/win/C#/interop/HbLib.cs b/win/C#/interop/HbLib.cs
index 7a5e420e7..80a52efdf 100644
--- a/win/C#/interop/HbLib.cs
+++ b/win/C#/interop/HbLib.cs
@@ -14,38 +14,38 @@ namespace HandBrake.Interop
internal partial class NativeConstants
{
- public const int HB_ACODEC_MASK = 0x00FF00;
- public const int HB_ACODEC_FAAC = 0x000100;
- public const int HB_ACODEC_LAME = 0x000200;
+ public const int HB_ACODEC_MASK = 0x00FF00;
+ public const int HB_ACODEC_FAAC = 0x000100;
+ public const int HB_ACODEC_LAME = 0x000200;
public const int HB_ACODEC_VORBIS = 0x000400;
- public const int HB_ACODEC_AC3 = 0x000800;
- public const int HB_ACODEC_MPGA = 0x001000;
- public const int HB_ACODEC_LPCM = 0x002000;
- public const int HB_ACODEC_DCA = 0x004000;
+ public const int HB_ACODEC_AC3 = 0x000800;
+ public const int HB_ACODEC_MPGA = 0x001000;
+ public const int HB_ACODEC_LPCM = 0x002000;
+ public const int HB_ACODEC_DCA = 0x004000;
public const int HB_ACODEC_FFMPEG = 0x008000;
public const int HB_ACODEC_CA_AAC = 0x010000;
- public const int HB_AMIXDOWN_DCA_FORMAT_MASK = 0x00FFF000;
- public const int HB_AMIXDOWN_A52_FORMAT_MASK = 0x00000FF0;
- public const int HB_AMIXDOWN_DISCRETE_CHANNEL_COUNT_MASK = 0x0000000F;
- public const int HB_AMIXDOWN_MONO = 0x01000001;
- public const int HB_AMIXDOWN_STEREO = 0x02002022;
- public const int HB_AMIXDOWN_DOLBY = 0x042070A2;
- public const int HB_AMIXDOWN_DOLBYPLII = 0x084094A2;
- public const int HB_AMIXDOWN_6CH = 0x10089176;
+ public const int HB_AMIXDOWN_DCA_FORMAT_MASK = 0x00FFF000;
+ public const int HB_AMIXDOWN_A52_FORMAT_MASK = 0x00000FF0;
+ public const int HB_AMIXDOWN_DISCRETE_CHANNEL_COUNT_MASK = 0x0000000F;
+ public const int HB_AMIXDOWN_MONO = 0x01000001;
+ public const int HB_AMIXDOWN_STEREO = 0x02002022;
+ public const int HB_AMIXDOWN_DOLBY = 0x042070A2;
+ public const int HB_AMIXDOWN_DOLBYPLII = 0x084094A2;
+ public const int HB_AMIXDOWN_6CH = 0x10089176;
- public const int HB_VCODEC_MASK = 0x0000FF;
+ public const int HB_VCODEC_MASK = 0x0000FF;
public const int HB_VCODEC_FFMPEG = 0x000001;
- public const int HB_VCODEC_X264 = 0x000002;
+ public const int HB_VCODEC_X264 = 0x000002;
public const int HB_VCODEC_THEORA = 0x000004;
- public const int HB_MUX_MASK = 0xFF0000;
- public const int HB_MUX_MP4 = 0x010000;
- public const int HB_MUX_PSP = 0x020000;
- public const int HB_MUX_AVI = 0x040000;
- public const int HB_MUX_OGM = 0x080000;
- public const int HB_MUX_IPOD = 0x100000;
- public const int HB_MUX_MKV = 0x200000;
+ public const int HB_MUX_MASK = 0xFF0000;
+ public const int HB_MUX_MP4 = 0x010000;
+ public const int HB_MUX_PSP = 0x020000;
+ public const int HB_MUX_AVI = 0x040000;
+ public const int HB_MUX_OGM = 0x080000;
+ public const int HB_MUX_IPOD = 0x100000;
+ public const int HB_MUX_MKV = 0x200000;
public const int HBTF_NO_IDR = 1 << 0;
@@ -63,14 +63,14 @@ namespace HandBrake.Interop
public const int AUDIO_F_DOLBY = 1 << 31;
- public const int HB_FRAME_IDR = 0x01;
- public const int HB_FRAME_I = 0x02;
- public const int HB_FRAME_AUDIO = 0x04;
- public const int HB_FRAME_P = 0x10;
- public const int HB_FRAME_B = 0x20;
- public const int HB_FRAME_BREF = 0x40;
- public const int HB_FRAME_KEY = 0x0F;
- public const int HB_FRAME_REF = 0xF0;
+ public const int HB_FRAME_IDR = 0x01;
+ public const int HB_FRAME_I = 0x02;
+ public const int HB_FRAME_AUDIO = 0x04;
+ public const int HB_FRAME_P = 0x10;
+ public const int HB_FRAME_B = 0x20;
+ public const int HB_FRAME_BREF = 0x40;
+ public const int HB_FRAME_KEY = 0x0F;
+ public const int HB_FRAME_REF = 0xF0;
public const int HB_CONFIG_MAX_SIZE = 8192;
@@ -128,8 +128,7 @@ namespace HandBrake.Interop
public int chapter_markers;
/// int[4]
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.I4)]
- public int[] crop;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.I4)] public int[] crop;
/// int
public int deinterlace;
@@ -192,7 +191,6 @@ namespace HandBrake.Interop
/// char*
//[MarshalAs(UnmanagedType.LPStr)]
//public string x264opts;
-
public IntPtr x264opts;
/// int
@@ -211,8 +209,7 @@ namespace HandBrake.Interop
public int mux;
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string file;
+ [MarshalAs(UnmanagedType.LPStr)] public string file;
/// int
public int largeFileSize;
@@ -252,8 +249,7 @@ namespace HandBrake.Interop
public uint frames_to_skip;
// Padding for the part of the struct we don't care about marshaling.
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24644, ArraySubType = UnmanagedType.U1)]
- public byte[] padding;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24644, ArraySubType = UnmanagedType.U1)] public byte[] padding;
}
[StructLayout(LayoutKind.Sequential)]
@@ -273,8 +269,7 @@ namespace HandBrake.Interop
internal struct hb_rate_s
{
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string @string;
+ [MarshalAs(UnmanagedType.LPStr)] public string @string;
/// int
public int rate;
@@ -289,8 +284,7 @@ namespace HandBrake.Interop
public int build;
/// char[32]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
- public string version;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] public string version;
/// hb_thread_t*
public IntPtr update_thread;
@@ -393,8 +387,7 @@ namespace HandBrake.Interop
public ulong duration;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string title;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string title;
}
internal enum hb_subtitle_s_subtype
@@ -438,18 +431,15 @@ namespace HandBrake.Interop
public hb_subtitle_s_subsource source;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string lang;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string lang;
/// char[4]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
- public string iso639_2;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)] public string iso639_2;
/// uint8_t->unsigned char
public byte type;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.U4)]
- public uint[] palette;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16, ArraySubType = UnmanagedType.U4)] public uint[] palette;
public int width;
@@ -481,32 +471,25 @@ namespace HandBrake.Interop
internal struct hb_metadata_s
{
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string name;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string name;
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string artist;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string artist;
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string composer;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string composer;
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string release_date;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string release_date;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string comment;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string comment;
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string album;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string album;
/// char[255]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
- public string genre;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)] public string genre;
/// uint32_t->unsigned int
public uint coverart_size;
@@ -539,12 +522,10 @@ namespace HandBrake.Interop
public Anonymous_990d28ea_6cf3_4fbc_8143_4df9513e9550 type;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string dvd;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string dvd;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string name;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string name;
//public fixed byte dvd[1024];
@@ -614,8 +595,7 @@ namespace HandBrake.Interop
public int rate_base;
/// int[4]
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.I4)]
- public int[] crop;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.I4)] public int[] crop;
//public fixed int crop[4];
@@ -723,25 +703,21 @@ namespace HandBrake.Interop
[StructLayout(LayoutKind.Explicit)]
internal struct hb_state_param_u
{
- [FieldOffset(0)]
- public hb_state_scanning_s scanning;
+ [FieldOffset(0)] public hb_state_scanning_s scanning;
- [FieldOffset(0)]
- public hb_state_working_s working;
+ [FieldOffset(0)] public hb_state_working_s working;
- [FieldOffset(0)]
- public hb_state_workdone_s workdone;
+ [FieldOffset(0)] public hb_state_workdone_s workdone;
- [FieldOffset(0)]
- public hb_state_muxing_s muxing;
+ [FieldOffset(0)] public hb_state_muxing_s muxing;
}
[StructLayout(LayoutKind.Sequential)]
internal struct hb_state_s
{
-
/// int
public int state;
+
public hb_state_param_u param;
}
@@ -755,8 +731,7 @@ namespace HandBrake.Interop
public hb_audio_config_s config;
// Padding for the part of the struct we don't care about marshaling.
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24600, ArraySubType = UnmanagedType.U1)]
- public byte[] padding;
+ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24600, ArraySubType = UnmanagedType.U1)] public byte[] padding;
/// Anonymous_e6c7b779_b5a3_4e80_9fa8_13619d14f545
//public Anonymous_e6c7b779_b5a3_4e80_9fa8_13619d14f545 priv;
@@ -796,8 +771,7 @@ namespace HandBrake.Interop
public double dynamic_range_compression;
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string name;
+ [MarshalAs(UnmanagedType.LPStr)] public string name;
}
[StructLayout(LayoutKind.Sequential)]
@@ -832,28 +806,23 @@ namespace HandBrake.Interop
internal struct Anonymous_a0a59d69_d9a4_4003_a198_f7c51511e31d
{
/// int
- [FieldOffset(0)]
- public int ac3;
+ [FieldOffset(0)] public int ac3;
/// int
- [FieldOffset(0)]
- public int dca;
+ [FieldOffset(0)] public int dca;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
internal struct hb_audio_config_lang_s
{
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string description;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string description;
/// char[1024]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- public string simple;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)] public string simple;
/// char[4]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
- public string iso639_2;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)] public string iso639_2;
/// uint8_t->unsigned char
public byte type;
@@ -863,16 +832,13 @@ namespace HandBrake.Interop
internal struct hb_mixdown_s
{
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string human_readable_name;
+ [MarshalAs(UnmanagedType.LPStr)] public string human_readable_name;
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string internal_name;
+ [MarshalAs(UnmanagedType.LPStr)] public string internal_name;
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string short_name;
+ [MarshalAs(UnmanagedType.LPStr)] public string short_name;
/// int
public int amixdown;
@@ -898,12 +864,10 @@ namespace HandBrake.Interop
public int default_track;
/// char[128]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string src_filename;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] public string src_filename;
/// char[40]
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
- public string src_codeset;
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)] public string src_codeset;
/// int64_t->int
public long offset;
@@ -946,8 +910,7 @@ namespace HandBrake.Interop
public int alloc;
/// uint8_t*
- [MarshalAs(UnmanagedType.LPStr)]
- public string data;
+ [MarshalAs(UnmanagedType.LPStr)] public string data;
/// int
public int cur;
@@ -1044,8 +1007,7 @@ namespace HandBrake.Interop
internal struct hb_thread_s
{
/// char*
- [MarshalAs(UnmanagedType.LPStr)]
- public string name;
+ [MarshalAs(UnmanagedType.LPStr)] public string name;
/// int
public int priority;
@@ -1146,7 +1108,8 @@ namespace HandBrake.Interop
///preview_count: int
///store_previews: int
[DllImport("hb.dll", EntryPoint = "hb_scan", CallingConvention = CallingConvention.Cdecl)]
- public static extern void hb_scan(IntPtr hbHandle, [In] [MarshalAs(UnmanagedType.LPStr)] string path, int title_index, int preview_count, int store_previews);
+ public static extern void hb_scan(IntPtr hbHandle, [In] [MarshalAs(UnmanagedType.LPStr)] string path,
+ int title_index, int preview_count, int store_previews);
/// Return Type: hb_list_t*
@@ -1166,7 +1129,9 @@ namespace HandBrake.Interop
///prog_diff: int
///prog_threshold: int
[DllImport("hb.dll", EntryPoint = "hb_detect_comb", CallingConvention = CallingConvention.Cdecl)]
- public static extern int hb_detect_comb(ref hb_buffer_s buf, int width, int height, int color_equal, int color_diff, int threshold, int prog_equal, int prog_diff, int prog_threshold);
+ public static extern int hb_detect_comb(ref hb_buffer_s buf, int width, int height, int color_equal,
+ int color_diff, int threshold, int prog_equal, int prog_diff,
+ int prog_threshold);
[DllImport("hb.dll", EntryPoint = "hb_get_preview_by_index", CallingConvention = CallingConvention.Cdecl)]
public static extern void hb_get_preview_by_index(IntPtr hbHandle, int title_index, int picture, IntPtr buffer);
@@ -1187,8 +1152,11 @@ namespace HandBrake.Interop
[DllImport("hb.dll", EntryPoint = "hb_set_size", CallingConvention = CallingConvention.Cdecl)]
public static extern void hb_set_size(ref hb_job_s param0, double ratio, int pixels);
- [DllImport("hb.dll", EntryPoint = "hb_set_anamorphic_size_by_index", CallingConvention = CallingConvention.Cdecl)]
- public static extern void hb_set_anamorphic_size_by_index(IntPtr hbHandle, int title_index, ref int output_width, ref int output_height, ref int output_par_width, ref int output_par_height);
+ [DllImport("hb.dll", EntryPoint = "hb_set_anamorphic_size_by_index", CallingConvention = CallingConvention.Cdecl
+ )]
+ public static extern void hb_set_anamorphic_size_by_index(IntPtr hbHandle, int title_index, ref int output_width,
+ ref int output_height, ref int output_par_width,
+ ref int output_par_height);
/// Return Type: void
///param0: hb_job_t*
@@ -1197,7 +1165,8 @@ namespace HandBrake.Interop
///output_par_width: int*
///output_par_height: int*
[DllImport("hb.dll", EntryPoint = "hb_set_anamorphic_size", CallingConvention = CallingConvention.Cdecl)]
- public static extern void hb_set_anamorphic_size(ref hb_job_s job, ref int output_width, ref int output_height, ref int output_par_width, ref int output_par_height);
+ public static extern void hb_set_anamorphic_size(ref hb_job_s job, ref int output_width, ref int output_height,
+ ref int output_par_width, ref int output_par_height);
/// Return Type: int
@@ -1213,7 +1182,8 @@ namespace HandBrake.Interop
public static extern IntPtr hb_job(IntPtr hbHandle, int jobIndex);
[DllImport("hb.dll", EntryPoint = "hb_set_chapter_name", CallingConvention = CallingConvention.Cdecl)]
- public static extern void hb_set_chapter_name(IntPtr hbHandle, int title_index, int chapter_index, [In] [MarshalAs(UnmanagedType.LPStr)] string chapter_name);
+ public static extern void hb_set_chapter_name(IntPtr hbHandle, int title_index, int chapter_index,
+ [In] [MarshalAs(UnmanagedType.LPStr)] string chapter_name);
[DllImport("hb.dll", EntryPoint = "hb_set_job", CallingConvention = CallingConvention.Cdecl)]
public static extern void hb_set_job(IntPtr hbHandle, int title_index, ref hb_job_s job);
@@ -1287,4 +1257,4 @@ namespace HandBrake.Interop
[DllImport("hb.dll", EntryPoint = "hb_global_close", CallingConvention = CallingConvention.Cdecl)]
public static extern void hb_global_close();
}
-}
+} \ No newline at end of file
diff --git a/win/C#/interop/Model/Cropping.cs b/win/C#/interop/Model/Cropping.cs
index e717e7e4b..e0a08061d 100644
--- a/win/C#/interop/Model/Cropping.cs
+++ b/win/C#/interop/Model/Cropping.cs
@@ -9,11 +9,29 @@
namespace HandBrake.Interop.Model
{
+ /// <summary>
+ /// Cropping T B L R
+ /// </summary>
public class Cropping
{
+ /// <summary>
+ /// Gets or sets Top.
+ /// </summary>
public int Top { get; set; }
+
+ /// <summary>
+ /// Gets or sets Bottom.
+ /// </summary>
public int Bottom { get; set; }
+
+ /// <summary>
+ /// Gets or sets Left.
+ /// </summary>
public int Left { get; set; }
+
+ /// <summary>
+ /// Gets or sets Right.
+ /// </summary>
public int Right { get; set; }
}
}
diff --git a/win/C#/interop/Model/EncodeJob.cs b/win/C#/interop/Model/EncodeJob.cs
index 6ae23c7c5..d454c6b30 100644
--- a/win/C#/interop/Model/EncodeJob.cs
+++ b/win/C#/interop/Model/EncodeJob.cs
@@ -14,9 +14,19 @@ namespace HandBrake.Interop.Model
using System.Xml.Serialization;
using Encoding;
+ /// <summary>
+ /// An Encode Job
+ /// </summary>
public class EncodeJob
{
+ /// <summary>
+ /// Gets or sets SourceType.
+ /// </summary>
public SourceType SourceType { get; set; }
+
+ /// <summary>
+ /// Gets or sets SourcePath.
+ /// </summary>
public string SourcePath { get; set; }
/// <summary>
@@ -28,25 +38,56 @@ namespace HandBrake.Interop.Model
/// Gets or sets the angle to encode. 0 for default, 1+ for specified angle.
/// </summary>
public int Angle { get; set; }
+
+ /// <summary>
+ /// Gets or sets ChapterStart.
+ /// </summary>
public int ChapterStart { get; set; }
+
+ /// <summary>
+ /// Gets or sets ChapterEnd.
+ /// </summary>
public int ChapterEnd { get; set; }
/// <summary>
/// Gets or sets the list of chosen audio tracks (1-based)
/// </summary>
public List<int> ChosenAudioTracks { get; set; }
+
+ /// <summary>
+ /// Gets or sets Subtitles.
+ /// </summary>
public Subtitles Subtitles { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether UseDefaultChapterNames.
+ /// </summary>
public bool UseDefaultChapterNames { get; set; }
+
+ /// <summary>
+ /// Gets or sets CustomChapterNames.
+ /// </summary>
public List<string> CustomChapterNames { get; set; }
+ /// <summary>
+ /// Gets or sets OutputPath.
+ /// </summary>
public string OutputPath { get; set; }
+ /// <summary>
+ /// Gets or sets EncodingProfile.
+ /// </summary>
public EncodingProfile EncodingProfile { get; set; }
- // The length of video to encode.
+ /// <summary>
+ /// The length of video to encode.
+ /// </summary>
[XmlIgnore]
public TimeSpan Length { get; set; }
+ /// <summary>
+ /// Gets or sets XmlLength.
+ /// </summary>
[XmlElement("Length")]
public string XmlLength
{
@@ -54,6 +95,12 @@ namespace HandBrake.Interop.Model
set { this.Length = TimeSpan.Parse(value); }
}
+ /// <summary>
+ /// Clone the Encode Job
+ /// </summary>
+ /// <returns>
+ /// An EncodeJob Ojbect
+ /// </returns>
public EncodeJob Clone()
{
EncodeJob clone = new EncodeJob
diff --git a/win/C#/interop/Model/Encoding/Anamorphic.cs b/win/C#/interop/Model/Encoding/Anamorphic.cs
index 0d6206089..1a7302d4e 100644
--- a/win/C#/interop/Model/Encoding/Anamorphic.cs
+++ b/win/C#/interop/Model/Encoding/Anamorphic.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Anamorphic Modes
+ /// </summary>
public enum Anamorphic
{
[DisplayString("None")]
diff --git a/win/C#/interop/Model/Encoding/AudioEncoder.cs b/win/C#/interop/Model/Encoding/AudioEncoder.cs
index 4a3a25181..a9efed80f 100644
--- a/win/C#/interop/Model/Encoding/AudioEncoder.cs
+++ b/win/C#/interop/Model/Encoding/AudioEncoder.cs
@@ -8,6 +8,9 @@
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Audio Encoder
+ /// </summary>
public enum AudioEncoder
{
[DisplayString("AAC (faac)")]
diff --git a/win/C#/interop/Model/Encoding/AudioEncoding.cs b/win/C#/interop/Model/Encoding/AudioEncoding.cs
index e9f8ad7ac..a957e2397 100644
--- a/win/C#/interop/Model/Encoding/AudioEncoding.cs
+++ b/win/C#/interop/Model/Encoding/AudioEncoding.cs
@@ -9,13 +9,39 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Audio Encoding
+ /// </summary>
public class AudioEncoding
{
+ /// <summary>
+ /// Gets or sets InputNumber.
+ /// </summary>
public int InputNumber { get; set; }
+
+ /// <summary>
+ /// Gets or sets Encoder.
+ /// </summary>
public AudioEncoder Encoder { get; set; }
+
+ /// <summary>
+ /// Gets or sets Bitrate.
+ /// </summary>
public int Bitrate { get; set; }
+
+ /// <summary>
+ /// Gets or sets Mixdown.
+ /// </summary>
public Mixdown Mixdown { get; set; }
+
+ /// <summary>
+ /// Gets or sets SampleRate.
+ /// </summary>
public string SampleRate { get; set; }
+
+ /// <summary>
+ /// Gets or sets Drc.
+ /// </summary>
public double Drc { get; set; }
}
}
diff --git a/win/C#/interop/Model/Encoding/Decomb.cs b/win/C#/interop/Model/Encoding/Decomb.cs
index 55c17d8c3..966a2c164 100644
--- a/win/C#/interop/Model/Encoding/Decomb.cs
+++ b/win/C#/interop/Model/Encoding/Decomb.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Decomb Mode. Off, Default or Custom
+ /// </summary>
public enum Decomb
{
Off = 0,
diff --git a/win/C#/interop/Model/Encoding/Deinterlace.cs b/win/C#/interop/Model/Encoding/Deinterlace.cs
index d7ed94b9e..1ef4acb7c 100644
--- a/win/C#/interop/Model/Encoding/Deinterlace.cs
+++ b/win/C#/interop/Model/Encoding/Deinterlace.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Delinterlace Mode
+ /// </summary>
public enum Deinterlace
{
Off = 0,
diff --git a/win/C#/interop/Model/Encoding/Denoise.cs b/win/C#/interop/Model/Encoding/Denoise.cs
index 6d97ecaf9..526d37d39 100644
--- a/win/C#/interop/Model/Encoding/Denoise.cs
+++ b/win/C#/interop/Model/Encoding/Denoise.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Denose Mode
+ /// </summary>
public enum Denoise
{
Off = 0,
diff --git a/win/C#/interop/Model/Encoding/Detelecine.cs b/win/C#/interop/Model/Encoding/Detelecine.cs
index fa0c3e72d..7380a94eb 100644
--- a/win/C#/interop/Model/Encoding/Detelecine.cs
+++ b/win/C#/interop/Model/Encoding/Detelecine.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Detelecine Modes
+ /// </summary>
public enum Detelecine
{
Off = 0,
diff --git a/win/C#/interop/Model/Encoding/EncodingProfile.cs b/win/C#/interop/Model/Encoding/EncodingProfile.cs
index 09a94d781..e7d4e81a8 100644
--- a/win/C#/interop/Model/Encoding/EncodingProfile.cs
+++ b/win/C#/interop/Model/Encoding/EncodingProfile.cs
@@ -10,6 +10,9 @@ namespace HandBrake.Interop.Model.Encoding
{
using System.Collections.Generic;
+ /// <summary>
+ /// Encode Profiles
+ /// </summary>
public class EncodingProfile
{
public EncodingProfile()
@@ -61,6 +64,12 @@ namespace HandBrake.Interop.Model.Encoding
public List<AudioEncoding> AudioEncodings { get; set; }
+ /// <summary>
+ /// Clone this encode profile
+ /// </summary>
+ /// <returns>
+ /// An Encode Profile Object
+ /// </returns>
public EncodingProfile Clone()
{
EncodingProfile profile = new EncodingProfile
diff --git a/win/C#/interop/Model/Encoding/Mixdown.cs b/win/C#/interop/Model/Encoding/Mixdown.cs
index 979688b63..a4df6a196 100644
--- a/win/C#/interop/Model/Encoding/Mixdown.cs
+++ b/win/C#/interop/Model/Encoding/Mixdown.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// The Mixdown mode
+ /// </summary>
public enum Mixdown
{
[DisplayString("Dolby Pro Logic II")]
diff --git a/win/C#/interop/Model/Encoding/OutputExtension.cs b/win/C#/interop/Model/Encoding/OutputExtension.cs
index 20dfa1e33..c3e352444 100644
--- a/win/C#/interop/Model/Encoding/OutputExtension.cs
+++ b/win/C#/interop/Model/Encoding/OutputExtension.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Output File Extension
+ /// </summary>
public enum OutputExtension
{
Mp4,
diff --git a/win/C#/interop/Model/Encoding/OutputFormat.cs b/win/C#/interop/Model/Encoding/OutputFormat.cs
index 5ac1f05a2..e0b0e8d1a 100644
--- a/win/C#/interop/Model/Encoding/OutputFormat.cs
+++ b/win/C#/interop/Model/Encoding/OutputFormat.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Output File Format
+ /// </summary>
public enum OutputFormat
{
[DisplayString("MP4")]
diff --git a/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs
index 3480ed884..b111da811 100644
--- a/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs
+++ b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Video Encoder Encode Mode
+ /// </summary>
public enum VideoEncodeRateType
{
TargetSize = 0,
diff --git a/win/C#/interop/Model/Encoding/VideoEncoder.cs b/win/C#/interop/Model/Encoding/VideoEncoder.cs
index 921675bc4..b5c23048c 100644
--- a/win/C#/interop/Model/Encoding/VideoEncoder.cs
+++ b/win/C#/interop/Model/Encoding/VideoEncoder.cs
@@ -9,6 +9,9 @@
namespace HandBrake.Interop.Model.Encoding
{
+ /// <summary>
+ /// Video Encoder
+ /// </summary>
public enum VideoEncoder
{
[DisplayString("H.264 (x264)")]
diff --git a/win/C#/interop/Model/Size.cs b/win/C#/interop/Model/Size.cs
index 18c2023d2..c56842c07 100644
--- a/win/C#/interop/Model/Size.cs
+++ b/win/C#/interop/Model/Size.cs
@@ -9,15 +9,34 @@
namespace HandBrake.Interop.Model
{
+ /// <summary>
+ /// Picture Size
+ /// </summary>
public class Size
{
+ /// <summary>
+ /// Initializes a new instance of the <see cref="Size"/> class.
+ /// </summary>
+ /// <param name="width">
+ /// The width.
+ /// </param>
+ /// <param name="height">
+ /// The height.
+ /// </param>
public Size(int width, int height)
{
this.Width = width;
this.Height = height;
}
+ /// <summary>
+ /// Gets or sets Width.
+ /// </summary>
public int Width { get; set; }
+
+ /// <summary>
+ /// Gets or sets Height.
+ /// </summary>
public int Height { get; set; }
}
}
diff --git a/win/C#/interop/Model/SourceSubtitle.cs b/win/C#/interop/Model/SourceSubtitle.cs
index 8c386546c..b90212013 100644
--- a/win/C#/interop/Model/SourceSubtitle.cs
+++ b/win/C#/interop/Model/SourceSubtitle.cs
@@ -9,16 +9,37 @@
namespace HandBrake.Interop.Model
{
+ /// <summary>
+ /// A Source Subtitle
+ /// </summary>
public class SourceSubtitle
{
/// <summary>
/// Gets or sets the 1-based subtitle track number. 0 means foriegn audio search.
/// </summary>
public int TrackNumber { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the subtitle is Default.
+ /// </summary>
public bool Default { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the subtitle is Forced.
+ /// </summary>
public bool Forced { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether the subtitle is BurnedIn.
+ /// </summary>
public bool BurnedIn { get; set; }
+ /// <summary>
+ /// Clone the Source Subtitle
+ /// </summary>
+ /// <returns>
+ /// A Source Subtitle
+ /// </returns>
public SourceSubtitle Clone()
{
return new SourceSubtitle
diff --git a/win/C#/interop/Model/SourceType.cs b/win/C#/interop/Model/SourceType.cs
index dfbfe87f1..f15639cbc 100644
--- a/win/C#/interop/Model/SourceType.cs
+++ b/win/C#/interop/Model/SourceType.cs
@@ -9,11 +9,29 @@
namespace HandBrake.Interop.Model
{
+ /// <summary>
+ /// The Source Type. (File, Folder, DVD)
+ /// </summary>
public enum SourceType
{
+ /// <summary>
+ /// None
+ /// </summary>
None = 0,
+
+ /// <summary>
+ /// File
+ /// </summary>
File,
+
+ /// <summary>
+ /// Video Folder
+ /// </summary>
VideoFolder,
+
+ /// <summary>
+ /// DVD
+ /// </summary>
Dvd
}
} \ No newline at end of file
diff --git a/win/C#/interop/Model/SrtSubtitle.cs b/win/C#/interop/Model/SrtSubtitle.cs
index ce1d33577..e6cb2f152 100644
--- a/win/C#/interop/Model/SrtSubtitle.cs
+++ b/win/C#/interop/Model/SrtSubtitle.cs
@@ -9,14 +9,42 @@
namespace HandBrake.Interop.Model
{
+ /// <summary>
+ /// A Srt Subtitle
+ /// </summary>
public class SrtSubtitle
{
+ /// <summary>
+ /// Gets or sets a value indicating whether Default.
+ /// </summary>
public bool Default { get; set; }
+
+ /// <summary>
+ /// Gets or sets FileName.
+ /// </summary>
public string FileName { get; set; }
+
+ /// <summary>
+ /// Gets or sets LanguageCode.
+ /// </summary>
public string LanguageCode { get; set; }
+
+ /// <summary>
+ /// Gets or sets CharacterCode.
+ /// </summary>
public string CharacterCode { get; set; }
+
+ /// <summary>
+ /// Gets or sets Offset.
+ /// </summary>
public int Offset { get; set; }
+ /// <summary>
+ /// Close the SRT Subtitle object
+ /// </summary>
+ /// <returns>
+ /// a SrtSubtitle
+ /// </returns>
public SrtSubtitle Clone()
{
return new SrtSubtitle
diff --git a/win/C#/interop/Model/Subtitles.cs b/win/C#/interop/Model/Subtitles.cs
index b66733ff7..ace470280 100644
--- a/win/C#/interop/Model/Subtitles.cs
+++ b/win/C#/interop/Model/Subtitles.cs
@@ -11,9 +11,19 @@ namespace HandBrake.Interop.Model
{
using System.Collections.Generic;
+ /// <summary>
+ /// Subtitles
+ /// </summary>
public class Subtitles
{
+ /// <summary>
+ /// Gets or sets SrtSubtitles.
+ /// </summary>
public List<SrtSubtitle> SrtSubtitles { get; set; }
+
+ /// <summary>
+ /// Gets or sets SourceSubtitles.
+ /// </summary>
public List<SourceSubtitle> SourceSubtitles { get; set; }
}
}
diff --git a/win/C#/interop/ScanProgressEventArgs.cs b/win/C#/interop/ScanProgressEventArgs.cs
index 596d71aaf..2087e1d11 100644
--- a/win/C#/interop/ScanProgressEventArgs.cs
+++ b/win/C#/interop/ScanProgressEventArgs.cs
@@ -11,9 +11,19 @@ namespace HandBrake.Interop
{
using System;
+ /// <summary>
+ /// Scan Progress Event Arugments
+ /// </summary>
public class ScanProgressEventArgs : EventArgs
{
+ /// <summary>
+ /// Gets or sets CurrentTitle.
+ /// </summary>
public int CurrentTitle { get; set; }
+
+ /// <summary>
+ /// Gets or sets Titles.
+ /// </summary>
public int Titles { get; set; }
}
}
diff --git a/win/C#/interop/Settings.StyleCop b/win/C#/interop/Settings.StyleCop
index d30ab223a..c6b4f70f9 100644
--- a/win/C#/interop/Settings.StyleCop
+++ b/win/C#/interop/Settings.StyleCop
@@ -40,8 +40,16 @@
<BooleanProperty Name="Enabled">True</BooleanProperty>
</RuleSettings>
</Rule>
+ <Rule Name="EnumerationItemsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
</Rules>
- <AnalyzerSettings />
+ <AnalyzerSettings>
+ <StringProperty Name="CompanyName">HandBrake Project (http://handbrake.fr)</StringProperty>
+ <StringProperty Name="Copyright">This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.</StringProperty>
+ </AnalyzerSettings>
</Analyzer>
</Analyzers>
</StyleCopSettings> \ No newline at end of file
diff --git a/win/C#/interop/SourceData/AudioTrack.cs b/win/C#/interop/SourceData/AudioTrack.cs
index 5e5d4674d..76de1b65a 100644
--- a/win/C#/interop/SourceData/AudioTrack.cs
+++ b/win/C#/interop/SourceData/AudioTrack.cs
@@ -15,29 +15,38 @@ namespace HandBrake.Interop.SourceData
public class AudioTrack
{
/// <summary>
- /// The track number of this Audio Track
+ /// Gets or sets the track number of this Audio Track
/// </summary>
public int TrackNumber { get; set; }
/// <summary>
- /// The language (if detected) of this Audio Track
+ /// Gets or sets the language (if detected) of this Audio Track
/// </summary>
public string Language { get; set; }
+ /// <summary>
+ /// Gets or sets LanguageCode.
+ /// </summary>
public string LanguageCode { get; set; }
+ /// <summary>
+ /// Gets or sets Description.
+ /// </summary>
public string Description { get; set; }
/// <summary>
- /// The frequency (in MHz) of this Audio Track
+ /// Gets or sets the frequency (in MHz) of this Audio Track
/// </summary>
public int SampleRate { get; set; }
/// <summary>
- /// The bitrate (in kbps) of this Audio Track
+ /// Gets or sets the bitrate (in kbps) of this Audio Track
/// </summary>
public int Bitrate { get; set; }
+ /// <summary>
+ /// Gets Display.
+ /// </summary>
public string Display
{
get
@@ -46,6 +55,9 @@ namespace HandBrake.Interop.SourceData
}
}
+ /// <summary>
+ /// Gets NoTrackDisplay.
+ /// </summary>
public string NoTrackDisplay
{
get
@@ -63,16 +75,18 @@ namespace HandBrake.Interop.SourceData
return this.GetDisplayString(true);
}
+ /// <summary>
+ /// Get the Display String
+ /// </summary>
+ /// <param name="includeTrackNumber">
+ /// The include track number.
+ /// </param>
+ /// <returns>
+ /// A String
+ /// </returns>
private string GetDisplayString(bool includeTrackNumber)
{
- if (includeTrackNumber)
- {
- return this.TrackNumber + " " + this.Description;
- }
- else
- {
- return this.Description;
- }
+ return includeTrackNumber ? (this.TrackNumber + " " + this.Description) : this.Description;
}
}
} \ No newline at end of file
diff --git a/win/C#/interop/SourceData/Chapter.cs b/win/C#/interop/SourceData/Chapter.cs
index a5a0b8151..0c3077f7d 100644
--- a/win/C#/interop/SourceData/Chapter.cs
+++ b/win/C#/interop/SourceData/Chapter.cs
@@ -17,12 +17,12 @@ namespace HandBrake.Interop.SourceData
public class Chapter
{
/// <summary>
- /// The number of this Chapter, in regards to its parent Title
+ /// Gets or sets the number of this Chapter, in regards to its parent Title
/// </summary>
public int ChapterNumber { get; set; }
/// <summary>
- /// The length in time this Chapter spans
+ /// Gets or sets the length in time this Chapter spans
/// </summary>
public TimeSpan Duration { get; set; }
diff --git a/win/C#/interop/SourceData/Subtitle.cs b/win/C#/interop/SourceData/Subtitle.cs
index 2e186edcf..f460b16c2 100644
--- a/win/C#/interop/SourceData/Subtitle.cs
+++ b/win/C#/interop/SourceData/Subtitle.cs
@@ -15,37 +15,33 @@ namespace HandBrake.Interop.SourceData
public class Subtitle
{
/// <summary>
- /// The track number of this Subtitle
+ /// Gets or sets the track number of this Subtitle
/// </summary>
public int TrackNumber { get; set; }
/// <summary>
- /// The language (if detected) of this Subtitle
+ /// Gets or sets the language (if detected) of this Subtitle
/// </summary>
public string Language { get; set; }
/// <summary>
- /// Langauage Code
+ /// Gets or sets Langauage Code
/// </summary>
public string LanguageCode { get; set; }
+ /// <summary>
+ /// Gets or sets SubtitleType.
+ /// </summary>
public SubtitleType SubtitleType { get; set; }
/// <summary>
- /// Subtitle Type
+ /// Gets Subtitle Type
/// </summary>
public string TypeString
{
get
{
- if (this.SubtitleType == SubtitleType.Picture)
- {
- return "Bitmap";
- }
- else
- {
- return "Text";
- }
+ return this.SubtitleType == SubtitleType.Picture ? "Bitmap" : "Text";
}
}
@@ -57,13 +53,5 @@ namespace HandBrake.Interop.SourceData
{
return string.Format("{0} {1} ({2})", this.TrackNumber, this.Language, this.TypeString);
}
-
- public string Display
- {
- get
- {
- return this.ToString();
- }
- }
}
} \ No newline at end of file
diff --git a/win/C#/interop/SourceData/SubtitleType.cs b/win/C#/interop/SourceData/SubtitleType.cs
index 419b1b515..5bbe5abc0 100644
--- a/win/C#/interop/SourceData/SubtitleType.cs
+++ b/win/C#/interop/SourceData/SubtitleType.cs
@@ -9,9 +9,21 @@
namespace HandBrake.Interop.SourceData
{
+ /// <summary>
+ /// Subtitle Type.
+ /// 0: Picture
+ /// 1: Text
+ /// </summary>
public enum SubtitleType
{
+ /// <summary>
+ /// Picture Subtitle
+ /// </summary>
Picture,
+
+ /// <summary>
+ /// Text Subtitle
+ /// </summary>
Text
}
}
diff --git a/win/C#/interop/SourceData/Title.cs b/win/C#/interop/SourceData/Title.cs
index 865891c89..61d6a6f68 100644
--- a/win/C#/interop/SourceData/Title.cs
+++ b/win/C#/interop/SourceData/Title.cs
@@ -11,7 +11,6 @@ namespace HandBrake.Interop.SourceData
{
using System;
using System.Collections.Generic;
- using System.Globalization;
using Model;
/// <summary>
@@ -19,74 +18,63 @@ namespace HandBrake.Interop.SourceData
/// </summary>
public class Title
{
- private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
- private readonly List<AudioTrack> audioTracks;
- private readonly List<Chapter> chapters;
- private readonly List<Subtitle> subtitles;
-
/// <summary>
- /// The constructor for this object
+ /// Initializes a new instance of the <see cref="Title"/> class.
/// </summary>
public Title()
{
- this.audioTracks = new List<AudioTrack>();
- this.chapters = new List<Chapter>();
- this.subtitles = new List<Subtitle>();
+ this.AudioTracks = new List<AudioTrack>();
+ this.Chapters = new List<Chapter>();
+ this.Subtitles = new List<Subtitle>();
}
/// <summary>
- /// Collection of chapters in this Title
+ /// Gets Collection of chapters in this Title
/// </summary>
- public List<Chapter> Chapters
- {
- get { return this.chapters; }
- }
+ public List<Chapter> Chapters { get; private set; }
/// <summary>
- /// Collection of audio tracks associated with this Title
+ /// Gets Collection of audio tracks associated with this Title
/// </summary>
- public List<AudioTrack> AudioTracks
- {
- get { return this.audioTracks; }
- }
+ public List<AudioTrack> AudioTracks { get; private set; }
/// <summary>
- /// Collection of subtitles associated with this Title
+ /// Gets Collection of subtitles associated with this Title
/// </summary>
- public List<Subtitle> Subtitles
- {
- get { return this.subtitles; }
- }
+ public List<Subtitle> Subtitles { get; private set; }
/// <summary>
- /// The track number of this Title (1-based).
+ /// Gets or sets The track number of this Title (1-based).
/// </summary>
public int TitleNumber { get; set; }
/// <summary>
- /// The length in time of this Title
+ /// Gets or sets The length in time of this Title
/// </summary>
public TimeSpan Duration { get; set; }
/// <summary>
- /// The resolution (width/height) of this Title
+ /// Gets or sets The resolution (width/height) of this Title
/// </summary>
public Size Resolution { get; set; }
/// <summary>
- /// The aspect ratio of this Title
+ /// Gets or sets The aspect ratio of this Title
/// </summary>
public double AspectRatio { get; set; }
+ /// <summary>
+ /// Gets or sets AngleCount.
+ /// </summary>
public int AngleCount { get; set; }
/// <summary>
- /// Par Value
+ /// Gets or sets Par Value
/// </summary>
public Size ParVal { get; set; }
/// <summary>
- /// The automatically detected crop region for this Title.
+ /// Gets or sets the automatically detected crop region for this Title.
/// This is an int array with 4 items in it as so:
/// 0:
/// 1:
@@ -94,6 +82,17 @@ namespace HandBrake.Interop.SourceData
/// 3:
/// </summary>
public Cropping AutoCropDimensions { get; set; }
+
+ /// <summary>
+ /// Gets Display.
+ /// </summary>
+ public string Display
+ {
+ get
+ {
+ return this.ToString();
+ }
+ }
/// <summary>
/// Override of the ToString method to provide an easy way to use this object in the UI
@@ -104,13 +103,5 @@ namespace HandBrake.Interop.SourceData
return string.Format("{0} ({1:00}:{2:00}:{3:00})", this.TitleNumber, this.Duration.Hours,
this.Duration.Minutes, this.Duration.Seconds);
}
-
- public string Display
- {
- get
- {
- return this.ToString();
- }
- }
}
} \ No newline at end of file