40 #ifndef LIBDCP_REEL_ASSET_H
41 #define LIBDCP_REEL_ASSET_H
82 ReelAsset (std::string
id,
Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point);
84 explicit ReelAsset (std::shared_ptr<const cxml::Node>);
86 virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard)
const;
88 virtual bool encryptable ()
const {
96 int64_t intrinsic_duration ()
const {
100 void set_entry_point (int64_t e) {
104 void unset_entry_point () {
108 boost::optional<int64_t> entry_point ()
const {
112 void set_duration (int64_t d) {
116 boost::optional<int64_t> duration ()
const {
123 boost::optional<std::string> annotation_text ()
const {
127 void set_annotation_text (std::string at) {
131 void unset_annotation_text () {
135 bool asset_equals (std::shared_ptr<const ReelAsset>,
EqualityOptions, NoteHandler)
const;
A fraction (i.e. a thing with an integer numerator and an integer denominator).
Some part of a DCP that has a UUID.
An entry in a <Reel> which refers to a use of a piece of content.
virtual std::pair< std::string, std::string > cpl_node_attribute(Standard) const
virtual std::string cpl_node_name(Standard) const =0
boost::optional< int64_t > _entry_point
The <EntryPoint> from the reel's entry for this asset.
ReelAsset(std::string id, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
virtual std::pair< std::string, std::string > cpl_node_namespace() const
Fraction _edit_rate
The <EditRate> from the reel's entry for this asset.
boost::optional< std::string > _annotation_text
The <AnnotationText> from the reel's entry for this asset.
int64_t actual_duration() const
int64_t _intrinsic_duration
The <IntrinsicDuration> from the reel's entry for this asset.
boost::optional< int64_t > _duration
The <Duration> from the reel's entry for this asset, if present.
Namespace for everything in libdcp.
A class to describe what "equality" means for a particular test.
Utility methods and classes.