mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Minor Updates (#1241)
This commit is contained in:
@@ -580,7 +580,7 @@ void Hyperion::update()
|
||||
|
||||
// copy image & process OR copy ledColors from muxer
|
||||
Image<ColorRgb> image = priorityInfo.image;
|
||||
if(image.size() > 3)
|
||||
if (image.width() > 1 || image.height() > 1)
|
||||
{
|
||||
emit currentImage(image);
|
||||
_ledBuffer = _imageProcessor->process(image);
|
||||
|
@@ -28,7 +28,7 @@ QString ImageProcessor::mappingTypeToStr(int mappingType)
|
||||
|
||||
ImageProcessor::ImageProcessor(const LedString& ledString, Hyperion* hyperion)
|
||||
: QObject(hyperion)
|
||||
, _log(Logger::getInstance("BLACKBORDER"))
|
||||
, _log(Logger::getInstance("IMAGETOLED"))
|
||||
, _ledString(ledString)
|
||||
, _borderProcessor(new BlackBorderProcessor(hyperion, this))
|
||||
, _imageToLeds(nullptr)
|
||||
|
@@ -59,7 +59,7 @@ ImageToLedsMap::ImageToLedsMap(
|
||||
const auto maxYLedCount = qMin(maxY_idx, yOffset+actualHeight);
|
||||
const auto maxXLedCount = qMin(maxX_idx, xOffset+actualWidth);
|
||||
|
||||
std::vector<unsigned> ledColors;
|
||||
std::vector<int32_t> ledColors;
|
||||
ledColors.reserve((size_t) maxXLedCount*maxYLedCount);
|
||||
|
||||
for (unsigned y = minY_idx; y < maxYLedCount; ++y)
|
||||
|
Reference in New Issue
Block a user