From d2f42e469b1d5f8b043b72ad7e585bae10e4ffe1 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 11 Oct 2019 09:00:19 +0300 Subject: [PATCH] Adapt packet structures --- applications/reconstruct/src/main.cpp | 2 +- components/codecs/include/ftl/codecs/bitrates.hpp | 1 + components/codecs/include/ftl/codecs/packet.hpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/reconstruct/src/main.cpp b/applications/reconstruct/src/main.cpp index 34150aeb7..929582d18 100644 --- a/applications/reconstruct/src/main.cpp +++ b/applications/reconstruct/src/main.cpp @@ -183,7 +183,7 @@ static void run(ftl::Configurable *root) { writer.begin(); - // TODO: Write pose+calibration packets + // TODO: Write pose+calibration+config packets group.addRawCallback(std::function(recorder)); } else { diff --git a/components/codecs/include/ftl/codecs/bitrates.hpp b/components/codecs/include/ftl/codecs/bitrates.hpp index 6c66aeec6..8e41b13f7 100644 --- a/components/codecs/include/ftl/codecs/bitrates.hpp +++ b/components/codecs/include/ftl/codecs/bitrates.hpp @@ -17,6 +17,7 @@ enum struct codec_t : uint8_t { HEVC, // H265 // TODO: Add audio codecs + WAV, JSON = 100, // A JSON string CALIBRATION, // Camera parameters object diff --git a/components/codecs/include/ftl/codecs/packet.hpp b/components/codecs/include/ftl/codecs/packet.hpp index 3c0400814..3b8d17151 100644 --- a/components/codecs/include/ftl/codecs/packet.hpp +++ b/components/codecs/include/ftl/codecs/packet.hpp @@ -15,7 +15,7 @@ namespace codecs { */ struct Header { const char magic[4] = {'F','T','L','F'}; - uint8_t version; + uint8_t version = 1; }; /** -- GitLab