@@ -44,23 +44,34 @@ namespace libfreenect2
44
44
class LIBFREENECT2_API Frame
45
45
{
46
46
public:
47
- /* * Available types of frames and their pixel format . */
47
+ /* * Available types of frames. */
48
48
enum Type
49
49
{
50
50
Color = 1 , // /< 1920x1080 32-bit BGRX.
51
51
Ir = 2 , // /< 512x424 float. Range is [0.0, 65535.0].
52
52
Depth = 4 // /< 512x424 float, unit: millimeter. Non-positive, NaN, and infinity are invalid or missing data.
53
53
};
54
54
55
- uint32_t timestamp; // /< Unit: roughly or exactly 0.1 millisecond
56
- uint32_t sequence; // /< Increasing frame sequence number
55
+ /* * (Proposed for 0.2) Pixel format. */
56
+ enum Format
57
+ {
58
+ BGRX,
59
+ RGBX,
60
+ Gray,
61
+ Float
62
+ };
63
+
57
64
size_t width; // /< Length of a line (in pixels).
58
65
size_t height; // /< Number of lines in the frame.
59
66
size_t bytes_per_pixel; // /< Number of bytes in a pixel.
60
67
unsigned char * data; // /< Data of the frame (aligned). @see See Frame::Type for pixel format.
68
+ uint32_t timestamp; // /< Unit: roughly or exactly 0.1 millisecond
69
+ uint32_t sequence; // /< Increasing frame sequence number
61
70
float exposure; // /< From 0.5 (very bright) to ~60.0 (fully covered)
62
71
float gain; // /< From 1.0 (bright) to 1.5 (covered)
63
72
float gamma; // /< From 1.0 (bright) to 6.4 (covered)
73
+ uint32_t status; // /< Reserved. To be defined in 0.2.
74
+ Format format; // /< Reserved. To be defined in 0.2.
64
75
65
76
/* * Construct a new frame.
66
77
* @param width Width in pixel
0 commit comments