No-op: remove all trailing whitespace.
[dcpomatic.git] / src / lib / video_content.h
index ccc61b1f9eba3f15b7cc4521609642545874be45..01e3cb2aab7e876a571bde5f02efa44c43dfc2e1 100644 (file)
@@ -44,7 +44,7 @@ class VideoContent : public virtual Content
 {
 public:
        VideoContent (boost::shared_ptr<const Film>);
-       VideoContent (boost::shared_ptr<const Film>, DCPTime, ContentTime);
+       VideoContent (boost::shared_ptr<const Film>, DCPTime, Frame);
        VideoContent (boost::shared_ptr<const Film>, boost::filesystem::path);
        VideoContent (boost::shared_ptr<const Film>, cxml::ConstNodePtr, int);
        VideoContent (boost::shared_ptr<const Film>, std::vector<boost::shared_ptr<Content> >);
@@ -54,18 +54,18 @@ public:
        virtual std::string identifier () const;
 
        virtual void set_default_colour_conversion ();
-       
-       ContentTime video_length () const {
+
+       Frame video_length () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _video_length;
        }
 
-       ContentTime video_length_after_3d_combine () const {
+       Frame video_length_after_3d_combine () const {
                boost::mutex::scoped_lock lm (_mutex);
                if (_video_frame_type == VIDEO_FRAME_TYPE_3D_ALTERNATE) {
-                       return ContentTime (_video_length.get() / 2);
+                       return _video_length / 2;
                }
-               
+
                return _video_length;
        }
 
@@ -73,7 +73,7 @@ public:
                boost::mutex::scoped_lock lm (_mutex);
                return _video_size;
        }
-       
+
        float video_frame_rate () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _video_frame_rate;
@@ -91,9 +91,9 @@ public:
        void unset_colour_conversion (bool signal = true);
        void set_colour_conversion (ColourConversion);
 
-       void set_fade_in (ContentTime);
-       void set_fade_out (ContentTime);
-       
+       void set_fade_in (Frame);
+       void set_fade_out (Frame);
+
        VideoFrameType video_frame_type () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _video_frame_type;
@@ -140,22 +140,22 @@ public:
                return _sample_aspect_ratio;
        }
 
-       ContentTime fade_in () const {
+       Frame fade_in () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _fade_in;
        }
 
-       ContentTime fade_out () const {
+       Frame fade_out () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _fade_out;
        }
-       
+
        dcp::Size video_size_after_3d_split () const;
        dcp::Size video_size_after_crop () const;
 
        ContentTime dcp_time_to_content_time (DCPTime) const;
 
-       boost::optional<float> fade (VideoFrame) const;
+       boost::optional<float> fade (Frame) const;
 
        void scale_and_crop_to_fit_width ();
        void scale_and_crop_to_fit_height ();
@@ -165,7 +165,7 @@ public:
 protected:
        void take_from_video_examiner (boost::shared_ptr<VideoExaminer>);
 
-       ContentTime _video_length;
+       Frame _video_length;
        float _video_frame_rate;
        boost::optional<ColourConversion> _colour_conversion;
 
@@ -176,7 +176,7 @@ private:
        friend struct audio_sampling_rate_test;
 
        void setup_default_colour_conversion ();
-       
+
        dcp::Size _video_size;
        VideoFrameType _video_frame_type;
        Crop _crop;
@@ -185,8 +185,8 @@ private:
            if there is one.
        */
        boost::optional<float> _sample_aspect_ratio;
-       ContentTime _fade_in;
-       ContentTime _fade_out;
+       Frame _fade_in;
+       Frame _fade_out;
 };
 
 #endif