| 51 | } |
| 52 | |
| 53 | void 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 | |
| 64 | OniSensorType IrStream::getSensorType() const { return ONI_SENSOR_IR; } |
| 65 |
nothing calls this directly
no outgoing calls
no test coverage detected