You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#defineFREENECT_COUNTS_PER_G 819 /**< Ticks per G for accelerometer as set per http://www.kionix.com/Product%20Sheets/KXSD9%20Product%20Brief.pdf */
42
42
43
-
/// Structure to give information about the width and height of a
44
-
/// frame, as well as the total number of bytes needed to hold a
45
-
/// single frame. Negative values for width and height indicate
46
-
/// an invalid video format and resolution combination, as does
47
-
/// a value of 0 for bytes.
43
+
/// Structure to give information about the width, height, bitrate,
44
+
/// framerate, and buffer size of a frame in a particular mode, as
45
+
/// well as the total number of bytes needed to hold a single frame.
48
46
typedefstruct {
49
-
intwidth; /**< Width of this frame, in pixels */
50
-
intheight; /**< Height of this frame, in pixels */
51
-
intbytes; /**< Total number of bytes needed to hold a single frame at the given resolution and pixel format */
52
-
} freenect_frame_size;
47
+
uint32_treserved; /**< unique ID used internally. The meaning of values may change without notice. Don't touch or depend on the contents of this field. We mean it. */
48
+
intis_valid; /**< If 0, this freenect_frame_mode is invalid and does not describe a supported mode. Otherwise, the frame_mode is valid. */
49
+
intbytes; /**< Total buffer size in bytes to hold a single frame of data. Should be equivalent to width * height * (data_bits_per_pixel+padding_bits_per_pixel) / 8 */
50
+
intwidth; /**< Width of the frame, in pixels */
51
+
intheight; /**< Height of the frame, in pixels */
52
+
intdata_bits_per_pixel; /**< Number of bits of information needed for each pixel */
53
+
intpadding_bits_per_pixel; /**< Number of bits of padding for alignment used for each pixel */
54
+
intframerate; /**< Approximate expected frame rate, in Hz */
55
+
} freenect_frame_mode ;
53
56
54
57
/// Enumeration of available resolutions.
55
58
/// Not all available resolutions are actually supported for all video formats.
59
+
/// Frame modes may not perfectly match resolutions. For instance,
60
+
/// FREENECT_RESOLUTION_MEDIUM is 640x488 for the IR camera.
0 commit comments