From e184283d160133233378cafd90b3ffb0155bd0f8 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nicolas.pope@utu.fi>
Date: Fri, 19 Aug 2022 05:53:40 +0000
Subject: [PATCH] Feature/raw codec

---
 include/ftl/codec/rawmat.hpp | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 include/ftl/codec/rawmat.hpp

diff --git a/include/ftl/codec/rawmat.hpp b/include/ftl/codec/rawmat.hpp
new file mode 100644
index 0000000..05e1161
--- /dev/null
+++ b/include/ftl/codec/rawmat.hpp
@@ -0,0 +1,29 @@
+/**
+ * @file rawmat.hpp
+ * @copyright Copyright (c) 2022 University of Turku, MIT License
+ * @author Nicolas Pope
+ */
+
+#pragma once
+
+#include <cstdint>
+
+namespace ftl {
+namespace codec {
+namespace raw {
+
+/**
+ * @brief Uncompressed image data with an OpenCV type.
+ * 
+ */
+template<typename T = uint8_t>
+struct RawMat {
+    uint16_t cols;
+    uint16_t rows;
+    uint32_t type;
+    T data[];
+};
+
+}  // namespace raw
+}  // namespace codec
+}  // namespace ftl
-- 
GitLab