| 43 | namespace Freenect2Driver |
| 44 | { |
| 45 | OniStatus 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 | |
| 56 | void 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 | { |