| 98 | } |
| 99 | |
| 100 | OSVR_ReturnCode |
| 101 | osvrDeviceImagingReportFrame(OSVR_IN_PTR OSVR_DeviceToken, |
| 102 | OSVR_IN_PTR OSVR_ImagingDeviceInterface iface, |
| 103 | OSVR_IN OSVR_ImagingMetadata metadata, |
| 104 | OSVR_IN_PTR OSVR_ImageBufferElement *imageData, |
| 105 | OSVR_IN OSVR_ChannelCount sensor, |
| 106 | OSVR_IN_PTR OSVR_TimeValue const *timestamp) { |
| 107 | auto guard = iface->getSendGuard(); |
| 108 | if (guard->lock()) { |
| 109 | iface->imaging->sendImageData(metadata, imageData, sensor, *timestamp); |
| 110 | return OSVR_RETURN_SUCCESS; |
| 111 | } |
| 112 | |
| 113 | return OSVR_RETURN_FAILURE; |
| 114 | } |
no test coverage detected