Fix build on old GCC.
[libdcp.git] / src / subtitle_image.cc
index 7bfc4b865263c171d9f9b06639968cb6bb811899..b281d7541a2cea3dbbe61387ac3230d0a814e42e 100644 (file)
@@ -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.
 
     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)
 {