Skip to content

Commit

Permalink
Revert "Add flatbuffers logging"
Browse files Browse the repository at this point in the history
This reverts commit 1b4a076.
  • Loading branch information
awawa-dev committed Aug 13, 2024
1 parent c974ad3 commit 34f9e1b
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions sources/flatbuffers/server/FlatBuffersServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ void FlatBuffersServer::handlerImportFromProto(int priority, int duration, const

void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::FlatbuffersTransientImage* flatImage, int timeout_ms, hyperhdr::Components origin, QString clientDescription)
{
static unsigned int logger = 0;

if (QThread::currentThread() != this->thread())
{
Error(_log, "Sanity check. FlatBuffersServer::handlerImageReceived uses the wrong thread affiliation.");
Expand All @@ -298,16 +296,8 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl
{
_currentLutPixelFormat = PixelFormat::RGB24;
loadLutFile();
logger = 0;
}

if (logger++ < 10)
{
Debug(_log, "RGB flatbuffers frame (%i)", logger);
}



if (flatImage->size != flatImage->width * flatImage->height * 3)
{
Error(_log, "The RGB image data size does not match the width and height");
Expand All @@ -334,15 +324,8 @@ void FlatBuffersServer::handlerImageReceived(int priority, FlatBuffersParser::Fl
flatImage->firstPlane.size, flatImage->firstPlane.stride,
flatImage->secondPlane.size, flatImage->secondPlane.stride,
flatImage->size, flatImage->width, flatImage->height);
logger = 0;
}

if (logger++ < 10)
{
Debug(_log, "NV12 flatbuffers frame (%i)", logger);
}


if (!_lutBufferInit)
{
Error(_log, "The LUT file is not loaded");
Expand Down

0 comments on commit 34f9e1b

Please sign in to comment.