40 #ifndef LIBDCP_REEL_PICTURE_ASSET_H
41 #define LIBDCP_REEL_PICTURE_ASSET_H
62 std::shared_ptr<const PictureAsset>
asset()
const {
63 return asset_of_type<const PictureAsset>();
67 std::shared_ptr<PictureAsset>
asset() {
68 return asset_of_type<PictureAsset>();
72 std::shared_ptr<const J2KPictureAsset>
j2k_asset()
const {
73 return asset_of_type<const J2KPictureAsset>();
78 return asset_of_type<J2KPictureAsset>();
82 std::shared_ptr<const MPEG2PictureAsset>
mpeg2_asset()
const {
83 return asset_of_type<const MPEG2PictureAsset>();
88 return asset_of_type<MPEG2PictureAsset>();
91 virtual xmlpp::Element* write_to_cpl(xmlpp::Element* node, Standard standard)
const override;
93 bool equals(std::shared_ptr<const ReelPictureAsset>,
EqualityOptions const&, NoteHandler)
const;
104 _screen_aspect_ratio = a;
107 Fraction screen_aspect_ratio ()
const {
108 return _screen_aspect_ratio;
112 boost::optional<std::string> key_type ()
const override {
113 return std::string (
"MDIK");
116 Fraction _frame_rate;
117 Fraction _screen_aspect_ratio;
A class to describe what "equality" means for a particular test.
A fraction (i.e. a thing with an integer numerator and an integer denominator).
Part of a Reel's description which refers to a picture asset.
std::shared_ptr< const MPEG2PictureAsset > mpeg2_asset() const
std::shared_ptr< PictureAsset > asset()
std::shared_ptr< const PictureAsset > asset() const
std::shared_ptr< const J2KPictureAsset > j2k_asset() const
std::shared_ptr< J2KPictureAsset > j2k_asset()
std::shared_ptr< MPEG2PictureAsset > mpeg2_asset()
Fraction frame_rate() const
void set_screen_aspect_ratio(Fraction a)
Namespace for everything in libdcp.