X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsubtitle_image.h;h=3c4b3fe8b7a07e193483036a281eeea6ebb864a1;hb=7c2dccaa6cfbda041fd1a10a391aab5b184b6267;hp=062df56b36aa09b02574cbbfe4347d76e78d687e;hpb=7bb241e6857f5f3614fd3b8722d545e85a6b6316;p=libdcp.git diff --git a/src/subtitle_image.h b/src/subtitle_image.h index 062df56b..3c4b3fe8 100644 --- a/src/subtitle_image.h +++ b/src/subtitle_image.h @@ -82,17 +82,26 @@ public: return _png_image; } - void set_png_image (Data d) { - _png_image = d; + 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 file () const { + return _file; + } + private: Data _png_image; std::string _id; + mutable boost::optional _file; }; bool operator== (SubtitleImage const & a, SubtitleImage const & b);