diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-27 15:13:42 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-27 15:13:42 +0100 |
| commit | dd9f4f7e9511f8f830ec05d1b60c475c6b2d71e0 (patch) | |
| tree | a2035eacaa9dc587ed119f2785dff9589db05aff /src/lib/video_examiner.h | |
| parent | 565490c24a46d0aa941f75cf2a03b195246008b4 (diff) | |
Fix incorrect container size when loading a VF/OV combination into the player.
Diffstat (limited to 'src/lib/video_examiner.h')
| -rw-r--r-- | src/lib/video_examiner.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/video_examiner.h b/src/lib/video_examiner.h index 1ff16a704..dd5d08c9e 100644 --- a/src/lib/video_examiner.h +++ b/src/lib/video_examiner.h @@ -33,11 +33,19 @@ class VideoExaminer { public: virtual ~VideoExaminer () {} + + virtual bool has_video () const = 0; + + /** @return video frame rate (if known); must not be called if has_video() == false */ virtual boost::optional<double> video_frame_rate () const = 0; + /** @return video size; must not be called if has_video() == false */ virtual dcp::Size video_size () const = 0; + /** @return video length in frames; must not be called if has_video() == false */ virtual Frame video_length () const = 0; + /** @return video sample aspect ratio (if known); must not be called if has_video() == false */ virtual boost::optional<double> sample_aspect_ratio () const { return boost::optional<double> (); } + /** @return true if this video is in YUV; must not be called if has_video() == false */ virtual bool yuv () const = 0; }; |
