From c7b91f1ce9a957fd5d813db3262367fd53baef43 Mon Sep 17 00:00:00 2001 From: Mohacsi Istvan Date: Tue, 14 Sep 2021 12:25:39 +0200 Subject: [PATCH] More headers --- jf-zmqstreamer/include/FrameCache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jf-zmqstreamer/include/FrameCache.hpp b/jf-zmqstreamer/include/FrameCache.hpp index 444af0f..6a83137 100644 --- a/jf-zmqstreamer/include/FrameCache.hpp +++ b/jf-zmqstreamer/include/FrameCache.hpp @@ -37,7 +37,7 @@ class FrameCache{ public: FrameCache(uint64_t N_CAP, uint64_t modX, uint64_t modY, std::function callback): m_capacity(N_CAP), m_modX(modX), m_modY(modY), m_mod(modX*modY), m_valid(N_CAP, 0), m_fill(N_CAP, 0), m_lock(N_CAP), - m_buffer(N_CAP, ImageBinaryFormat(512*N_MOD, 1024, sizeof(uint16_t))), + m_buffer(N_CAP, ImageBinaryFormat(512*m_modY, 1024*m_modX, sizeof(uint16_t))), f_send(callback) { // Initialize buffer metadata for(auto& it: m_buffer){ memset(&it.meta, 0, sizeof(it.meta)); }