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

Method setVideoMode

src/openni2/VideoStream.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace Freenect2Driver
44{
45OniStatus VideoStream::setVideoMode(OniVideoMode requested_mode)
46{
47 VideoModeMap supported_video_modes = getSupportedVideoModes();
48 VideoModeMap::const_iterator matched_mode_iter = supported_video_modes.find(requested_mode);
49 if (matched_mode_iter == supported_video_modes.end())
50 return ONI_STATUS_NOT_SUPPORTED;
51
52 video_mode = requested_mode;
53 return ONI_STATUS_OK;
54}
55
56void VideoStream::copyFrame(float* srcPix, int srcX, int srcY, int srcStride, uint16_t* dstPix, int dstX, int dstY, int dstStride, int width, int height, bool mirroring)
57{

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected