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

Method getSupportedVideoModes

src/openni2/DepthStream.cpp:59–67  ·  view source on GitHub ↗

Add video modes here as you implement them Note: if image_registration_mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR, setVideoFormat() will try FREENECT_DEPTH_REGISTERED first then fall back on what is set here.

Source from the content-addressed store, hash-verified

57// Note: if image_registration_mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR,
58// setVideoFormat() will try FREENECT_DEPTH_REGISTERED first then fall back on what is set here.
59DepthStream::VideoModeMap DepthStream::getSupportedVideoModes() const
60{
61 VideoModeMap modes;
62 // pixelFormat, resolutionX, resolutionY, fps
63 modes[makeOniVideoMode(ONI_PIXEL_FORMAT_DEPTH_1_MM, 640, 480, 30)] = 0;
64 modes[makeOniVideoMode(ONI_PIXEL_FORMAT_DEPTH_1_MM, 512, 424, 30)] = 1;
65
66 return modes;
67}
68
69void DepthStream::populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const
70{

Callers

nothing calls this directly

Calls 1

makeOniVideoModeFunction · 0.85

Tested by

no test coverage detected