| 273 | } |
| 274 | |
| 275 | OniStatus VideoStream::convertDepthToColorCoordinates(StreamBase* colorStream, int depthX, int depthY, OniDepthPixel depthZ, int* pColorX, int* pColorY) |
| 276 | { |
| 277 | if (!reg) |
| 278 | { |
| 279 | return ONI_STATUS_NOT_SUPPORTED; |
| 280 | } |
| 281 | |
| 282 | float cx, cy; |
| 283 | const float dz = depthZ; |
| 284 | reg->depthToColor(depthX, depthY, dz, cx, cy); |
| 285 | |
| 286 | *pColorX = cx; |
| 287 | *pColorY = cy; |
| 288 | |
| 289 | return ONI_STATUS_OK; |
| 290 | } |
| 291 | |
| 292 | } |
nothing calls this directly
no test coverage detected