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

Class DepthStream

src/openni2/DepthStream.hpp:36–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace Freenect2Driver
35{
36 class DepthStream : public VideoStream
37 {
38 public:
39 // from NUI library and converted to radians
40 static const float DIAGONAL_FOV;
41 static const float HORIZONTAL_FOV;
42 static const float VERTICAL_FOV;
43 // from DepthKinectStream.cpp
44 static const int MAX_VALUE = 10000;
45 static const unsigned long long GAIN_VAL = 42;
46 static const unsigned long long CONST_SHIFT_VAL = 200;
47 static const unsigned long long MAX_SHIFT_VAL = 2047;
48 static const unsigned long long PARAM_COEFF_VAL = 4;
49 static const unsigned long long SHIFT_SCALE_VAL = 10;
50 static const unsigned long long ZERO_PLANE_DISTANCE_VAL = 120;
51 static const double ZERO_PLANE_PIXEL_SIZE_VAL;
52 static const double EMITTER_DCMOS_DISTANCE_VAL;
53
54 private:
55 OniSensorType getSensorType() const;
56 OniImageRegistrationMode image_registration_mode;
57 VideoModeMap getSupportedVideoModes() const;
58 void populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const;
59
60 public:
61 DepthStream(Device* driver_dev, libfreenect2::Freenect2Device* pDevice, Freenect2Driver::Registration *reg);
62 //~DepthStream() { }
63
64 OniImageRegistrationMode getImageRegistrationMode() const;
65 OniStatus setImageRegistrationMode(OniImageRegistrationMode mode);
66
67 // from StreamBase
68 OniBool isImageRegistrationModeSupported(OniImageRegistrationMode mode);
69 OniBool isPropertySupported(int propertyId);
70 OniStatus getProperty(int propertyId, void* data, int* pDataSize);
71 };
72}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected