netatmo-algo/src/frame.h
Fabien Freling 5b32c517c1 add mask
2022-02-17 23:37:46 +01:00

27 lines
405 B
C++

#pragma once
#include <cstdint>
namespace freling {
struct Pixel {
uint8_t r;
uint8_t g;
uint8_t b;
};
struct Frame {
uint32_t width;
uint32_t height;
Pixel* data;
Frame(uint32_t width, uint32_t height);
Frame(const Frame& other);
Frame& operator=(const Frame& other);
Frame(Frame&& other);
~Frame();
void fill(uint8_t p);
};
} // namespace freling