Skip to content

Commit 526cdab

Browse files
committed
Significant speedup for YUV/NV12/P010 and related codecs (2)
1 parent 6ee9ce2 commit 526cdab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

include/utils/Logger.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ public slots:
155155
else if constexpr (std::is_arithmetic_v<D>) {
156156
return std::forward<T>(v);
157157
}
158+
else if constexpr (std::is_same_v<D, std::string_view>) {
159+
return QString::fromUtf8(v.data(), static_cast<int>(v.size()));
160+
}
158161
else {
159162
return QString::fromLatin1(typeid(D).name());
160163
}

sources/led-drivers/serial/DriverSerialAdalight.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void DriverSerialAdalight::CreateHeader()
7979
qToBigEndian<quint16>(static_cast<quint16>(totalLedCount), &_ledBuffer[3]);
8080
_ledBuffer[5] = _ledBuffer[3] ^ _ledBuffer[4] ^ 0x55; // Checksum
8181

82-
Debug(_log, "Adalight header for {:d} leds: {:c}{:c}{:c} 0x%02x 0x%02x 0x%02x", _ledCount,
82+
Debug(_log, "Adalight header for {:d} leds: {:c} {:c} {:c} {:d} {:d} {:d}", _ledCount,
8383
_ledBuffer[0], _ledBuffer[1], _ledBuffer[2], _ledBuffer[3], _ledBuffer[4], _ledBuffer[5]);
8484
}
8585

sources/led-drivers/spi/DriverSpiHyperSPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void DriverSpiHyperSPI::createHeader()
117117
qToBigEndian<quint16>(static_cast<quint16>(totalLedCount), &_ledBuffer[3]);
118118
_ledBuffer[5] = _ledBuffer[3] ^ _ledBuffer[4] ^ 0x55; // Checksum
119119

120-
Debug(_log, "SPI header for {:d} leds: {:c}{:c}{:c} 0x%02x 0x%02x 0x%02x", _ledCount,
120+
Debug(_log, "SPI header for {:d} leds: {:c} {:c} {:c} {:d} {:d} {:d}", _ledCount,
121121
_ledBuffer[0], _ledBuffer[1], _ledBuffer[2], _ledBuffer[3], _ledBuffer[4], _ledBuffer[5]);
122122
}
123123

0 commit comments

Comments
 (0)