diff --git a/components/rgbd-sources/include/ftl/rgbd/frame.hpp b/components/rgbd-sources/include/ftl/rgbd/frame.hpp index a97a1f17b5bdf7afd64921727be69ce1039eca6a..5b004a3ad428bd92278b917b1bb7d3a0215f6109 100644 --- a/components/rgbd-sources/include/ftl/rgbd/frame.hpp +++ b/components/rgbd-sources/include/ftl/rgbd/frame.hpp @@ -60,26 +60,6 @@ private: } } - // https://stackoverflow.com/a/31718095/ - // Indices for channels, requirs channels to have bitmask format - // (values are power of 2 and no missing values/gaps). - static uint32_t _msbDeBruijn32(uint32_t v) - { - static const int MultiplyDeBruijnBitPosition[32] = - { - 0, 9, 1, 10, 13, 21, 2, 29, 11, 14, 16, 18, 22, 25, 3, 30, - 8, 12, 20, 28, 15, 17, 24, 7, 19, 27, 23, 6, 26, 5, 4, 31 - }; - - v |= v >> 1; // first round down to one less than a power of 2 - v |= v >> 2; - v |= v >> 4; - v |= v >> 8; - v |= v >> 16; - - return MultiplyDeBruijnBitPosition[(uint32_t)(v * 0x07C4ACDDU) >> 27]; - } - std::vector<cv::cuda::GpuMat> channels_; std::vector<bool> available_; };