summaryrefslogtreecommitdiff
path: root/src/camera/veyeimx287m.cpp
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-11-07 23:10:25 +0100
committerNikita Kostovsky <nikita@kostovsky.me>2025-11-07 23:10:25 +0100
commitc38edfbd30aae121ebdaaac8e8e25f8784da318d (patch)
treeb67604615c6feac45e503da9a28473c7ed7f8316 /src/camera/veyeimx287m.cpp
parenta9af2d69c0a4d46dc98b6e0adaf13a7f23a24bce (diff)
speedup; add some i2c commands
Diffstat (limited to 'src/camera/veyeimx287m.cpp')
-rw-r--r--src/camera/veyeimx287m.cpp13
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);
}