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

Method Freenect2DeviceImpl

src/libfreenect2.cpp:642–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642Freenect2DeviceImpl::Freenect2DeviceImpl(Freenect2Impl *context, const PacketPipeline *pipeline, libusb_device *usb_device, libusb_device_handle *usb_device_handle, const std::string &serial) :
643 state_(Created),
644 has_usb_interfaces_(false),
645 context_(context),
646 usb_device_(usb_device),
647 usb_device_handle_(usb_device_handle),
648 rgb_transfer_pool_(usb_device_handle, 0x83),
649 ir_transfer_pool_(usb_device_handle, 0x84),
650 usb_control_(usb_device_handle_),
651 command_tx_(usb_device_handle_, 0x81, 0x02),
652 command_seq_(0),
653 pipeline_(pipeline),
654 serial_(serial),
655 firmware_("<unknown>")
656{
657 rgb_transfer_pool_.setCallback(pipeline_->getRgbPacketParser());
658 ir_transfer_pool_.setCallback(pipeline_->getIrPacketParser());
659}
660
661Freenect2DeviceImpl::~Freenect2DeviceImpl()
662{

Callers

nothing calls this directly

Calls 3

getRgbPacketParserMethod · 0.80
getIrPacketParserMethod · 0.80
setCallbackMethod · 0.45

Tested by

no test coverage detected