MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setConfiguration

Method setConfiguration

src/opencl_depth_packet_processor.cpp:730–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void OpenCLDepthPacketProcessor::setConfiguration(const libfreenect2::DepthPacketProcessor::Config &config)
731{
732 DepthPacketProcessor::setConfiguration(config);
733
734 if ( impl_->config.MaxDepth != config.MaxDepth
735 || impl_->config.MinDepth != config.MinDepth)
736 {
737 // OpenCL program needs to be rebuilt, then reinitialized
738 impl_->programBuilt = false;
739 impl_->programInitialized = false;
740 }
741 else if (impl_->config.EnableBilateralFilter != config.EnableBilateralFilter
742 || impl_->config.EnableEdgeAwareFilter != config.EnableEdgeAwareFilter)
743 {
744 // OpenCL program only needs to be reinitialized
745 impl_->programInitialized = false;
746 }
747
748 impl_->config = config;
749 if (!impl_->programBuilt)
750 impl_->buildProgram(impl_->sourceCode);
751}
752
753void OpenCLDepthPacketProcessor::loadP0TablesFromCommandResponse(unsigned char *buffer, size_t buffer_length)
754{

Callers

nothing calls this directly

Calls 1

buildProgramMethod · 0.45

Tested by

no test coverage detected