well, working now. I think.
This commit is contained in:
@@ -150,6 +150,7 @@ public:
|
||||
} else if (frame.colorFormat == frame::colormap::RGBA) {
|
||||
std::cout << "found incorrect colormap. converting from RGBA" << std::endl;
|
||||
std::vector<uint8_t> fdata = convertRGBAtoRGB(frame.getData());
|
||||
std::cout << "source data: " << frame.getData().size() << " out data: " << fdata.size() << std::endl;
|
||||
return saveBMP(filename, fdata, frame.getWidth(), frame.getHeight());
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
_compressedData.shrink_to_fit();
|
||||
overheadmap.clear();
|
||||
sourceSize = data.size();
|
||||
|
||||
std::cout << "wrote " << data.size() << " as frame" << std::endl;
|
||||
}
|
||||
|
||||
const std::vector<uint8_t>& getData() const {
|
||||
|
||||
Reference in New Issue
Block a user