diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-08 22:40:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-08 22:40:13 +0100 |
| commit | 93241a630cddd69c3d10b7a6223303170253014a (patch) | |
| tree | a2ad08722452afacaee1c3353687f1e5e9f9ab07 /src | |
| parent | 46a11714d3a2c551785c77d19e5285478b428364 (diff) | |
Add some accessors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/reel_asset.h | 4 | ||||
| -rw-r--r-- | src/reel_picture_asset.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/reel_asset.h b/src/reel_asset.h index 828981ef..e6e0fff5 100644 --- a/src/reel_asset.h +++ b/src/reel_asset.h @@ -74,6 +74,10 @@ public: return !_key_id.empty (); } + int64_t duration () const { + return _duration; + } + /** @return Key ID to describe the key that encrypts this asset's; * content. */ diff --git a/src/reel_picture_asset.h b/src/reel_picture_asset.h index 547f3ada..31b370c6 100644 --- a/src/reel_picture_asset.h +++ b/src/reel_picture_asset.h @@ -45,6 +45,10 @@ public: return boost::dynamic_pointer_cast<PictureMXF> (_content.object ()); } + Fraction frame_rate () const { + return _frame_rate; + } + void set_screen_aspect_ratio (Fraction a) { _screen_aspect_ratio = a; } |
