diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-24 22:56:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-24 22:56:33 +0100 |
| commit | e1e7de8d73bedd0c741e7df0390068c67867e09f (patch) | |
| tree | 02f007aad80f4d99707f2507a81b0685865026d0 /src/subtitle_image.cc | |
| parent | ceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (diff) | |
Tidying.
Diffstat (limited to 'src/subtitle_image.cc')
| -rw-r--r-- | src/subtitle_image.cc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/subtitle_image.cc b/src/subtitle_image.cc index 7bfc4b86..b281d754 100644 --- a/src/subtitle_image.cc +++ b/src/subtitle_image.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2018-2020 Carl Hetherington <cth@carlh.net> + Copyright (C) 2018-2021 Carl Hetherington <cth@carlh.net> This file is part of libdcp. @@ -31,14 +31,22 @@ files in the program, then also delete it here. */ + +/** @file src/subtitle_image.cc + * @brief SubtitleImage class + */ + + #include "subtitle_image.h" #include "util.h" + using std::ostream; using std::string; using std::shared_ptr; using namespace dcp; + SubtitleImage::SubtitleImage ( ArrayData png_image, Time in, @@ -57,6 +65,7 @@ SubtitleImage::SubtitleImage ( } + SubtitleImage::SubtitleImage ( ArrayData png_image, string id, @@ -76,6 +85,7 @@ SubtitleImage::SubtitleImage ( } + void SubtitleImage::read_png_file (boost::filesystem::path file) { @@ -83,6 +93,7 @@ SubtitleImage::read_png_file (boost::filesystem::path file) _png_image = ArrayData (file); } + void SubtitleImage::write_png_file (boost::filesystem::path file) const { @@ -90,6 +101,7 @@ SubtitleImage::write_png_file (boost::filesystem::path file) const png_image().write (file); } + bool dcp::operator== (SubtitleImage const & a, SubtitleImage const & b) { @@ -107,12 +119,14 @@ dcp::operator== (SubtitleImage const & a, SubtitleImage const & b) ); } + bool dcp::operator!= (SubtitleImage const & a, SubtitleImage const & b) { return !(a == b); } + bool SubtitleImage::equals (shared_ptr<SubtitleImage> other, EqualityOptions options, NoteHandler note) { @@ -178,6 +192,7 @@ SubtitleImage::equals (shared_ptr<SubtitleImage> other, EqualityOptions options, return true; } + ostream& dcp::operator<< (ostream& s, SubtitleImage const & sub) { |
