|
libfreenect2
0.1
|
Frame format and metadata. More...
#include <libfreenect2/frame_listener.hpp>
Public Types | |
| enum | Type { Color = 1, Ir = 2, Depth = 4 } |
| Available types of frames. More... | |
| enum | Format { BGRX, RGBX, Gray, Float } |
| (Proposed for 0.2) Pixel format. More... | |
Public Member Functions | |
| Frame (size_t width, size_t height, size_t bytes_per_pixel, unsigned char *data_=NULL) | |
| Construct a new frame. More... | |
| virtual | ~Frame () |
Public Attributes | |
| size_t | width |
| Length of a line (in pixels). More... | |
| size_t | height |
| Number of lines in the frame. More... | |
| size_t | bytes_per_pixel |
| Number of bytes in a pixel. More... | |
| unsigned char * | data |
| Data of the frame (aligned). More... | |
| uint32_t | timestamp |
| Unit: roughly or exactly 0.1 millisecond. More... | |
| uint32_t | sequence |
| Increasing frame sequence number. More... | |
| float | exposure |
| From 0.5 (very bright) to ~60.0 (fully covered) More... | |
| float | gain |
| From 1.0 (bright) to 1.5 (covered) More... | |
| float | gamma |
| From 1.0 (bright) to 6.4 (covered) More... | |
| uint32_t | status |
| Reserved. To be defined in 0.2. More... | |
| Format | format |
| Reserved. To be defined in 0.2. More... | |
Protected Attributes | |
| unsigned char * | rawdata |
| Unaligned start of data. More... | |
Frame format and metadata.
| enum Type |
| enum Format |
|
inline |
Construct a new frame.
| 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. |
|
inlinevirtual |
| size_t width |
Length of a line (in pixels).
| size_t height |
Number of lines in the frame.
| size_t bytes_per_pixel |
Number of bytes in a pixel.
| unsigned char* data |
Data of the frame (aligned).
| uint32_t timestamp |
Unit: roughly or exactly 0.1 millisecond.
| uint32_t sequence |
Increasing frame sequence number.
| float exposure |
From 0.5 (very bright) to ~60.0 (fully covered)
| float gain |
From 1.0 (bright) to 1.5 (covered)
| float gamma |
From 1.0 (bright) to 6.4 (covered)
| uint32_t status |
Reserved. To be defined in 0.2.
| Format format |
Reserved. To be defined in 0.2.
|
protected |
Unaligned start of data.
1.8.6