/*
- Copyright (C) 2014-2019 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
#define LIBDCP_REEL_PICTURE_ASSET_H
-#include "reel_encryptable_asset.h"
-#include "reel_asset.h"
+#include "reel_file_asset.h"
#include "picture_asset.h"
/** @class ReelPictureAsset
* @brief Part of a Reel's description which refers to a picture asset
*/
-class ReelPictureAsset : public ReelAsset, public ReelEncryptableAsset
+class ReelPictureAsset : public ReelFileAsset
{
public:
ReelPictureAsset (std::shared_ptr<PictureAsset> asset, int64_t entry_point);
explicit ReelPictureAsset (std::shared_ptr<const cxml::Node>);
- virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
- bool equals (std::shared_ptr<const ReelPictureAsset>, EqualityOptions, NoteHandler) const;
-
/** @return the PictureAsset that this object refers to */
std::shared_ptr<const PictureAsset> asset () const {
- return asset_of_type<const PictureAsset> ();
+ return asset_of_type<const PictureAsset>();
}
/** @return the PictureAsset that this object refers to */
std::shared_ptr<PictureAsset> asset () {
- return asset_of_type<PictureAsset> ();
+ return asset_of_type<PictureAsset>();
}
+ virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override;
+ bool equals (std::shared_ptr<const ReelPictureAsset>, EqualityOptions, NoteHandler) const;
+
/** @return picture frame rate */
Fraction frame_rate () const {
return _frame_rate;
}
private:
- std::string key_type () const;
+ boost::optional<std::string> key_type () const override {
+ return std::string ("MDIK");
+ }
Fraction _frame_rate;
Fraction _screen_aspect_ratio;