Skip to content

Commit

Permalink
Fix NV12 calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Aug 11, 2024
1 parent 1b4a076 commit c974ad3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion sources/lut-calibrator/LutCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <utils/Logger.h>
#endif

#define STRING_CSTR(x) ((std::string)x).c_str()
#define STRING_CSTR(x) (x.operator std::string()).c_str()

#include <QCoreApplication>

Expand Down Expand Up @@ -179,6 +179,16 @@ void LutCalibrator::incomingCommand(QString rootpath, GrabberWrapper* grabberWra

_log->enable();
}
else
{
Debug(_log, "Reloading LUT 1/2");
emit GlobalSignals::getInstance()->SignalRequestComponent(hyperhdr::Components::COMP_HDR, -1, true);
QThread::msleep(2000);
Debug(_log, "Reloading LUT 2/2");
emit GlobalSignals::getInstance()->SignalRequestComponent(hyperhdr::Components::COMP_HDR, -1, false);
QThread::msleep(2000);
Debug(_log, "Finished reloading LUT");
}

if (defaultComp == hyperhdr::COMP_VIDEOGRABBER)
{
Expand Down

0 comments on commit c974ad3

Please sign in to comment.