summaryrefslogtreecommitdiff
path: root/src/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-20 14:37:43 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-20 14:37:43 +0100
commit52b34d1a780a9e6dece62fa8fff7467072b9ed66 (patch)
tree25fe8c1811108a0516927a18ecc325848531ca77 /src/content.h
parenta8ae455886f36c19257129f34b172051bbe120bf (diff)
Comments.
Diffstat (limited to 'src/content.h')
-rw-r--r--src/content.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/content.h b/src/content.h
index 2059c8f5..01b3864b 100644
--- a/src/content.h
+++ b/src/content.h
@@ -51,8 +51,16 @@ namespace dcp
class Content : public Asset
{
public:
+ /** Construct a Content object by reading a file.
+ * @param file File to read.
+ */
Content (boost::filesystem::path file);
+
+ /** Construct a new piece of content with a specified edit rate.
+ * @param edit_rate Edit rate for the content.
+ */
Content (Fraction edit_rate);
+
virtual ~Content () {}
bool equals (
@@ -65,6 +73,9 @@ public:
return _edit_rate;
}
+ /** @return The total length of this content in video frames.
+ * The amount of content presented may be less than this.
+ */
int64_t intrinsic_duration () const {
return _intrinsic_duration;
}
@@ -75,6 +86,9 @@ protected:
virtual std::string asdcp_kind () const = 0;
Fraction _edit_rate;
+ /** The total length of this content in video frames. The amount of
+ * content presented may be less than this.
+ */
int64_t _intrinsic_duration;
};