netatmo-algo/src/frame.h
2022-02-12 00:28:54 +01:00

23 lines
362 B
C++

#pragma once
#include <cstdint>
struct Pixel {
uint32_t r;
uint32_t g;
uint32_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);
};