@@ -284,6 +284,8 @@ void FlatBuffersServer::handlerImportFromProto(int priority, int duration, const
284
284
285
285
void FlatBuffersServer::handlerImageReceived (int priority, FlatBuffersParser::FlatbuffersTransientImage* flatImage, int timeout_ms, hyperhdr::Components origin, QString clientDescription)
286
286
{
287
+ static unsigned int logger = 0 ;
288
+
287
289
if (QThread::currentThread () != this ->thread ())
288
290
{
289
291
Error (_log, " Sanity check. FlatBuffersServer::handlerImageReceived uses the wrong thread affiliation." );
@@ -296,8 +298,16 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl
296
298
{
297
299
_currentLutPixelFormat = PixelFormat::RGB24;
298
300
loadLutFile ();
301
+ logger = 0 ;
299
302
}
300
303
304
+ if (logger++ < 10 )
305
+ {
306
+ Debug (_log, " RGB flatbuffers frame (%i)" , logger);
307
+ }
308
+
309
+
310
+
301
311
if (flatImage->size != flatImage->width * flatImage->height * 3 )
302
312
{
303
313
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
324
334
flatImage->firstPlane .size , flatImage->firstPlane .stride ,
325
335
flatImage->secondPlane .size , flatImage->secondPlane .stride ,
326
336
flatImage->size , flatImage->width , flatImage->height );
337
+ logger = 0 ;
327
338
}
328
339
340
+ if (logger++ < 10 )
341
+ {
342
+ Debug (_log, " NV12 flatbuffers frame (%i)" , logger);
343
+ }
344
+
345
+
329
346
if (!_lutBufferInit)
330
347
{
331
348
Error (_log, " The LUT file is not loaded" );
0 commit comments