libdcp
|
An entry in a <Reel> which refers to a use of a piece of content. More...
#include <reel_asset.h>
Public Member Functions | |
ReelAsset (std::string id, Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point) | |
ReelAsset (std::shared_ptr< const cxml::Node >) | |
virtual xmlpp::Node * | write_to_cpl (xmlpp::Node *node, Standard standard) const |
virtual bool | encryptable () const |
Fraction | edit_rate () const |
int64_t | intrinsic_duration () const |
void | set_entry_point (int64_t e) |
void | unset_entry_point () |
boost::optional< int64_t > | entry_point () const |
void | set_duration (int64_t d) |
boost::optional< int64_t > | duration () const |
int64_t | actual_duration () const |
boost::optional< std::string > | annotation_text () const |
void | set_annotation_text (std::string at) |
void | unset_annotation_text () |
bool | asset_equals (std::shared_ptr< const ReelAsset >, EqualityOptions, NoteHandler) const |
Public Member Functions inherited from dcp::Object | |
Object () | |
Object (std::string id) | |
Object (Object const &)=delete | |
Object & | operator= (Object const &)=delete |
std::string | id () const |
Protected Member Functions | |
virtual std::string | cpl_node_name (Standard) const =0 |
virtual std::pair< std::string, std::string > | cpl_node_attribute (Standard) const |
virtual std::pair< std::string, std::string > | cpl_node_namespace () const |
Protected Attributes | |
int64_t | _intrinsic_duration = 0 |
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. | |
Protected Attributes inherited from dcp::Object | |
std::string | _id |
Private Attributes | |
boost::optional< std::string > | _annotation_text |
The <AnnotationText> from the reel's entry for this asset. | |
Fraction | _edit_rate |
The <EditRate> from the reel's entry for this asset. | |
boost::optional< int64_t > | _entry_point |
The <EntryPoint> from the reel's entry for this asset. | |
An entry in a <Reel> which refers to a use of a piece of content.
This class encapsulates the XML that exists in a <Reel> to say that a piece of content is used in this reel. It does not describe the content itself (but links to an Asset object which does).
Definition at line 73 of file reel_asset.h.
ReelAsset::ReelAsset | ( | std::string | id, |
Fraction | edit_rate, | ||
int64_t | intrinsic_duration, | ||
int64_t | entry_point | ||
) |
Construct a ReelAsset
id | ID of this ReelAsset (which is that of the MXF, if there is one) |
edit_rate | Edit rate for the asset |
intrinsic_duration | Intrinsic duration of this asset |
entry_point | Entry point to use in that asset |
Definition at line 60 of file reel_asset.cc.
int64_t ReelAsset::actual_duration | ( | ) | const |
Definition at line 164 of file reel_asset.cc.
|
protectedvirtual |
Reimplemented in dcp::ReelStereoPictureAsset.
Definition at line 113 of file reel_asset.cc.
|
protectedpure virtual |
|
protectedvirtual |
Reimplemented in dcp::ReelSMPTEClosedCaptionAsset, dcp::ReelInteropClosedCaptionAsset, and dcp::ReelAtmosAsset.
Definition at line 120 of file reel_asset.cc.