From 9cb3fe0a72943a52a786a3797462d1d464090cfa Mon Sep 17 00:00:00 2001 From: "Tobias J. Endres" Date: Sat, 16 Aug 2025 06:19:40 +0200 Subject: [PATCH] fix: Resolve build errors by adding missing Qt includes and fixing QByteArray to QString conversions --- BlackBorderDetector.h | 1 + LinearColorSmoothing.h | 2 ++ main.cpp | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BlackBorderDetector.h b/BlackBorderDetector.h index 641bdf5..a780aa8 100644 --- a/BlackBorderDetector.h +++ b/BlackBorderDetector.h @@ -3,6 +3,7 @@ #include #include +#include struct BlackBorder { bool unknown = true; diff --git a/LinearColorSmoothing.h b/LinearColorSmoothing.h index ea9f986..7675454 100644 --- a/LinearColorSmoothing.h +++ b/LinearColorSmoothing.h @@ -3,6 +3,8 @@ #include #include +#include +#include class LinearColorSmoothing { diff --git a/main.cpp b/main.cpp index bc3db9b..a7500e3 100644 --- a/main.cpp +++ b/main.cpp @@ -164,12 +164,12 @@ int main(int argc, char *argv[]) blackBorderDetectorConfig["borderFrameCnt"] = qgetenv("HYPERION_GRABBER_BB_BORDER_FRAME_CNT").isEmpty() ? 50 : qgetenv("HYPERION_GRABBER_BB_BORDER_FRAME_CNT").toInt(); blackBorderDetectorConfig["maxInconsistentCnt"] = qgetenv("HYPERION_GRABBER_BB_MAX_INCONSISTENT_CNT").isEmpty() ? 10 : qgetenv("HYPERION_GRABBER_BB_MAX_INCONSISTENT_CNT").toInt(); blackBorderDetectorConfig["blurRemoveCnt"] = qgetenv("HYPERION_GRABBER_BB_BLUR_REMOVE_CNT").isEmpty() ? 1 : qgetenv("HYPERION_GRABBER_BB_BLUR_REMOVE_CNT").toInt(); - blackBorderDetectorConfig["mode"] = qgetenv("HYPERION_GRABBER_BB_MODE").isEmpty() ? "default" : qgetenv("HYPERION_GRABBER_BB_MODE"); + blackBorderDetectorConfig["mode"] = qgetenv("HYPERION_GRABBER_BB_MODE").isEmpty() ? QString("default") : QString(qgetenv("HYPERION_GRABBER_BB_MODE")); // Smoothing Configuration QJsonObject smoothingConfig; smoothingConfig["enable"] = qgetenv("HYPERION_GRABBER_SMOOTH_ENABLE").isEmpty() ? true : (qgetenv("HYPERION_GRABBER_SMOOTH_ENABLE").toLower() == "true"); - smoothingConfig["type"] = qgetenv("HYPERION_GRABBER_SMOOTH_TYPE").isEmpty() ? "linear" : qgetenv("HYPERION_GRABBER_SMOOTH_TYPE"); + smoothingConfig["type"] = qgetenv("HYPERION_GRABBER_SMOOTH_TYPE").isEmpty() ? QString("linear") : QString(qgetenv("HYPERION_GRABBER_SMOOTH_TYPE")); smoothingConfig["time_ms"] = qgetenv("HYPERION_GRABBER_SMOOTH_TIME_MS").isEmpty() ? 150 : qgetenv("HYPERION_GRABBER_SMOOTH_TIME_MS").toInt(); smoothingConfig["updateFrequency"] = qgetenv("HYPERION_GRABBER_SMOOTH_UPDATE_FREQUENCY").isEmpty() ? 25.0 : qgetenv("HYPERION_GRABBER_SMOOTH_UPDATE_FREQUENCY").toDouble(); smoothingConfig["interpolationRate"] = qgetenv("HYPERION_GRABBER_SMOOTH_INTERPOLATION_RATE").isEmpty() ? 1.0 : qgetenv("HYPERION_GRABBER_SMOOTH_INTERPOLATION_RATE").toDouble();