History

more VoxelPacket compression tuning

ZappoMan committed 12 years ago

Commit e2f50691 parent 57633f85 files · +46 −22Browse files

Showing the changes to interface/src/VoxelSystem.cpp (1 of 5 files). Show all

Unified · Split

interface/src/VoxelSystem.cpp+2−2
@@ -597,7 +597,7 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 596 unmodified lines
597 // ask the VoxelTree to read the bitstream into the tree597 // ask the VoxelTree to read the bitstream into the tree
598 ReadBitstreamToTreeParams args(WANT_COLOR, WANT_EXISTS_BITS, NULL, getDataSourceUUID());598 ReadBitstreamToTreeParams args(WANT_COLOR, WANT_EXISTS_BITS, NULL, getDataSourceUUID());
599 lockTree();599 lockTree();
600 VoxelPacket packet;600 VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT);
601 int compressedSize = numBytes - numBytesPacketHeader;601 int compressedSize = numBytes - numBytesPacketHeader;
602 packet.loadCompressedContent(voxelData, compressedSize);602 packet.loadCompressedContent(voxelData, compressedSize);
603printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); 603printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize());
@@ -611,7 +611,7 @@ printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numByt · 7 unmodified lines
611 // ask the VoxelTree to read the MONOCHROME bitstream into the tree611 // ask the VoxelTree to read the MONOCHROME bitstream into the tree
612 ReadBitstreamToTreeParams args(NO_COLOR, WANT_EXISTS_BITS, NULL, getDataSourceUUID());612 ReadBitstreamToTreeParams args(NO_COLOR, WANT_EXISTS_BITS, NULL, getDataSourceUUID());
613 lockTree();613 lockTree();
614 VoxelPacket packet;614 VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT);
615 int compressedSize = numBytes - numBytesPacketHeader;615 int compressedSize = numBytes - numBytesPacketHeader;
616 packet.loadCompressedContent(voxelData, compressedSize);616 packet.loadCompressedContent(voxelData, compressedSize);
617printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); 617printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize());