From 93241a630cddd69c3d10b7a6223303170253014a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 8 Jul 2014 22:40:13 +0100 Subject: Add some accessors. --- src/reel_asset.h | 4 ++++ src/reel_picture_asset.h | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'src') 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 (_content.object ()); } + Fraction frame_rate () const { + return _frame_rate; + } + void set_screen_aspect_ratio (Fraction a) { _screen_aspect_ratio = a; } -- cgit v1.2.3