Add video modes here as you implement them
| 43 | |
| 44 | // Add video modes here as you implement them |
| 45 | ColorStream::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 | |
| 61 | void ColorStream::populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const |
| 62 | { |
nothing calls this directly
no test coverage detected