1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 17:04:46 -04:00

SDRdaemon plugin: report LZ4 compression status

This commit is contained in:
f4exb
2016-02-23 18:19:35 +01:00
parent 16c3e3e72f
commit 23750b10f6
6 changed files with 22 additions and 6 deletions
@@ -201,6 +201,7 @@ bool SDRdaemonGui::handleMessage(const Message& message)
m_startingTimeStamp.tv_usec = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).get_tv_usec();
m_syncLocked = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).getSyncLock();
m_frameSize = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).getFrameSize();
m_lz4 = ((SDRdaemonInput::MsgReportSDRdaemonStreamTiming&)message).getLz4Compression();
updateWithStreamTime();
return true;
}
@@ -312,6 +313,12 @@ void SDRdaemonGui::updateWithStreamTime()
QString s = QString::number(m_frameSize / 1024.0, 'f', 0);
ui->frameSizeText->setText(tr("%1").arg(s));
if (m_lz4) {
ui->lz4Compressed->setStyleSheet("QToolButton { background-color : green; }");
} else {
ui->lz4Compressed->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
}
}
void SDRdaemonGui::tick()