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, boost::optional< int64_t > entry_point) | |
ReelAsset (std::shared_ptr< const cxml::Node >) | |
virtual xmlpp::Element * | write_to_cpl (xmlpp::Element *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 const &, NoteHandler) const |
Public Member Functions inherited from dcp::Object | |
Object () | |
Object (std::string id) | |
Object (Object const &other) | |
Object & | operator= (Object const &other) |
std::string | id () const |
Protected Member Functions | |
virtual std::string | cpl_node_name () 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.
dcp::ReelAsset::ReelAsset | ( | std::string | id, |
Fraction | edit_rate, | ||
int64_t | intrinsic_duration, | ||
boost::optional< int64_t > | entry_point | ||
) |
int64_t ReelAsset::actual_duration | ( | ) | const |
Definition at line 190 of file reel_asset.cc.
|
protectedvirtual |
Reimplemented in dcp::ReelStereoPictureAsset.
Definition at line 117 of file reel_asset.cc.
|
protectedpure virtual |
|
protectedvirtual |
Reimplemented in dcp::ReelSMPTETextAsset, dcp::ReelInteropTextAsset, and dcp::ReelAtmosAsset.
Definition at line 124 of file reel_asset.cc.