Frame format and metadata.
More...
#include <libfreenect2/frame_listener.hpp>
Frame format and metadata.
Available types of frames.
Enumerator |
---|
Color |
1920x1080. BGRX or RGBX.
|
Ir |
512x424 float. Range is [0.0, 65535.0].
|
Depth |
512x424 float, unit: millimeter. Non-positive, NaN, and infinity are invalid or missing data.
|
Pixel format.
Enumerator |
---|
Invalid |
Invalid format.
|
Raw |
Raw bitstream. 'bytes_per_pixel' defines the number of bytes.
|
Float |
A 4-byte float per pixel.
|
BGRX |
4 bytes of B, G, R, and unused per pixel
|
RGBX |
4 bytes of R, G, B, and unused per pixel
|
Gray |
1 byte of gray per pixel
|
Frame |
( |
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bytes_per_pixel, |
|
|
unsigned char * |
data_ = NULL |
|
) |
| |
Construct a new frame.
- Parameters
-
width | Width in pixel |
height | Height in pixel |
bytes_per_pixel | Bytes per pixel |
data_ | Memory to store frame data. If NULL , new memory is allocated. |
Length of a line (in pixels).
Number of lines in the frame.
Number of bytes in a pixel. If frame format is 'Raw' this is the buffer size.
Unit: roughly or exactly 0.1 millisecond.
Increasing frame sequence number.
From 0.5 (very bright) to ~60.0 (fully covered)
From 1.0 (bright) to 1.5 (covered)
From 1.0 (bright) to 6.4 (covered)
zero if ok; non-zero for errors.
Byte format. Informative only, doesn't indicate errors.