From 5df63c0bc7e3d6f1850d04f5bafbae2dd6fa619e Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 14 Nov 2025 21:05:12 +0100 Subject: organize things a bit, populate ICamera --- src/camera/innomakerov9281.h | 63 -------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/camera/innomakerov9281.h (limited to 'src/camera/innomakerov9281.h') diff --git a/src/camera/innomakerov9281.h b/src/camera/innomakerov9281.h deleted file mode 100644 index 7f2d206..0000000 --- a/src/camera/innomakerov9281.h +++ /dev/null @@ -1,63 +0,0 @@ -#pragma once - -#include - -#include - -#include "constants.h" -#include "image.h" - -#include "icamera.h" - -class InnoMakerOV9281 : public ICamera -{ - constexpr static char videoDevice[] = "/dev/video0"; - -public: - using buffer_t = std::array; - -public: - InnoMakerOV9281(); - ~InnoMakerOV9281(); - -public: - static std::vector> search(); - -public: - bool startStream() override; - - bool init(); - - bool setExposureTimeUs(int value) override; - bool setGain(int value) override; - - bool setLaserLevel(int value) override; - - bool setSomething(int value) override; - - // bool getImage(Image &image); - bool getImage(size_t &image); - // Image &getImage(); - -public: - libcamera::Signal> newPixels; - libcamera::Signal> newImage; - -private: - bool setCamParam(unsigned int v4l2controlId, int value); - bool openCam(); - bool selectCam(int camIdx = 0); - bool initCam(); - -private: - int m_cam_fd{-1}; - static constexpr uint8_t BUFFER_COUNT{3}; - // #ifdef USER_PTR - Image m_images[BUFFER_COUNT]; - // #else - uint8_t *video_buffer_ptr[BUFFER_COUNT]; - // #endif - // buffer_t m_buf; - std::jthread m_streamThread; - static inline std::jthread m_someThread; -}; -- cgit v1.2.3-70-g09d2