diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-02 23:39:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-02 23:39:01 +0100 |
| commit | 8259e2771f85c33c531a83fe1a78668f158208da (patch) | |
| tree | 5f1f83a1a269c7ef5a889ae5c2727d2360315896 /src/subtitle_image.cc | |
| parent | f2f2a2afc393dcaee747b97173d71a622d05d910 (diff) | |
Hopefully-correct PKL and AssetMap when using Interop PNG subtitles.
Diffstat (limited to 'src/subtitle_image.cc')
| -rw-r--r-- | src/subtitle_image.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/subtitle_image.cc b/src/subtitle_image.cc index 49c00f77..e1f123bc 100644 --- a/src/subtitle_image.cc +++ b/src/subtitle_image.cc @@ -75,6 +75,20 @@ SubtitleImage::SubtitleImage ( } +void +SubtitleImage::read_png_file (boost::filesystem::path file) +{ + _file = file; + _png_image = Data (file); +} + +void +SubtitleImage::write_png_file (boost::filesystem::path file) const +{ + _file = file; + png_image().write (file); +} + bool dcp::operator== (SubtitleImage const & a, SubtitleImage const & b) { |
