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:
		| @@ -405,7 +405,6 @@ void JsonAPI::handleGetImageSnapshotCommand(const QJsonObject &message, const Js | |||||||
| { | { | ||||||
| 	QString replyMsg; | 	QString replyMsg; | ||||||
| 	QString filetype = message["filetype"].toString(); | 	QString filetype = message["filetype"].toString(); | ||||||
| 	const QStringList fileTypes{"BMP", "JPG", "PNG"}; |  | ||||||
| 	const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority()); | 	const PriorityMuxer::InputInfo priorityInfo = _hyperion->getPriorityInfo(_hyperion->getCurrentPriority()); | ||||||
| 	Image<ColorRgb> image = priorityInfo.image; | 	Image<ColorRgb> image = priorityInfo.image; | ||||||
| 	QImage snapshot(reinterpret_cast<const uchar *>(image.memptr()), image.width(), image.height(), qsizetype(3) * image.width(), QImage::Format_RGB888); | 	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); | 		handleGetLedSnapshotCommand(message, cmd); | ||||||
| 		break; | 		break; | ||||||
| 	default: | 	default: | ||||||
| 		sendErrorReply("Unknown subcommand", cmd); | 	break; | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user