@Namespace(value="libfreenect2") @NoOffset @Properties(inherit=freenect2.class) public class Frame extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
BGRX
enum libfreenect2::Frame::Format
|
static int |
Color
enum libfreenect2::Frame::Type
|
static int |
Depth
enum libfreenect2::Frame::Type
|
static int |
Float
enum libfreenect2::Frame::Format
|
static int |
Gray
enum libfreenect2::Frame::Format
|
static int |
Invalid
enum libfreenect2::Frame::Format
|
static int |
Ir
enum libfreenect2::Frame::Type
|
static int |
Raw
enum libfreenect2::Frame::Format
|
static int |
RGBX
enum libfreenect2::Frame::Format
|
Constructor and Description |
---|
Frame(long width,
long height,
long bytes_per_pixel) |
Frame(long width,
long height,
long bytes_per_pixel,
byte[] data_) |
Frame(long width,
long height,
long bytes_per_pixel,
ByteBuffer data_) |
Frame(long width,
long height,
long bytes_per_pixel,
BytePointer data_)
Construct a new frame.
|
Frame(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
bytes_per_pixel()
Number of bytes in a pixel.
|
Frame |
bytes_per_pixel(long setter) |
BytePointer |
data()
Data of the frame (aligned).
|
Frame |
data(BytePointer setter) |
float |
exposure()
From 0.5 (very bright) to ~60.0 (fully covered)
|
Frame |
exposure(float setter) |
int |
format()
Byte format.
|
Frame |
format(int setter) |
float |
gain()
From 1.0 (bright) to 1.5 (covered)
|
Frame |
gain(float setter) |
float |
gamma()
From 1.0 (bright) to 6.4 (covered)
|
Frame |
gamma(float setter) |
long |
height()
Number of lines in the frame.
|
Frame |
height(long setter) |
int |
sequence()
Increasing frame sequence number
|
Frame |
sequence(int setter) |
int |
status()
zero if ok; non-zero for errors.
|
Frame |
status(int setter) |
int |
timestamp()
Unit: roughly or exactly 0.1 millisecond
|
Frame |
timestamp(int setter) |
long |
width()
Length of a line (in pixels).
|
Frame |
width(long setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int Color
public static final int Ir
public static final int Depth
public static final int Invalid
public static final int Raw
public static final int Float
public static final int BGRX
public static final int RGBX
public static final int Gray
public Frame(Pointer p)
Pointer(Pointer)
.public Frame(@Cast(value="size_t") long width, @Cast(value="size_t") long height, @Cast(value="size_t") long bytes_per_pixel, @Cast(value="unsigned char*") BytePointer data_)
width
- Width in pixelheight
- Height in pixelbytes_per_pixel
- Bytes per pixeldata_
- Memory to store frame data. If NULL
, new memory is allocated.public Frame(@Cast(value="size_t") long width, @Cast(value="size_t") long height, @Cast(value="size_t") long bytes_per_pixel)
public Frame(@Cast(value="size_t") long width, @Cast(value="size_t") long height, @Cast(value="size_t") long bytes_per_pixel, @Cast(value="unsigned char*") ByteBuffer data_)
public Frame width(long setter)
public Frame height(long setter)
@Cast(value="size_t") public long bytes_per_pixel()
public Frame bytes_per_pixel(long setter)
@Cast(value="unsigned char*") public BytePointer data()
public Frame data(BytePointer setter)
public Frame timestamp(int setter)
public Frame sequence(int setter)
public float exposure()
public Frame exposure(float setter)
public float gain()
public Frame gain(float setter)
public float gamma()
public Frame gamma(float setter)
public Frame status(int setter)
@Cast(value="libfreenect2::Frame::Format") public int format()
public Frame format(int setter)
Copyright © 2023. All rights reserved.