Remove unused variable.
[dcpomatic.git] / src / lib / film_state.h
index 1df2dc95d7fe88e77cf086a129f928fec01d83a4..16a1b0508d80f6daaced489fb6b0e34819399515 100644 (file)
@@ -55,10 +55,6 @@ public:
                : dcp_content_type (0)
                , frames_per_second (0)
                , format (0)
-               , left_crop (0)
-               , right_crop (0)
-               , top_crop (0)
-               , bottom_crop (0)
                , scaler (Scaler::from_id ("bicubic"))
                , dcp_frames (0)
                , dcp_trim_action (CUT)
@@ -84,12 +80,15 @@ public:
        int thumb_frame (int) const;
 
        int bytes_per_sample () const;
+       int target_sample_rate () const;
        
        void write_metadata (std::ofstream &) const;
        void read_metadata (std::string, std::string);
 
        Size cropped_size (Size) const;
 
+       int dcp_length () const;
+
        /** Complete path to directory containing the film metadata;
            must not be relative.
        */
@@ -106,14 +105,7 @@ public:
        float frames_per_second;
        /** The format to present this Film in (flat, scope, etc.) */
        Format const * format;
-       /** Number of pixels to crop from the left-hand side of the original picture */
-       int left_crop;
-       /** Number of pixels to crop from the right-hand side of the original picture */
-       int right_crop;
-       /** Number of pixels to crop from the top of the original picture */
-       int top_crop;
-       /** Number of pixels to crop from the bottom of the original picture */
-       int bottom_crop;
+       Crop crop;
        /** Video filters that should be used when generating DCPs */
        std::vector<Filter const *> filters;
        /** Scaler algorithm to use */