diff options
Diffstat (limited to 'src/camera/veyeimx287m.cpp')
| -rw-r--r-- | src/camera/veyeimx287m.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
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 <QElapsedTimer> #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); } |
