diff options
Diffstat (limited to 'src/reel_mono_picture_asset.h')
| -rw-r--r-- | src/reel_mono_picture_asset.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/reel_mono_picture_asset.h b/src/reel_mono_picture_asset.h index 54429ad4..13c6545e 100644 --- a/src/reel_mono_picture_asset.h +++ b/src/reel_mono_picture_asset.h @@ -43,6 +43,7 @@ #include "reel_picture_asset.h" #include "mono_j2k_picture_asset.h" +#include "mono_mpeg2_picture_asset.h" namespace dcp { @@ -57,19 +58,29 @@ class MonoJ2KPictureAsset; class ReelMonoPictureAsset : public ReelPictureAsset { public: - ReelMonoPictureAsset (std::shared_ptr<MonoJ2KPictureAsset> asset, int64_t entry_point); + ReelMonoPictureAsset(std::shared_ptr<PictureAsset> asset, int64_t entry_point); explicit ReelMonoPictureAsset (std::shared_ptr<const cxml::Node>); - /** @return the MonoJ2KPictureAsset that this object refers to */ - std::shared_ptr<const MonoJ2KPictureAsset> mono_asset () const { + /** @return the MonoJ2KPictureAsset that this object refers to, if applicable */ + std::shared_ptr<const MonoJ2KPictureAsset> mono_j2k_asset() const { return asset_of_type<const MonoJ2KPictureAsset>(); } /** @return the MonoJ2KPictureAsset that this object refers to */ - std::shared_ptr<MonoJ2KPictureAsset> mono_asset () { + std::shared_ptr<MonoJ2KPictureAsset> mono_j2k_asset() { return asset_of_type<MonoJ2KPictureAsset>(); } + /** @return the MonoMPEG2PictureAsset that this object refers to, if applicable */ + std::shared_ptr<const MonoMPEG2PictureAsset> mono_mpeg2_asset() const { + return asset_of_type<const MonoMPEG2PictureAsset>(); + } + + /** @return the MonoMPEG2PictureAsset that this object refers to */ + std::shared_ptr<MonoMPEG2PictureAsset> mono_mpeg2_asset() { + return asset_of_type<MonoMPEG2PictureAsset>(); + } + private: std::string cpl_node_name (Standard standard) const override; }; |
