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.
| 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. |
| 59 | DepthStream::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 | |
| 69 | void DepthStream::populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const |
| 70 | { |
nothing calls this directly
no test coverage detected