VOXELFORMAT: use ZipReadStream

master
Martin Gerhardy 2022-01-27 23:15:36 +01:00
parent ec9700f9c9
commit f5f1d2362f
1 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,7 @@
#include "core/Log.h"
#include "image/Image.h"
#include "io/BufferedZipReadStream.h"
#include "io/ZipReadStream.h"
namespace voxel {
@ -104,8 +105,7 @@ bool QBCLFormat::readMatrix(const core::String &filename, io::SeekableReadStream
return false;
}
const uint32_t voxelDataSizeDecompressed = size.x * size.y * size.z * sizeof(uint32_t);
io::BufferedZipReadStream zipStream(stream, voxelDataSize, voxelDataSizeDecompressed);
io::ZipReadStream zipStream(stream, (int)voxelDataSize);
voxel::RawVolume* volume = new voxel::RawVolume(region);
_colorsSize = 0;
uint32_t index = 0;