aboutsummaryrefslogtreecommitdiffstats
path: root/src/EtiReader.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 16:15:57 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 16:15:57 +0100
commit7c8ae25ba83fc658dfbe4cd468bb1bdfd3513c74 (patch)
tree642bf09c71e44271245d077442c3f8fd620fd18f /src/EtiReader.h
parentea5594186bafa5489d6086a26d71b8f3d1ccf9cd (diff)
downloaddabmod-7c8ae25ba83fc658dfbe4cd468bb1bdfd3513c74.tar.gz
dabmod-7c8ae25ba83fc658dfbe4cd468bb1bdfd3513c74.tar.bz2
dabmod-7c8ae25ba83fc658dfbe4cd468bb1bdfd3513c74.zip
Integrate timestampdecoder into EDI input
Diffstat (limited to 'src/EtiReader.h')
-rw-r--r--src/EtiReader.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/EtiReader.h b/src/EtiReader.h
index 1b75025..5231365 100644
--- a/src/EtiReader.h
+++ b/src/EtiReader.h
@@ -122,11 +122,14 @@ private:
class EdiReader : public EtiSource, public EdiDecoder::DataCollector
{
public:
+ EdiReader(
+ double& tist_offset_s,
+ unsigned tist_delay_stages);
+
virtual unsigned getMode();
virtual unsigned getFp();
- virtual bool sourceContainsTimestamp() { return false; }
- virtual void calculateTimestamp(struct frame_timestamp& ts)
- { /* TODO */ }
+ virtual bool sourceContainsTimestamp();
+ virtual void calculateTimestamp(struct frame_timestamp& ts);
virtual const std::vector<std::shared_ptr<SubchannelSource> > getSubchannels() const;
virtual bool isFrameReady(void);
@@ -181,10 +184,13 @@ private:
uint16_t m_rfu = 0xffff;
std::map<uint8_t, std::shared_ptr<SubchannelSource> > m_sources;
+
+ TimestampDecoder m_timestamp_decoder;
};
-/* The EDI input does not use the inputs defined in InputReader.h, as they were designed
- * for ETI. It uses the EdiUdpInput which in turn uses a threaded receiver.
+/* The EDI input does not use the inputs defined in InputReader.h, as they were
+ * designed for ETI. It uses the EdiUdpInput which in turn uses a threaded
+ * receiver.
*/
class EdiUdpInput {