summaryrefslogtreecommitdiff
path: root/src/lib/video_examiner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/video_examiner.h')
-rw-r--r--src/lib/video_examiner.h8
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;
};