From 366dad2536801312a69b126fdccc86c6343bee0c Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Mon, 16 Dec 2024 16:40:46 +0100 Subject: libcamera: converter_v4l2_m2m: Add missing override specifier In preparation for adding new functions and overrides to the V4L2M2MDevice class, add an override specifier to all overridden functions in the class. This prevents -Winconsistent-missing-override warnings. Signed-off-by: Stefan Klug Reviewed-by: Jacopo Mondi Reviewed-by: Paul Elder --- .../internal/converter/converter_v4l2_m2m.h | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/libcamera/internal/converter/converter_v4l2_m2m.h b/include/libcamera/internal/converter/converter_v4l2_m2m.h index 0bc0d053..9b8e43ff 100644 --- a/include/libcamera/internal/converter/converter_v4l2_m2m.h +++ b/include/libcamera/internal/converter/converter_v4l2_m2m.h @@ -38,28 +38,29 @@ class V4L2M2MConverter : public Converter public: V4L2M2MConverter(MediaDevice *media); - int loadConfiguration([[maybe_unused]] const std::string &filename) { return 0; } - bool isValid() const { return m2m_ != nullptr; } + int loadConfiguration([[maybe_unused]] const std::string &filename) override { return 0; } + bool isValid() const override { return m2m_ != nullptr; } - std::vector formats(PixelFormat input); - SizeRange sizes(const Size &input); + std::vector formats(PixelFormat input) override; + SizeRange sizes(const Size &input) override; std::tuple - strideAndFrameSize(const PixelFormat &pixelFormat, const Size &size); + strideAndFrameSize(const PixelFormat &pixelFormat, const Size &size) override; int configure(const StreamConfiguration &inputCfg, - const std::vector> &outputCfg); + const std::vector> + &outputCfg) override; int exportBuffers(const Stream *stream, unsigned int count, - std::vector> *buffers); + std::vector> *buffers) override; - int start(); - void stop(); + int start() override; + void stop() override; int queueBuffers(FrameBuffer *input, - const std::map &outputs); + const std::map &outputs) override; - int setInputCrop(const Stream *stream, Rectangle *rect); - std::pair inputCropBounds(const Stream *stream); + int setInputCrop(const Stream *stream, Rectangle *rect) override; + std::pair inputCropBounds(const Stream *stream) override; private: class V4L2M2MStream : protected Loggable -- cgit v1.2.1