PointStream(PluginServiceProxy& pluginService, astra_streamset_t streamSet, uint32_t width, uint32_t height) : single_bin_stream(pluginService, streamSet, StreamDescription(ASTRA_STREAM_POINT, DEFAULT_SUBTYPE), width * height * sizeof(astra_vector3f_t)) {}
bool LogFile::loadStreamDescription(StreamDescription &result, std::streampos descPos) { nextBlockHeaderPos = descPos; if(!readNextBlockHeader()) { std::cout << "Failed to read block header " << std::endl; return false; } std::vector<uint8_t> descriptionData; if(!readCurBlock(descriptionData)) { if(eof()) { std::cout << "IndexFile: Warning, log file seems to be truncated" << std::endl; return false; } throw std::runtime_error("IndexFile: Error building index, log file seems corrupted"); } result = StreamDescription(getFileName(), descriptionData, curBlockHeader.stream_idx); return true; }