/*
- Copyright (C) 2018 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.h
- * @brief SubtitleImage class.
+ * @brief SubtitleImage class
*/
+
#ifndef LIBDCP_SUBTITLE_IMAGE_H
#define LIBDCP_SUBTITLE_IMAGE_H
#include "array_data.h"
-#include "types.h"
#include "subtitle.h"
#include "dcp_time.h"
#include <boost/optional.hpp>
#include <string>
+
namespace dcp {
+
/** @class SubtitleImage
- * @brief A bitmap subtitle with all the associated attributes.
+ * @brief A bitmap subtitle with all the associated attributes
*/
class SubtitleImage : public Subtitle
{
HAlign h_align,
float v_position,
VAlign v_align,
+ float z_position,
Time fade_up_time,
Time fade_down_time
);
HAlign h_align,
float v_position,
VAlign v_align,
+ float z_position,
Time fade_up_time,
Time fade_down_time
);
return _file;
}
+ bool equals(std::shared_ptr<const dcp::Subtitle> other_sub, EqualityOptions const& options, NoteHandler note) const override;
+
private:
ArrayData _png_image;
std::string _id;
mutable boost::optional<boost::filesystem::path> _file;
};
+
bool operator== (SubtitleImage const & a, SubtitleImage const & b);
bool operator!= (SubtitleImage const & a, SubtitleImage const & b);
std::ostream& operator<< (std::ostream& s, SubtitleImage const & sub);
+
}
+
#endif