netatmo-algo/src/frame.h

28 lines
405 B
C
Raw Permalink Normal View History

2022-02-12 00:28:54 +01:00
#pragma once
#include <cstdint>
2022-02-17 23:15:45 +01:00
namespace freling {
2022-02-12 00:28:54 +01:00
struct Pixel {
2022-02-13 23:41:08 +01:00
uint8_t r;
uint8_t g;
uint8_t b;
2022-02-12 00:28:54 +01:00
};
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);
};
2022-02-17 23:15:45 +01:00
} // namespace freling