From 110d7cae46ae74879b2fe47e1f9e5e37a9438398 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 7 Jul 2016 02:38:30 +0200 Subject: [PATCH] SDRdaemonFEC support. removed output meta --- plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp | 7 ------- plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp index 5bbf7bd35..31f230a80 100644 --- a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp +++ b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp @@ -37,7 +37,6 @@ SDRdaemonFECBuffer::SDRdaemonFECBuffer(uint32_t throttlems) : m_bufferLenSec(0.0f) { m_currentMeta.init(); - m_outputMeta.init(); m_framesNbBytes = nbDecoderSlots * sizeof(BufferFrame); m_wrDeltaEstimate = m_framesNbBytes / 2; m_paramsCM256.BlockBytes = sizeof(ProtectedBlock); // never changes @@ -111,12 +110,6 @@ void SDRdaemonFECBuffer::initDecodeSlot(int slotIndex) int pseudoWriteIndex = slotIndex * sizeof(BufferFrame); m_wrDeltaEstimate = pseudoWriteIndex - m_readIndex; - if (m_decoderSlots[slotIndex].m_metaRetrieved) { // meta data was retrieved in the current slot - m_outputMeta = m_decoderSlots[slotIndex].m_blockZero.m_metaData; - } else { - m_outputMeta = m_currentMeta; // use stored current meta - } - // collect stats before voiding the slot m_curNbBlocks = m_decoderSlots[slotIndex].m_blockCount; m_curNbRecovery = m_decoderSlots[slotIndex].m_recoveryCount; diff --git a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h index 554cfc574..aaac12635 100644 --- a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h +++ b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h @@ -97,7 +97,6 @@ public: // meta data const MetaDataFEC& getCurrentMeta() const { return m_currentMeta; } - const MetaDataFEC& getOutputMeta() const { return m_outputMeta; } // stats int getCurNbBlocks() const { return m_curNbBlocks; } @@ -157,7 +156,6 @@ private: }; MetaDataFEC m_currentMeta; //!< Stored current meta data - MetaDataFEC m_outputMeta; //!< Meta data corresponding to currently served frame cm256_encoder_params m_paramsCM256; //!< CM256 decoder parameters block DecoderSlot m_decoderSlots[nbDecoderSlots]; //!< CM256 decoding control/buffer slots BufferFrame m_frames[nbDecoderSlots]; //!< Samples buffer