diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-08 00:19:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-08 00:19:42 +0100 |
| commit | 85bd14f4e7dcbfb2005969575788dbfb303bf846 (patch) | |
| tree | bd3d938a75e7a2e7ffedad845dfc2dfde459682a /src/subtitle_asset_internal.h | |
| parent | ba5915461f1622715a69fa25579e5e27e64fb079 (diff) | |
Basic interop bitmap writing.
Diffstat (limited to 'src/subtitle_asset_internal.h')
| -rw-r--r-- | src/subtitle_asset_internal.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 <libxml++/libxml++.h> #include <boost/foreach.hpp> @@ -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<Part> 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 |
