40 #ifndef LIBDCP_SUBTITLE_IMAGE_H
41 #define LIBDCP_SUBTITLE_IMAGE_H
48 #include <boost/optional.hpp>
94 void read_png_file (boost::filesystem::path
file);
95 void write_png_file (boost::filesystem::path
file)
const;
97 std::string id ()
const {
102 boost::optional<boost::filesystem::path>
file ()
const {
106 bool equals (std::shared_ptr<dcp::SubtitleImage> other,
EqualityOptions options, NoteHandler note);
111 mutable boost::optional<boost::filesystem::path> _file;
115 bool operator== (SubtitleImage
const & a, SubtitleImage
const & b);
116 bool operator!= (SubtitleImage
const & a, SubtitleImage
const & b);
117 std::ostream& operator<< (std::ostream& s, SubtitleImage
const & sub);
Class to hold an arbitrary block of data.
A bitmap subtitle with all the associated attributes.
boost::optional< boost::filesystem::path > file() const
A representation of time within a DCP.
Namespace for everything in libdcp.
A class to describe what "equality" means for a particular test.