diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-09 02:13:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-09 02:13:01 +0100 |
| commit | 3a69e2805f4b2119194ba2357fa9895bf1ae147f (patch) | |
| tree | ad5e3eee08ad0651599e2e9cac38005d2aed397e /src/subtitle_image.h | |
| parent | d630b7b1e1c77742ff131a7d0c9497f061f87142 (diff) | |
Store image subtitle ID in the object, rather than a separate map. Start of reading image subtitles.
Diffstat (limited to 'src/subtitle_image.h')
| -rw-r--r-- | src/subtitle_image.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/subtitle_image.h b/src/subtitle_image.h index d0c47328..c398ef78 100644 --- a/src/subtitle_image.h +++ b/src/subtitle_image.h @@ -65,12 +65,30 @@ public: Time fade_down_time ); + SubtitleImage ( + Data png_image, + std::string id, + Time in, + Time out, + float h_position, + HAlign h_align, + float v_position, + VAlign v_align, + Time fade_up_time, + Time fade_down_time + ); + Data png_image () const { return _png_image; } + std::string id () const { + return _id; + } + private: Data _png_image; + std::string _id; }; bool operator== (SubtitleImage const & a, SubtitleImage const & b); |
