@Namespace(value="libfreenect2") @NoOffset public static class freenect2.Freenect2 extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
freenect2.Freenect2() |
freenect2.Freenect2(long size)
Native array allocator.
|
freenect2.Freenect2(Pointer usb_context) |
| Modifier and Type | Method and Description |
|---|---|
int |
enumerateDevices()
Must be called before doing anything else.
|
BytePointer |
getDefaultDeviceSerialNumber() |
BytePointer |
getDeviceSerialNumber(int idx) |
freenect2.Freenect2Device |
openDefaultDevice()
Open the first device with default pipeline.
|
freenect2.Freenect2Device |
openDefaultDevice(freenect2.PacketPipeline factory)
Open the first device.
|
freenect2.Freenect2Device |
openDevice(BytePointer serial)
Open device by serial number with default pipeline.
|
freenect2.Freenect2Device |
openDevice(BytePointer serial,
freenect2.PacketPipeline factory)
Open device by serial number.
|
freenect2.Freenect2Device |
openDevice(int idx)
Open device by index with default pipeline.
|
freenect2.Freenect2Device |
openDevice(int idx,
freenect2.PacketPipeline factory)
Open device by index.
|
freenect2.Freenect2Device |
openDevice(String serial) |
freenect2.Freenect2Device |
openDevice(String serial,
freenect2.PacketPipeline factory) |
freenect2.Freenect2 |
position(long position) |
address, asBuffer, asByteBuffer, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic freenect2.Freenect2(long size)
Pointer.position(long).public freenect2.Freenect2(Pointer usb_context)
usb_context - If the libusb context is provided,
Freenect2 will use it instead of creating one.public freenect2.Freenect2()
public freenect2.Freenect2 position(long position)
public int enumerateDevices()
@StdString public BytePointer getDeviceSerialNumber(int idx)
idx - Device index@StdString public BytePointer getDefaultDeviceSerialNumber()
public freenect2.Freenect2Device openDevice(int idx)
idx - Index number. Index numbers are not determinstic during enumeration.public freenect2.Freenect2Device openDevice(int idx, @Const freenect2.PacketPipeline factory)
idx - Index number. Index numbers are not determinstic during enumeration.factory - New PacketPipeline instance. This is always automatically freed.public freenect2.Freenect2Device openDevice(@StdString BytePointer serial)
serial - Serial numberpublic freenect2.Freenect2Device openDevice(@StdString String serial)
public freenect2.Freenect2Device openDevice(@StdString BytePointer serial, @Const freenect2.PacketPipeline factory)
serial - Serial numberfactory - New PacketPipeline instance. This is always automatically freed.public freenect2.Freenect2Device openDevice(@StdString String serial, @Const freenect2.PacketPipeline factory)
public freenect2.Freenect2Device openDefaultDevice()
public freenect2.Freenect2Device openDefaultDevice(@Const freenect2.PacketPipeline factory)
factory - New PacketPipeline instance. This is always automatically freed.Copyright © 2017. All rights reserved.