1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

SDRdaemon plugin: report LZ4 compression ratio

This commit is contained in:
f4exb
2016-02-23 18:29:08 +01:00
parent 23750b10f6
commit e5f2a49835
6 changed files with 19 additions and 7 deletions
@@ -74,6 +74,7 @@ public:
bool isSyncLocked() const { return m_syncLock; }
uint32_t getFrameSize() const { return m_frameSize; }
bool isLz4Compressed() const { return m_lz4; }
float getCompressionRatio() const { return (m_frameSize ? (float) m_lz4InSize / (float) m_frameSize : 1.0); }
static const int m_udpPayloadSize;
static const int m_sampleSize;