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

Function bfi

src/cpu_depth_packet_processor.cpp:264–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262{
263
264inline int bfi(int width, int offset, int src2, int src3)
265{
266 int bitmask = (((1 << width)-1) << offset) & 0xffffffff;
267 return ((src2 << offset) & bitmask) | (src3 & ~bitmask);
268}
269
270class CpuDepthPacketProcessorImpl: public WithPerfLogging
271{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected