@@ -284,6 +284,8 @@ void FlatBuffersServer::handlerImportFromProto(int priority, int duration, const
284284
285285void FlatBuffersServer::handlerImageReceived (int priority, FlatBuffersParser::FlatbuffersTransientImage* flatImage, int timeout_ms, hyperhdr::Components origin, QString clientDescription)
286286{
287+ static unsigned int logger = 0 ;
288+
287289 if (QThread::currentThread () != this ->thread ())
288290 {
289291 Error (_log, " Sanity check. FlatBuffersServer::handlerImageReceived uses the wrong thread affiliation." );
@@ -296,8 +298,16 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl
296298 {
297299 _currentLutPixelFormat = PixelFormat::RGB24;
298300 loadLutFile ();
301+ logger = 0 ;
299302 }
300303
304+ if (logger++ < 10 )
305+ {
306+ Debug (_log, " RGB flatbuffers frame (%i)" , logger);
307+ }
308+
309+
310+
301311 if (flatImage->size != flatImage->width * flatImage->height * 3 )
302312 {
303313 Error (_log, " The RGB image data size does not match the width and height" );
@@ -324,8 +334,15 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl
324334 flatImage->firstPlane .size , flatImage->firstPlane .stride ,
325335 flatImage->secondPlane .size , flatImage->secondPlane .stride ,
326336 flatImage->size , flatImage->width , flatImage->height );
337+ logger = 0 ;
327338 }
328339
340+ if (logger++ < 10 )
341+ {
342+ Debug (_log, " NV12 flatbuffers frame (%i)" , logger);
343+ }
344+
345+
329346 if (!_lutBufferInit)
330347 {
331348 Error (_log, " The LUT file is not loaded" );
0 commit comments