summaryrefslogtreecommitdiffstats
path: root/src/OutputFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputFile.cpp')
-rw-r--r--src/OutputFile.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/OutputFile.cpp b/src/OutputFile.cpp
index 3bb45c4..481e858 100644
--- a/src/OutputFile.cpp
+++ b/src/OutputFile.cpp
@@ -77,22 +77,26 @@ meta_vec_t OutputFile::process_metadata(const meta_vec_t& metadataIn)
for (const auto& md : metadataIn) {
if (md.ts) {
- ss << "FCT=" << md.ts->fct <<
+ ss << " FCT=" << md.ts->fct <<
" FP=" << (int)md.ts->fp;
- if (md.ts->timestamp_valid) {
- ss << " ts=" << md.ts->timestamp_sec <<
- "+" << md.ts->timestamp_pps << ", ";
- }
- else {
- ss << " no ts";
- }
}
else {
- ss << "void, ";
+ ss << " void, ";
}
}
+ if (myEtiSource) {
+ frame_timestamp ts;
+ myEtiSource->calculateTimestamp(ts);
+ ss << " ETI FCT=" << ts.fct;
+ }
+
etiLog.level(debug) << "Output File got metadata: " << ss.str();
return {};
}
+
+void OutputFile::setETISource(EtiSource *etiSource)
+{
+ myEtiSource = etiSource;
+}