aboutsummaryrefslogtreecommitdiffstats
path: root/src/EtiReader.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:11:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-07 11:11:12 +0100
commit1e76247e059021ea52309ebd258b6eed033d6aee (patch)
tree29ef4aa7ae5826050fb4a36dce947e24977366f9 /src/EtiReader.cpp
parent39a70386994b1ab8876bd020d3755ce609903c48 (diff)
downloaddabmod-1e76247e059021ea52309ebd258b6eed033d6aee.tar.gz
dabmod-1e76247e059021ea52309ebd258b6eed033d6aee.tar.bz2
dabmod-1e76247e059021ea52309ebd258b6eed033d6aee.zip
Remove calculateTimestamp
Diffstat (limited to 'src/EtiReader.cpp')
-rw-r--r--src/EtiReader.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/EtiReader.cpp b/src/EtiReader.cpp
index dc5df84..17f4953 100644
--- a/src/EtiReader.cpp
+++ b/src/EtiReader.cpp
@@ -54,10 +54,9 @@ enum ETI_READER_STATE {
EtiReader::EtiReader(
- double& tist_offset_s,
- unsigned tist_delay_stages) :
+ double& tist_offset_s) :
state(EtiReaderStateSync),
- myTimestampDecoder(tist_offset_s, tist_delay_stages),
+ myTimestampDecoder(tist_offset_s),
eti_fc_valid(false)
{
rcs.enrol(&myTimestampDecoder);
@@ -292,11 +291,6 @@ bool EtiReader::sourceContainsTimestamp()
/* See ETS 300 799, Annex C.2.2 */
}
-void EtiReader::calculateTimestamp(struct frame_timestamp& ts)
-{
- myTimestampDecoder.calculateTimestamp(ts);
-}
-
uint32_t EtiReader::getPPSOffset()
{
if (!sourceContainsTimestamp()) {
@@ -311,9 +305,8 @@ uint32_t EtiReader::getPPSOffset()
}
EdiReader::EdiReader(
- double& tist_offset_s,
- unsigned tist_delay_stages) :
- m_timestamp_decoder(tist_offset_s, tist_delay_stages)
+ double& tist_offset_s) :
+ m_timestamp_decoder(tist_offset_s)
{
rcs.enrol(&m_timestamp_decoder);
}
@@ -361,11 +354,6 @@ bool EdiReader::sourceContainsTimestamp()
return m_fc.tsta != 0xFFFFFF;
}
-void EdiReader::calculateTimestamp(struct frame_timestamp& ts)
-{
- m_timestamp_decoder.calculateTimestamp(ts);
-}
-
bool EdiReader::isFrameReady()
{
return m_frameReady;