Basic (untested) ebur128 (#368).
[dcpomatic.git] / src / lib / frame_rate_change.h
index f53adc05925c1dea9fa461a491c54f2c111b6f23..3df9225b7f2ded99b3ff55e1e123716dd55defdd 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 struct FrameRateChange
 {
-       FrameRateChange (float, int);
+       FrameRateChange (double, int);
 
        /** @return factor by which to multiply a source frame rate
            to get the effective rate after any skip or repeat has happened.
        */
-       float factor () const {
+       double factor () const {
                if (skip) {
                        return 0.5;
                }
@@ -37,7 +37,7 @@ struct FrameRateChange
                return repeat;
        }
 
-       float source;
+       double source;
        int dcp;
 
        /** true to skip every other frame */
@@ -58,9 +58,9 @@ struct FrameRateChange
        /** Amount by which the video is being sped-up in the DCP; e.g. for a
         *  24fps source in a 25fps DCP this would be 25/24.
         */
-       float speed_up;
+       double speed_up;
 
-       std::string description;
+       std::string description () const;
 };
 
 #endif