X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_examiner.h;h=dd5d08c9e75341773265f7fa94d3bc1af5a9355c;hb=dd9f4f7e9511f8f830ec05d1b60c475c6b2d71e0;hp=1ff16a704f233f5cddf27e7f6b826f7b1300e1df;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git 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 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 sample_aspect_ratio () const { return boost::optional (); } + /** @return true if this video is in YUV; must not be called if has_video() == false */ virtual bool yuv () const = 0; };