diff --git a/GetThermal.pro b/GetThermal.pro index 5d0a1f8..90ade5c 100644 --- a/GetThermal.pro +++ b/GetThermal.pro @@ -104,7 +104,7 @@ QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libuvc/build/release/ -luvc else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libuvc/build/debug/ -luvc else:macos: LIBS += -L$$PWD/libuvc/build/ -luvc -else:unix: LIBS += -L$$PWD/libuvc/build/ -luvcstatic +else:unix: LIBS += -L$$PWD/libuvc/build/ -luvc INCLUDEPATH += $$PWD/lepton_sdk/Inc \ $$PWD/libuvc/build/include \ diff --git a/src/dataformatter.cpp b/src/dataformatter.cpp index fcfa76a..667e0fe 100644 --- a/src/dataformatter.cpp +++ b/src/dataformatter.cpp @@ -30,7 +30,7 @@ void DataFormatter::FindMinMax(const uvc_frame_t *input, QPoint &minPoint, uint1 uint8_t bytes_per_pixel = 0; switch (input->frame_format) { - case UVC_FRAME_FORMAT_Y16: + case UVC_FRAME_FORMAT_GRAY16: bytes_per_pixel = 2; break; case UVC_FRAME_FORMAT_GRAY8: @@ -95,7 +95,7 @@ void DataFormatter::FixedGain(uvc_frame_t *input_output, QPoint minpoint, ushort uint8_t bytes_per_pixel = 0; switch (input_output->frame_format) { - case UVC_FRAME_FORMAT_Y16: + case UVC_FRAME_FORMAT_GRAY16: bytes_per_pixel = 2; break; case UVC_FRAME_FORMAT_GRAY8: @@ -165,7 +165,7 @@ void DataFormatter::Colorize(const uvc_frame_t *input, QVideoFrame &output) cons Q_ASSERT(output.pixelFormat() == QVideoFrame::Format_RGB32); switch (input->frame_format) { - case UVC_FRAME_FORMAT_Y16: + case UVC_FRAME_FORMAT_GRAY16: bytes_per_pixel = 2; break; case UVC_FRAME_FORMAT_GRAY8: diff --git a/src/uvcacquisition.cpp b/src/uvcacquisition.cpp index 0075b61..953c42e 100644 --- a/src/uvcacquisition.cpp +++ b/src/uvcacquisition.cpp @@ -150,13 +150,13 @@ void UvcAcquisition::setVideoFormat(const QVideoSurfaceFormat &format) switch(format.pixelFormat()) { case QVideoFrame::Format_YUV420P: - uvcFormat = UVC_FRAME_FORMAT_I420; + uvcFormat = UVC_FRAME_FORMAT_BA81; break; case QVideoFrame::Format_RGB24: uvcFormat = UVC_FRAME_FORMAT_RGB; break; case QVideoFrame::Format_Y16: - uvcFormat = UVC_FRAME_FORMAT_Y16; + uvcFormat = UVC_FRAME_FORMAT_GRAY16; break; default: uvcFormat = UVC_FRAME_FORMAT_UNKNOWN;