33 memset(&cropping, 0,
sizeof(cropping));
34 memset(&video_mode, 0,
sizeof(video_mode));
62 void stop() { running =
false; }
101 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_VIDEO_MODE");
110 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_CROPPING");
117 if (*pDataSize !=
sizeof(
OniBool))
119 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_MIRRORING");
148 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_VIDEO_MODE");
159 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_CROPPING");
162 cropping = *(
static_cast<const OniCropping*
>(data));
167 if (dataSize !=
sizeof(
OniBool))
169 LogError(
"Unexpected size for ONI_STREAM_PROPERTY_MIRRORING");
172 mirroring = *(
static_cast<const OniBool*
>(data));
virtual void populateFrame(void *data, OniFrame *frame) const =0
static void LogError(std::string error)
void raiseNewFrame(OniFrame *pFrame)
virtual OniStatus setProperty(int propertyId, const void *data, int dataSize)
VideoStream(Freenect::FreenectDevice *device)
static const OniSensorType sensor_type
StreamServices & getServices()
void raisePropertyChanged(int propertyId, const void *data, int dataSize)
OniBool isPropertySupported(int propertyId)
Freenect::FreenectDevice * device
void buildFrame(void *data, uint32_t timestamp)
OniFrame * acquireFrame()
void releaseFrame(OniFrame *pFrame)
virtual OniStatus getProperty(int propertyId, void *data, int *pDataSize)
virtual OniStatus setVideoMode(OniVideoMode requested_mode)=0