Use VerificationNote more 'properly' in a fair few places.
[libdcp.git] / src / subtitle_asset_internal.h
index cd6e2b9fa1843f52482c1c8ca2e8598f3b0a5c07..366123c51afaaa8a4f9f1068fd22db51459109fd 100644 (file)
@@ -37,6 +37,7 @@
 #include "raw_convert.h"
 #include "types.h"
 #include "dcp_time.h"
+#include "data.h"
 #include <libxml++/libxml++.h>
 #include <boost/foreach.hpp>
 
@@ -66,7 +67,7 @@ class Font
 public:
        Font () {}
 
-       Font (SubtitleString const & s, Standard standard);
+       Font (boost::shared_ptr<SubtitleString> s, Standard standard);
 
        xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const;
 
@@ -163,7 +164,32 @@ private:
        Time _fade_down;
 };
 
+class Image : public Part
+{
+public:
+       Image (boost::shared_ptr<Part> parent, std::string id, Data png_data, HAlign h_align, float h_position, VAlign v_align, float v_position)
+               : Part (parent)
+               , _png_data (png_data)
+               , _id (id)
+               , _h_align (h_align)
+               , _h_position (h_position)
+               , _v_align (v_align)
+               , _v_position (v_position)
+       {}
+
+       xmlpp::Element* as_xml (xmlpp::Element* parent, Context& context) const;
+
+private:
+       Data _png_data;
+       std::string _id; ///< the ID of this image
+       HAlign _h_align;
+       float _h_position;
+       VAlign _v_align;
+       float _v_position;
+};
+
 }
+
 }
 
 #endif