Comment typo.
[libdcp.git] / src / subtitle_image.h
index d0c4732894c929298d23dad1a3f899d2959c89f3..3c4b3fe8b7a07e193483036a281eeea6ebb864a1 100644 (file)
@@ -65,12 +65,43 @@ public:
                Time fade_down_time
                );
 
+       SubtitleImage (
+               Data png_image,
+               std::string id,
+               Time in,
+               Time out,
+               float h_position,
+               HAlign h_align,
+               float v_position,
+               VAlign v_align,
+               Time fade_up_time,
+               Time fade_down_time
+               );
+
        Data png_image () const {
                return _png_image;
        }
 
+       void set_png_image (Data png) {
+               _png_image = png;
+       }
+
+       void read_png_file (boost::filesystem::path file);
+       void write_png_file (boost::filesystem::path file) const;
+
+       std::string id () const {
+               return _id;
+       }
+
+       /** @return the most recent disk file used to read or write this asset, if there is one */
+       boost::optional<boost::filesystem::path> file () const {
+               return _file;
+       }
+
 private:
        Data _png_image;
+       std::string _id;
+       mutable boost::optional<boost::filesystem::path> _file;
 };
 
 bool operator== (SubtitleImage const & a, SubtitleImage const & b);