@Namespace(value="libfreenect2")
@NoOffset
public static class freenect2.Frame
extends org.bytedeco.javacpp.Pointer
| 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,
org.bytedeco.javacpp.BytePointer data_)
Construct a new frame.
|
Frame(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytes_per_pixel()
Number of bytes in a pixel.
|
freenect2.Frame |
bytes_per_pixel(long bytes_per_pixel) |
org.bytedeco.javacpp.BytePointer |
data()
Data of the frame (aligned).
|
freenect2.Frame |
data(org.bytedeco.javacpp.BytePointer data) |
float |
exposure()
From 0.5 (very bright) to ~60.0 (fully covered)
|
freenect2.Frame |
exposure(float exposure) |
int |
format()
Byte format.
|
freenect2.Frame |
format(int format) |
float |
gain()
From 1.0 (bright) to 1.5 (covered)
|
freenect2.Frame |
gain(float gain) |
float |
gamma()
From 1.0 (bright) to 6.4 (covered)
|
freenect2.Frame |
gamma(float gamma) |
long |
height()
Number of lines in the frame.
|
freenect2.Frame |
height(long height) |
int |
sequence()
Increasing frame sequence number
|
freenect2.Frame |
sequence(int sequence) |
int |
status()
zero if ok; non-zero for errors.
|
freenect2.Frame |
status(int status) |
int |
timestamp()
Unit: roughly or exactly 0.1 millisecond
|
freenect2.Frame |
timestamp(int timestamp) |
long |
width()
Length of a line (in pixels).
|
freenect2.Frame |
width(long width) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic 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(org.bytedeco.javacpp.Pointer p)
Pointer.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*")
org.bytedeco.javacpp.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(@Cast(value="size_t")
long width,
@Cast(value="size_t")
long height,
@Cast(value="size_t")
long bytes_per_pixel,
@Cast(value="unsigned char*")
byte[] data_)
@Cast(value="size_t") public long width()
public freenect2.Frame width(long width)
@Cast(value="size_t") public long height()
public freenect2.Frame height(long height)
@Cast(value="size_t") public long bytes_per_pixel()
public freenect2.Frame bytes_per_pixel(long bytes_per_pixel)
@Cast(value="unsigned char*") public org.bytedeco.javacpp.BytePointer data()
public freenect2.Frame data(org.bytedeco.javacpp.BytePointer data)
@Cast(value="uint32_t") public int timestamp()
public freenect2.Frame timestamp(int timestamp)
@Cast(value="uint32_t") public int sequence()
public freenect2.Frame sequence(int sequence)
public float exposure()
public freenect2.Frame exposure(float exposure)
public float gain()
public freenect2.Frame gain(float gain)
public float gamma()
public freenect2.Frame gamma(float gamma)
@Cast(value="uint32_t") public int status()
public freenect2.Frame status(int status)
@Cast(value="libfreenect2::Frame::Format") public int format()
public freenect2.Frame format(int format)
Copyright © 2018. All rights reserved.