@Namespace(value="libfreenect2") @NoOffset @Properties(inherit=freenect2.class) public class Freenect2 extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Freenect2() |
Freenect2(long size)
Native array allocator.
|
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 |
getPointer(long i) |
Freenect2Device |
openDefaultDevice()
Open the first device with default pipeline.
|
Freenect2Device |
openDefaultDevice(PacketPipeline factory)
Open the first device.
|
Freenect2Device |
openDevice(BytePointer serial)
Open device by serial number with default pipeline.
|
Freenect2Device |
openDevice(BytePointer serial,
PacketPipeline factory)
Open device by serial number.
|
Freenect2Device |
openDevice(int idx)
Open device by index with default pipeline.
|
Freenect2Device |
openDevice(int idx,
PacketPipeline factory)
Open device by index.
|
Freenect2Device |
openDevice(String serial) |
Freenect2Device |
openDevice(String serial,
PacketPipeline factory) |
Freenect2 |
position(long position) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Freenect2(long size)
Pointer.position(long)
.public Freenect2(Pointer usb_context)
usb_context
- If the libusb context is provided,
Freenect2 will use it instead of creating one.public Freenect2()
public Freenect2 getPointer(long i)
getPointer
in class Pointer
public int enumerateDevices()
@StdString public BytePointer getDeviceSerialNumber(int idx)
idx
- Device index@StdString public BytePointer getDefaultDeviceSerialNumber()
public Freenect2Device openDevice(int idx)
idx
- Index number. Index numbers are not determinstic during enumeration.public Freenect2Device openDevice(int idx, @Const PacketPipeline factory)
idx
- Index number. Index numbers are not determinstic during enumeration.factory
- New PacketPipeline instance. This is always automatically freed.public Freenect2Device openDevice(@StdString BytePointer serial)
serial
- Serial numberpublic Freenect2Device openDevice(@StdString String serial)
public Freenect2Device openDevice(@StdString BytePointer serial, @Const PacketPipeline factory)
serial
- Serial numberfactory
- New PacketPipeline instance. This is always automatically freed.public Freenect2Device openDevice(@StdString String serial, @Const PacketPipeline factory)
public Freenect2Device openDefaultDevice()
public Freenect2Device openDefaultDevice(@Const PacketPipeline factory)
factory
- New PacketPipeline instance. This is always automatically freed.Copyright © 2023. All rights reserved.