MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrDeviceImagingConfigure

Function osvrDeviceImagingConfigure

src/osvr/PluginKit/ImagingInterfaceC.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83OSVR_ReturnCode
84osvrDeviceImagingConfigure(OSVR_INOUT_PTR OSVR_DeviceInitOptions opts,
85 OSVR_OUT_PTR OSVR_ImagingDeviceInterface *iface,
86 OSVR_IN OSVR_ChannelCount numSensors) {
87
88 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceImagingConfigure", opts);
89 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceImagingConfigure", iface);
90 OSVR_ImagingDeviceInterface ifaceObj =
91 opts->makeInterfaceObject<OSVR_ImagingDeviceInterfaceObject>();
92 *iface = ifaceObj;
93
94 auto imaging = osvr::common::ImagingComponent::create(numSensors);
95 ifaceObj->imaging = imaging.get();
96 opts->addComponent(imaging);
97 return OSVR_RETURN_SUCCESS;
98}
99
100OSVR_ReturnCode
101osvrDeviceImagingReportFrame(OSVR_IN_PTR OSVR_DeviceToken,

Callers 1

ImagingInterfaceMethod · 0.85

Calls 2

getMethod · 0.45
addComponentMethod · 0.45

Tested by

no test coverage detected