diff options
author | sr55 <[email protected]> | 2013-02-12 20:37:59 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-02-12 20:37:59 +0000 |
commit | d72b432378105f191bc7bf6f756bb7a7533dc79a (patch) | |
tree | c76b29f4e7248918f0011e9340d51bb3f9a7bfed /win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs | |
parent | 3a5365f662fdd94d12733e9c7b1e09745697b532 (diff) |
WinGui: A Stylecop cleanup pass on Interop Library. Note, moved the Eventargs into their own package.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5248 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs index 00fc4e4e8..1dc2a1e74 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs @@ -17,12 +17,15 @@ namespace HandBrake.Interop using HandBrake.Interop.SourceData;
using HandBrake.Interop.Model;
+ /// <summary>
+ /// The converters.
+ /// </summary>
public static class Converters
{
/// <summary>
/// Video Frame Rates
/// </summary>
- private static Dictionary<double, int> vrates = new Dictionary<double, int>
+ private static readonly Dictionary<double, int> VideoRates = new Dictionary<double, int>
{
{5, 5400000},
{10, 2700000},
@@ -52,12 +55,12 @@ namespace HandBrake.Interop /// </exception>
public static int FramerateToVrate(double framerate)
{
- if (!vrates.ContainsKey(framerate))
+ if (!VideoRates.ContainsKey(framerate))
{
throw new ArgumentException("Framerate not recognized.", "framerate");
}
- return vrates[framerate];
+ return VideoRates[framerate];
}
/// <summary>
|