diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-09-03 23:31:40 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-09-03 23:37:53 +0200 |
commit | 7e60437d3c064bca402d486be967c43bf4326067 (patch) | |
tree | 8b4307b90c942861176d9c705cd760b9fe7b6c6b /image.h |
This includes old code too, perhaps from 2021-05-05, judging from the
birth timestamp on the directory. The old code included option parsing
and equation solving for fancy mutually-dependent options, but no actual
rendering (imagine that).
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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: |