This commit is contained in:
Yggdrasil75
2025-12-29 14:57:33 -05:00
4 changed files with 289 additions and 3 deletions

View File

@@ -143,7 +143,7 @@ public:
return true;
}
static bool saveBMP(const std::string& filename, frame& frame) {
static bool saveBMP(const std::string& filename, const frame& frame) {
if (frame.colorFormat == frame::colormap::RGB) {
return saveBMP(filename, frame.getData(), frame.getWidth(), frame.getHeight());
} else if (frame.colorFormat == frame::colormap::RGBA) {

View File

@@ -48,11 +48,11 @@ public:
colormap colorFormat = colormap::RGB;
compresstype cformat = compresstype::RAW;
const size_t& getWidth() {
const size_t& getWidth() const {
return width;
}
const size_t& getHeight() {
const size_t& getHeight() const {
return height;
}
frame() {};