mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
clean up code
This commit is contained in:
parent
0f91510a76
commit
5f89d641dd
@ -405,7 +405,6 @@ void JsonAPI::handleGetImageSnapshotCommand(const QJsonObject &message, const Js
|
||||
{
|
||||
QString replyMsg;
|
||||
QString filetype = message["filetype"].toString();
|
||||
const QStringList fileTypes{"BMP", "JPG", "PNG"};
|
||||
const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority());
|
||||
Image<ColorRgb> image = priorityInfo.image;
|
||||
QImage snapshot(reinterpret_cast<const uchar *>(image.memptr()), image.width(), image.height(), qsizetype(3) * image.width(), QImage::Format_RGB888);
|
||||
@ -466,7 +465,7 @@ void JsonAPI::handleInstanceDataCommand(const QJsonObject &message, const JsonAp
|
||||
handleGetLedSnapshotCommand(message, cmd);
|
||||
break;
|
||||
default:
|
||||
sendErrorReply("Unknown subcommand", cmd);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user