StyleCop fixes. Also removed copying hb.dll step to fix build error.
authorrandomengy <david.rickard@gmail.com>
Sun, 12 Jun 2011 17:40:18 +0000 (17:40 +0000)
committerrandomengy <david.rickard@gmail.com>
Sun, 12 Jun 2011 17:40:18 +0000 (17:40 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4049 b64f7644-9d1e-0410-96f1-a4d463321fa5

50 files changed:
win/CS/HandBrake.Interop/HandBrakeInterop.sln
win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs
win/CS/HandBrake.Interop/HandBrakeInterop/EncodeCompletedEventArgs.cs
win/CS/HandBrake.Interop/HandBrakeInterop/EncodeProgressEventArgs.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInstance.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj
win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeUtils.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/HbFunctions.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/Misc.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/NativeConstants.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_audio.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_chapter_s.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_handle_s.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_job_s.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_subtitle.cs
win/CS/HandBrake.Interop/HandBrakeInterop/HbLib/hb_title_s.cs
win/CS/HandBrake.Interop/HandBrakeInterop/InteropUtilities.cs
win/CS/HandBrake.Interop/HandBrakeInterop/MarshalingConstants.cs
win/CS/HandBrake.Interop/HandBrakeInterop/MessageLoggedEventArgs.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Cropping.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/EncodeJob.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Anamorphic.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoding.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Decomb.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Deinterlace.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Denoise.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Detelecine.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/EncodingProfile.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/Mixdown.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/OutputExtension.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/OutputFormat.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/VideoEncodeRateType.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/VideoEncoder.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Limits.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Size.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/SourceSubtitle.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/SrtSubtitle.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Subtitles.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/VideoRangeType.cs
win/CS/HandBrake.Interop/HandBrakeInterop/ScanProgressEventArgs.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/AudioCodec.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/AudioTrack.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Chapter.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/InputType.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Subtitle.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/SubtitleSource.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/SubtitleType.cs
win/CS/HandBrake.Interop/HandBrakeInterop/SourceData/Title.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs

index 5973725a90c6dcbfa0602fc25a3fc32adeb8cedc..194b8f5a922dcbf38297a3d514d16f3feb386a6a 100644 (file)
@@ -16,23 +16,33 @@ Global
                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
index 691c97701a8ac8cfd02aba769a905cd01791866a..78cc1284587689be65f086e40bcdfa8a2b4afbec 100644 (file)
@@ -1,11 +1,11 @@
-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
index f35a449a1ba659b6d2e04701570d39b36c61a1f9..77c5b0a85a944cd4b7ebdbe90ebb48c2e81e866d 100644 (file)
@@ -1,10 +1,7 @@
-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
index 484ea7b7bc0d08dc7eaee37e449877e5d8a7afe7..9f8da0d9eeea05099a0d24b6b47e43aceeb6538e 100644 (file)
@@ -1,10 +1,7 @@
-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
index 1d8d63a2ef654dba859ad553b7f169c53127e0e6..d8db397fcd05f214dc559a65eae1ea2afc5fdb94 100644 (file)
                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
index 24668cadda4f4025ac530c5897777dd11559f00f..5f0815e850f8cb312d5f3036d38e30901d7f64df 100644 (file)
        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
index 89134b4ab214aae8ddf34574882e2848f33fbadd..3a48037e1b2a3be88de6ae07cda5074d8e41b180 100644 (file)
@@ -1,11 +1,10 @@
-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
index fa5a321ca69ee245e4fd2bb27b4e884367a1fe58..dda6876f33616eaafa78ecf891fc0fd5b0e6aacc 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Collections.Generic;\r
 using System.Linq;\r
 using System.Runtime.InteropServices;\r
index 7d742f6c9515c011edebd8b8ab3e1a71a6b0fe47..5b275399fc8a0615820100104e57a825a01bdc58 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Collections.Generic;\r
 using System.Linq;\r
 using System.Text;\r
index 8d097b33e017dd7faf668b2ffad1d2262b3e107a..8ab215caeaa8e5e374e199aeac726e4daf7633e5 100644 (file)
@@ -1,4 +1,6 @@
-namespace HandBrake.Interop\r
+// <auto-generated />\r
+\r
+namespace HandBrake.Interop\r
 {\r
        public partial class NativeConstants\r
        {\r
index 6992d1ffde2a577961821373d2574f5f2d15dc95..6e9aff4717e9f52ed521dbdde95a2f8e1c3312f4 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Collections.Generic;\r
 using System.Linq;\r
 using System.Runtime.InteropServices;\r
index fd3762398860e5287f307e3e0cdd94db2e8ebf77..05a42b9235407d6f796a047d2b957fdce95d7c35 100644 (file)
@@ -1,4 +1,6 @@
-using System.Runtime.InteropServices;\r
+// <auto-generated />\r
+\r
+using System.Runtime.InteropServices;\r
 \r
 namespace HandBrake.Interop\r
 {\r
index dd56681bb26f34caac8802e06a4a2d880f5adfdd..089afd37784ae5c3ae08cf4b9cb6883c60ade861 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Runtime.InteropServices;\r
 \r
 namespace HandBrake.Interop\r
index c12352e043c2feef60872a86979c4b13b42b9329..d33bd47231e73a4f8ee78bde568e28af96765599 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Runtime.InteropServices;\r
 \r
 namespace HandBrake.Interop\r
@@ -80,10 +82,6 @@ namespace HandBrake.Interop
                /// 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
index f5a830cc4fbd231cd8fd8caa2d58d33de38bb153..e784f3ce67a367fdf71e7ca17a2fa81d64ba8b0b 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Runtime.InteropServices;\r
 \r
 namespace HandBrake.Interop\r
index 856cdcfbbc679486dfd7feb10f7bcac4af92ec6e..dddcdadf56078472856faabd279f0db15c50b3a6 100644 (file)
@@ -1,4 +1,6 @@
-using System;\r
+// <auto-generated />\r
+\r
+using System;\r
 using System.Runtime.InteropServices;\r
 \r
 namespace HandBrake.Interop\r
index 4102e5eb747627d28b3575a9754b5a3a6a25d2b3..c0485495915f28d1cef22432c68327f20d5890e1 100644 (file)
@@ -45,6 +45,7 @@
                /// <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
index 67fd8d1776c08be0032492c9acaf33655f22721e..df7c953ad0fc8318807c3274614e899e1d8f2dc6 100644 (file)
@@ -1,9 +1,4 @@
-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
index 6976fedc650cf25b36eb003caa8c2a291f9018f2..98bd94aafc51d8fcac9c62b04264efcad7a800eb 100644 (file)
@@ -1,10 +1,7 @@
-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
index 2b95a0e1154b1950f6a8ac6397307b8e5db62f38..efd979fc44370f4844af649cf8b432e55910b993 100644 (file)
@@ -1,9 +1,4 @@
-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
index 850f6ea2ec5729689b8d5b98902e9ae95df4141c..7d1b8234aed9e59373cd5470a0de5941e19a3886 100644 (file)
@@ -1,11 +1,10 @@
-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
index b6d3d110f7e4fb9ed45570388655d2406e735997..772a908a5dc83254d7b3d20f8ccc19121edcdf48 100644 (file)
@@ -1,11 +1,7 @@
-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
index 159ed7c30647d16c06dd04342bd8ff7bb0cadf8e..aff0a30d5d9dda47450013520d72460778a60d58 100644 (file)
@@ -1,11 +1,7 @@
-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
index 0821749b55fe9548e982eccfe5b88ee7d3d887a2..49be026d41249100288a13268d8bd4d9f81a498c 100644 (file)
@@ -1,10 +1,7 @@
-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
@@ -14,10 +11,11 @@ namespace HandBrake.Interop
                /// 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
index 5fa9bda746be565cc77fceaf2bf0d01979132d5c..24cb66fb4676c6d28746bdd599c5ee5743e5b163 100644 (file)
@@ -1,9 +1,4 @@
-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
index ee08ba10d03c8401a0da22291d45311d8a1382a5..2a5c972904515a4947a740a15699c9e4f5f7b211 100644 (file)
@@ -1,9 +1,4 @@
-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
index 7b59ae1b8364f19ab4d3c765831baa0f0dbb84bc..509e165a223923432e401f861fd2c3bc93665aa2 100644 (file)
@@ -1,9 +1,4 @@
-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
index fe9e543c456f7500a3cec07bd656c54c5892556c..6075718c633f4896b84d49b68bbc622cae359628 100644 (file)
@@ -1,9 +1,4 @@
-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
index d4275b4d225ef364498133bdd574cedd7d63f670..7f071bb810dd27c079bcfa626a0572b426e0b219 100644 (file)
@@ -1,10 +1,7 @@
-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
index 838c7066bcafa07297f9847d455f6cb6e152af4b..5731d5de2b51b1619c248a3a2d10dc9112b7dc2e 100644 (file)
@@ -1,11 +1,7 @@
-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
index cd82aab2e0f2ab57bb35d052848f0e003b41a67d..df231926200474979fc99fe239bab856ab4e2113 100644 (file)
@@ -1,9 +1,4 @@
-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
index f842fe474928edcdc7232b700c4fef093d1b5a7b..741abcb0dcf12d96e951ca9cba4df8e0008315cf 100644 (file)
@@ -1,12 +1,7 @@
-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
index ae08402d4d833d26a4236e13de5826987c9e3c60..13859b574810fe7ca5ee80227ffbecfe29b7abb6 100644 (file)
@@ -1,9 +1,4 @@
-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
index 923f446e1920bde14646b7571f9a0aa2a0e6009e..6a5c13821d9a0a278f3b87f28c3af956ab6649f5 100644 (file)
@@ -1,11 +1,7 @@
-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
index 9fdc373f5bd568687a95e8a9bdc6a878c6f9c834..d462aaabd4202f06ede7ba2aa09ed9fa635fc674 100644 (file)
@@ -1,9 +1,4 @@
-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
index 3f9736c863a338de3295cbdc54cee80285e24724..966935a22de7c56f598d26277d69aa561b612dc5 100644 (file)
@@ -1,9 +1,4 @@
-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
index e07811cc82b198acd19720d32a2dc77167d61fa2..7a8689ae9313b0ca9e7876f251c843cc9be7cbb4 100644 (file)
@@ -1,9 +1,4 @@
-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
index 1d80e1f0b100bc02b37bed197c9f0c7f963ab8d0..b2aad8b244021ac3a8d8b7efe8836bc4f5e432e0 100644 (file)
@@ -1,9 +1,4 @@
-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
index a9c1750e008f5eced337bc6c1c00d0000e22799d..585198295677f37b99760399ce028168aca2c77e 100644 (file)
@@ -1,10 +1,7 @@
-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
index d0e967fbcce1ee56f9f27fe387340281091066af..3e6684e91a700e5bb3802d2aca93633f1a49945e 100644 (file)
@@ -1,11 +1,7 @@
-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
index 4177ff1b71893ec9daf82bf2184effc316895829..e9f06715abb0001073cc887e5610a334bac017a9 100644 (file)
@@ -1,10 +1,7 @@
-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
index ee5f8133d2f44cff64a734e03321dda050e53177..a2bb5a1050898bc65e71c2f4c102c7fb6efd3190 100644 (file)
@@ -1,9 +1,4 @@
-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
index a7b7926c1b56f112c217b4c2d8a822adb52aa375..5940159dc70eb041894484a0cac23731eecb6676 100644 (file)
@@ -4,11 +4,6 @@
           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
@@ -17,7 +12,7 @@ namespace HandBrake.SourceData
        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
@@ -27,12 +22,18 @@ namespace HandBrake.SourceData
                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
@@ -41,15 +42,18 @@ namespace HandBrake.SourceData
                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
@@ -58,6 +62,9 @@ namespace HandBrake.SourceData
                        }\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
index 74d3703e01e177efd13ab93f21d66b0f9eaf8ace..18a606b6abb3007a322b44270c2236c419e14b34 100644 (file)
@@ -4,25 +4,22 @@
           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
index b96b4f174db4eee5dd6fddd6e1a97327f096ee64..c8379852f5d1bb23b7295489e9b8f5ce513f8c86 100644 (file)
@@ -1,11 +1,7 @@
-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
index 5f100db305108e963d77b99ba64a7a57595268f5..0d4ce30680f4e620c41e3ca7d783721fae914d33 100644 (file)
@@ -4,10 +4,6 @@
           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
@@ -16,22 +12,28 @@ namespace HandBrake.SourceData
        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
index b884b8a3233a0a217344faf5ee7e04abb23b204a..04d267950b84aac294b220bacd99feac0cbf9801 100644 (file)
@@ -1,9 +1,4 @@
-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
index 2c4471e99e9611598a301a824b666e7490dfacbf..07c2c11070cf95fa01b52c7ef511a9e14afc285a 100644 (file)
@@ -1,9 +1,4 @@
-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
index c8b296825e45434155a7bb1aecc18493854a446e..2dfc1a41803340db768f684fe05c3f0fcd29dd34 100644 (file)
@@ -4,15 +4,15 @@
           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
@@ -24,7 +24,7 @@ namespace HandBrake.SourceData
                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
@@ -39,7 +39,7 @@ namespace HandBrake.SourceData
                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
@@ -47,7 +47,7 @@ namespace HandBrake.SourceData
                }\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
@@ -55,7 +55,7 @@ namespace HandBrake.SourceData
                }\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
@@ -63,22 +63,22 @@ namespace HandBrake.SourceData
                }\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
@@ -88,17 +88,12 @@ namespace HandBrake.SourceData
                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
@@ -113,7 +108,7 @@ namespace HandBrake.SourceData
                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
@@ -133,6 +128,9 @@ namespace HandBrake.SourceData
                                                                 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
index 41ab39da5a6692d2b7176631542f9225a3f87dfe..7e9ee43115435de294de96c28408c42d04f8c712 100644 (file)
@@ -1,10 +1,10 @@
-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