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

Method populateFrame

src/openni2/IrStream.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void IrStream::populateFrame(libfreenect2::Frame* srcFrame, int srcX, int srcY, OniFrame* dstFrame, int dstX, int dstY, int width, int height) const
54{
55 dstFrame->sensorType = getSensorType();
56 dstFrame->stride = dstFrame->width * sizeof(uint16_t);
57
58 // copy stream buffer from freenect
59 copyFrame(static_cast<float*>((void*)srcFrame->data), srcX, srcY, srcFrame->width,
60 static_cast<uint16_t*>(dstFrame->data), dstX, dstY, dstFrame->width,
61 width, height, mirroring);
62}
63
64OniSensorType IrStream::getSensorType() const { return ONI_SENSOR_IR; }
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected