summaryrefslogtreecommitdiff
path: root/src/lib/video_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-11-11 00:04:02 +0000
committerCarl Hetherington <cth@carlh.net>2014-11-11 00:04:02 +0000
commit58f0530b1687673ea6e24a083063c3fdf2bff0b2 (patch)
tree1f76acad0a2877e527c936f754dde16eaf2d768e /src/lib/video_content.h
parent985a83ffbf251db481150221914ef74fbfe549b2 (diff)
Hand-apply 80562fe5dce5fd625da583ca6f7c2833f9db8754 from master (remove default scale and use a scale guessed from the content's size and sample aspect ratio).
Diffstat (limited to 'src/lib/video_content.h')
-rw-r--r--src/lib/video_content.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h
index 64112c1da..30dcac231 100644
--- a/src/lib/video_content.h
+++ b/src/lib/video_content.h
@@ -137,6 +137,11 @@ public:
return _colour_conversion;
}
+ boost::optional<float> sample_aspect_ratio () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _sample_aspect_ratio;
+ }
+
ContentTime fade_in () const {
boost::mutex::scoped_lock lm (_mutex);
return _fade_in;
@@ -178,6 +183,10 @@ private:
Crop _crop;
VideoContentScale _scale;
boost::optional<ColourConversion> _colour_conversion;
+ /** Sample aspect ratio obtained from the content file's header,
+ if there is one.
+ */
+ boost::optional<float> _sample_aspect_ratio;
ContentTime _fade_in;
ContentTime _fade_out;
};