Showing the changes to interface/src/VoxelSystem.cpp (1 of 6 files). Show all
Unified · Split
| @@ -599,8 +599,10 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 598 unmodified lines | |||
| 599 | lockTree(); | 599 | lockTree(); |
| 600 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); | 600 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); |
| 601 | int compressedSize = numBytes - numBytesPacketHeader; | 601 | int compressedSize = numBytes - numBytesPacketHeader; |
| 602 | packet.loadCompressedContent(voxelData, compressedSize); | 602 | packet.loadFinalizedContent(voxelData, compressedSize); |
| 603 | printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | 603 | if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { |
| 604 | qDebug("got packet numBytes=%d finalized size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | ||
| 605 | } | ||
| 604 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); | 606 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); |
| 605 | unlockTree(); | 607 | unlockTree(); |
| 606 | } | 608 | } |
| @@ -613,8 +615,10 @@ printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numByt · 6 unmodified lines | |||
| 613 | lockTree(); | 615 | lockTree(); |
| 614 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); | 616 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); |
| 615 | int compressedSize = numBytes - numBytesPacketHeader; | 617 | int compressedSize = numBytes - numBytesPacketHeader; |
| 616 | packet.loadCompressedContent(voxelData, compressedSize); | 618 | packet.loadFinalizedContent(voxelData, compressedSize); |
| 617 | printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | 619 | if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { |
| 620 | qDebug("got packet numBytes=%d finalized size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | ||
| 621 | } | ||
| 618 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); | 622 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); |
| 619 | unlockTree(); | 623 | unlockTree(); |
| 620 | } | 624 | } |