Skip to content
Snippets Groups Projects
Commit 1b39e3a5 authored by Vojtěch Moravec's avatar Vojtěch Moravec
Browse files

Read vector size from header and not from options.

parent c9f4b14b
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ public class VQImageDecompressor extends CompressorDecompressorBase implements I
final int codebookSize = (int) Math.pow(2, header.getBitsPerCodebookIndex());
final V3i voxelDims = new V3i(header.getVectorSizeX(), header.getVectorSizeY(), header.getVectorSizeZ());
final int vectorSize = (int) voxelDims.multiplyTogether();
final int voxelLayerDepth = options.getQuantizationVector().getZ();
final int voxelLayerDepth = voxelDims.getZ();
final int[] huffmanSymbols = createHuffmanSymbols(codebookSize);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment