diff options
Diffstat (limited to 'win/C#/interop/Converters.cs')
-rw-r--r-- | win/C#/interop/Converters.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/win/C#/interop/Converters.cs b/win/C#/interop/Converters.cs deleted file mode 100644 index e5491995b..000000000 --- a/win/C#/interop/Converters.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace HandBrake.Interop
-{
- public static class Converters
- {
- private static Dictionary<double, int> vrates = new Dictionary<double, int>
- {
- {5, 5400000},
- {10, 2700000},
- {12, 2250000},
- {15, 1800000},
- {23.976, 1126125},
- {24, 1125000},
- {25, 1080000},
- {29.97, 900900}
- };
-
- public static int FramerateToVrate(double framerate)
- {
- if (!vrates.ContainsKey(framerate))
- {
- throw new ArgumentException("Framerate not recognized.", "framerate");
- }
-
- return vrates[framerate];
- }
- }
-}
|