| 640 | } |
| 641 | |
| 642 | Freenect2DeviceImpl::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 | |
| 661 | Freenect2DeviceImpl::~Freenect2DeviceImpl() |
| 662 | { |
nothing calls this directly
no test coverage detected