summaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'image.h')
-rw-r--r--image.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/image.h b/image.h
new file mode 100644
index 0000000..2d02fae
--- /dev/null
+++ b/image.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <vector>
+#include <cstddef>
+#include <cstdint>
+
+
+struct HistImage {
+ size_t width, height;
+ std::vector<uint64_t> data;
+
+ HistImage(size_t width, size_t height);
+
+ void add(const HistImage &other);
+ void render(const char *fname) const;
+};
+
+// vim: set sw=4 ts=4 noet: