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

Class ColorStream

src/openni2/ColorStream.hpp:37–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace Freenect2Driver
36{
37 class ColorStream : public VideoStream
38 {
39 public:
40 // from NUI library & converted to radians
41 static const float DIAGONAL_FOV;
42 static const float HORIZONTAL_FOV;
43 static const float VERTICAL_FOV;
44
45 private:
46 typedef std::map< OniVideoMode, int > FreenectVideoModeMap;
47 OniSensorType getSensorType() const;
48 VideoModeMap getSupportedVideoModes() const;
49 void populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const;
50
51 static void copyFrame(uint8_t* srcPix, int srcX, int srcY, int srcStride, uint8_t* dstPix, int dstX, int dstY, int dstStride, int width, int height, bool mirroring);
52
53 bool auto_white_balance;
54 bool auto_exposure;
55
56 public:
57 ColorStream(Device* driver_dev, libfreenect2::Freenect2Device* pDevice, Freenect2Driver::Registration *reg);
58 //~ColorStream() { }
59
60 OniStatus setImageRegistrationMode(OniImageRegistrationMode mode);
61
62 // from StreamBase
63 OniBool isPropertySupported(int propertyId);
64 OniStatus getProperty(int propertyId, void* data, int* pDataSize);
65 OniStatus setProperty(int propertyId, const void* data, int dataSize);
66 };
67}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected