From c38edfbd30aae121ebdaaac8e8e25f8784da318d Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 7 Nov 2025 23:10:25 +0100 Subject: speedup; add some i2c commands --- src/camera/veyeimx287m.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/camera/veyeimx287m.cpp') diff --git a/src/camera/veyeimx287m.cpp b/src/camera/veyeimx287m.cpp index dee3c6a..c7e519a 100644 --- a/src/camera/veyeimx287m.cpp +++ b/src/camera/veyeimx287m.cpp @@ -15,6 +15,7 @@ #include #include "constants.h" +#include "imagealgos.h" #include "pixels.h" // #include "rotaryencoder.h" @@ -141,7 +142,7 @@ bool VeyeIMX287m::init() bool VeyeIMX287m::setExposureTimeUs(int valueUs) { - return true; + //return true; std::cout << __func__ << ": " << valueUs << std::endl << std::flush; /* @@ -378,7 +379,15 @@ void VeyeIMX287m::calcFrameLoop(std::stop_token stopToken) } image.rotate(); - image.pixels(); + // const auto pixels = image.pixels(); + const auto pixels = image.sharedPixels(); +#pragma push_macro("emit") +#undef emit + // std::cout << "emit pixels" << std::endl; + newPixels.emit(pixels); +#pragma pop_macro("emit") + // const auto lines = pixelsToLines(*pixels); + // continue; // setCamParam(V4L2_CID_EXPOSURE, 18); } -- cgit v1.2.3-70-g09d2