summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-31 14:19:50 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-31 14:19:50 +0100
commitf385ef03e5ea27519a31c0839447735a7fba0602 (patch)
tree310902e785a95c2e3be1ba389f29cd7bd480f2a2 /src/lib/video_content.h
parentc13771610ef9a01cb29342bca82f9999f8b5ddbc (diff)
Various stuff; mostly change to decoder scaling and adding subtitle; scaling test.
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h10
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