diff options
Diffstat (limited to 'src/lib/video_content.h')
| -rw-r--r-- | src/lib/video_content.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h index ce2550d12..44f1c2847 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -24,6 +24,7 @@ #include "util.h" class VideoDecoder; +class Ratio; class VideoContentProperty { @@ -31,6 +32,7 @@ public: static int const VIDEO_SIZE; static int const VIDEO_FRAME_RATE; static int const VIDEO_CROP; + static int const VIDEO_RATIO; }; class VideoContent : public virtual Content @@ -70,6 +72,13 @@ public: return _crop; } + void set_ratio (Ratio const *); + + Ratio const * ratio () const { + boost::mutex::scoped_lock lm (_mutex); + return _ratio; + } + protected: void take_from_video_decoder (boost::shared_ptr<VideoDecoder>); @@ -79,6 +88,7 @@ private: libdcp::Size _video_size; float _video_frame_rate; Crop _crop; + Ratio const * _ratio; }; #endif |
