MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / getSupportedVideoModes

Method getSupportedVideoModes

src/openni2/ColorStream.cpp:45–59  ·  view source on GitHub ↗

Add video modes here as you implement them

Source from the content-addressed store, hash-verified

43
44// Add video modes here as you implement them
45ColorStream::FreenectVideoModeMap ColorStream::getSupportedVideoModes() const
46{
47 FreenectVideoModeMap modes;
48 // pixelFormat, resolutionX, resolutionY, fps freenect_video_format, freenect_resolution
49 modes[makeOniVideoMode(ONI_PIXEL_FORMAT_RGB888, 512, 424, 30)] = 0;
50 modes[makeOniVideoMode(ONI_PIXEL_FORMAT_RGB888, 1920, 1080, 30)] = 1;
51
52 return modes;
53
54 /* working format possiblities
55 FREENECT_VIDEO_RGB
56 FREENECT_VIDEO_YUV_RGB
57 FREENECT_VIDEO_YUV_RAW
58 */
59}
60
61void ColorStream::populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const
62{

Callers

nothing calls this directly

Calls 1

makeOniVideoModeFunction · 0.85

Tested by

no test coverage detected