| 792 | } |
| 793 | |
| 794 | void OpenCLKdeDepthPacketProcessor::setConfiguration(const libfreenect2::DepthPacketProcessor::Config &config) |
| 795 | { |
| 796 | DepthPacketProcessor::setConfiguration(config); |
| 797 | |
| 798 | if ( impl_->config.MaxDepth != config.MaxDepth |
| 799 | || impl_->config.MinDepth != config.MinDepth) |
| 800 | { |
| 801 | // OpenCL program needs to be rebuilt, then reinitialized |
| 802 | impl_->programBuilt = false; |
| 803 | impl_->programInitialized = false; |
| 804 | } |
| 805 | else if (impl_->config.EnableBilateralFilter != config.EnableBilateralFilter |
| 806 | || impl_->config.EnableEdgeAwareFilter != config.EnableEdgeAwareFilter) |
| 807 | { |
| 808 | // OpenCL program only needs to be reinitialized |
| 809 | impl_->programInitialized = false; |
| 810 | } |
| 811 | |
| 812 | impl_->config = config; |
| 813 | if (!impl_->programBuilt) |
| 814 | impl_->buildProgram(impl_->sourceCode); |
| 815 | } |
| 816 | |
| 817 | void OpenCLKdeDepthPacketProcessor::loadP0TablesFromCommandResponse(unsigned char *buffer, size_t buffer_length) |
| 818 | { |
nothing calls this directly
no test coverage detected