2 using System.Collections.Generic;
\r
6 namespace HandBrake.Interop
\r
8 public static class Converters
\r
10 private static Dictionary<double, int> vrates = new Dictionary<double, int>
\r
22 public static int FramerateToVrate(double framerate)
\r
24 if (!vrates.ContainsKey(framerate))
\r
26 throw new ArgumentException("Framerate not recognized.", "framerate");
\r
29 return vrates[framerate];
\r