From 85bd14f4e7dcbfb2005969575788dbfb303bf846 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 8 Jul 2018 00:19:42 +0100 Subject: Basic interop bitmap writing. --- src/subtitle_asset_internal.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/subtitle_asset_internal.h') diff --git a/src/subtitle_asset_internal.h b/src/subtitle_asset_internal.h index fad65a91..e2b1602e 100644 --- a/src/subtitle_asset_internal.h +++ b/src/subtitle_asset_internal.h @@ -37,6 +37,7 @@ #include "raw_convert.h" #include "types.h" #include "dcp_time.h" +#include "data.h" #include #include @@ -59,6 +60,7 @@ struct Context int time_code_rate; Standard standard; int spot_number; + int image_number; }; class Font @@ -163,7 +165,32 @@ private: Time _fade_down; }; +class Image : public Part +{ +public: + Image (boost::shared_ptr parent, Data png_data, HAlign h_align, float h_position, VAlign v_align, float v_position) + : Part (parent) + , _png_data (png_data) + , _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; + HAlign _h_align; + float _h_position; + VAlign _v_align; + float _v_position; +}; + } + +std::string image_subtitle_file (int n); + } #endif -- cgit v1.2.3