save timelapse stream to file
This commit is contained in:
@@ -209,7 +209,7 @@ bool Image::read(BinaryStreamReader& r)
|
||||
auto img_raw = d.get<Serializer::RawData>("data");
|
||||
int png_width, png_height, png_comp;
|
||||
m_data = std::unique_ptr<uint8_t[]>(stbi_load_from_memory(
|
||||
img_raw->data.data(), img_raw->data.size(), &png_width, &png_height, &png_comp, 4));
|
||||
img_raw->value.data(), img_raw->value.size(), &png_width, &png_height, &png_comp, 4));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user