From 737adeeefb516b42716e399f1370cf56e5edbeb4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 8 Apr 2022 01:03:50 +0200 Subject: [PATCH] Add some missing override labels. --- src/lib/ffmpeg_examiner.h | 14 +++++++------- src/lib/image_examiner.h | 14 +++++++------- src/lib/video_mxf_examiner.h | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/lib/ffmpeg_examiner.h b/src/lib/ffmpeg_examiner.h index 36efc92b1..da88156e4 100644 --- a/src/lib/ffmpeg_examiner.h +++ b/src/lib/ffmpeg_examiner.h @@ -37,11 +37,11 @@ public: bool has_video () const; - boost::optional video_frame_rate () const; - dcp::Size video_size () const; - Frame video_length () const; - boost::optional sample_aspect_ratio () const; - bool yuv () const; + boost::optional video_frame_rate () const override; + dcp::Size video_size () const override; + Frame video_length () const override; + boost::optional sample_aspect_ratio () const override; + bool yuv () const override; std::vector> subtitle_streams () const { return _subtitle_streams; @@ -55,9 +55,9 @@ public: return _first_video; } - VideoRange range () const; + VideoRange range () const override; - PixelQuanta pixel_quanta () const; + PixelQuanta pixel_quanta () const override; AVColorRange color_range () const { return video_codec_context()->color_range; diff --git a/src/lib/image_examiner.h b/src/lib/image_examiner.h index 0dcdebad0..53fab327e 100644 --- a/src/lib/image_examiner.h +++ b/src/lib/image_examiner.h @@ -27,19 +27,19 @@ class ImageExaminer : public VideoExaminer public: ImageExaminer (std::shared_ptr, std::shared_ptr, std::shared_ptr); - bool has_video () const { + bool has_video () const override { return true; } - boost::optional video_frame_rate () const; - dcp::Size video_size () const; - Frame video_length () const { + boost::optional video_frame_rate () const override; + dcp::Size video_size () const override; + Frame video_length () const override { return _video_length; } - bool yuv () const; - VideoRange range () const { + bool yuv () const override; + VideoRange range () const override { return VideoRange::FULL; } - PixelQuanta pixel_quanta () const { + PixelQuanta pixel_quanta () const override { /* See ::yuv - we're assuming the image is not YUV and so not subsampled */ return {}; } diff --git a/src/lib/video_mxf_examiner.h b/src/lib/video_mxf_examiner.h index 3719d3efc..c1b2f37f5 100644 --- a/src/lib/video_mxf_examiner.h +++ b/src/lib/video_mxf_examiner.h @@ -34,15 +34,15 @@ public: bool has_video () const { return true; } - boost::optional video_frame_rate () const; - dcp::Size video_size () const; - Frame video_length () const; - boost::optional sample_aspect_ratio () const; - bool yuv () const; - VideoRange range () const { + boost::optional video_frame_rate () const override; + dcp::Size video_size () const override; + Frame video_length () const override; + boost::optional sample_aspect_ratio () const override; + bool yuv () const override; + VideoRange range () const override { return VideoRange::FULL; } - PixelQuanta pixel_quanta () const { + PixelQuanta pixel_quanta () const override { return {}; } -- 2.30.2