Some work on DCI naming. Clean up compacted / aligned image handling somewhat.
[dcpomatic.git] / src / lib / film_state.h
index 5b3ef83679ddfa01fa855010f5900d71a378755b..e58d46b0f6fcb605fa55cf7cd09c87e841374a9d 100644 (file)
@@ -63,6 +63,8 @@ public:
                , audio_delay (0)
                , still_duration (10)
                , with_subtitles (false)
+               , subtitle_offset (0)
+               , subtitle_scale (1)
                , length (0)
                , audio_channels (0)
                , audio_sample_rate (0)
@@ -89,8 +91,8 @@ public:
        void read_metadata (std::string, std::string);
 
        Size cropped_size (Size) const;
-
        int dcp_length () const;
+       std::string dci_name () const;
 
        /** Complete path to directory containing the film metadata;
            must not be relative.
@@ -130,6 +132,21 @@ public:
        /** Duration to make still-sourced films (in seconds) */
        int still_duration;
        bool with_subtitles;
+       /** y offset for placing subtitles, in source pixels; +ve is further down
+           the frame, -ve is further up.
+       */
+       int subtitle_offset;
+       float subtitle_scale;
+
+       /* DCI naming stuff */
+       std::string dci_name_prefix;
+       std::string audio_language;
+       std::string subtitle_language;
+       std::string territory;
+       std::string rating;
+       std::string studio;
+       std::string facility;
+       std::string package_type;
 
        /* Data which is cached to speed things up */