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

Method ColorStream

src/openni2/ColorStream.cpp:38–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36const float ColorStream::VERTICAL_FOV = 48.6 * (M_PI / 180);
37
38ColorStream::ColorStream(Device* driver_dev, libfreenect2::Freenect2Device* pDevice, Freenect2Driver::Registration *reg) : VideoStream(driver_dev, pDevice, reg)
39{
40 video_mode = makeOniVideoMode(ONI_PIXEL_FORMAT_RGB888, 1920, 1080, 30);
41 setVideoMode(video_mode);
42}
43
44// Add video modes here as you implement them
45ColorStream::FreenectVideoModeMap ColorStream::getSupportedVideoModes() const

Callers

nothing calls this directly

Calls 1

makeOniVideoModeFunction · 0.85

Tested by

no test coverage detected