The MoCam SDK API is both a C API that conform to the C99 standard and a C++ API.
The MoCam SDK C API is exactly the same as C++ API, wrapped to C99 language.
In C++, you would use the mw::mo::mocam::autofocus::Handle
class to use autofocus. The autofocus class maintains autofocus objects internally.
In C API, this object will be explicitly manipulated as an abstract type mwmomocamautofocusHandle
.
The name of the wrapper that allow MoCam API types to be used in C begin with mwmomocam[...]
(concatenation of the namespace and objects but without '::'), as shown in the examples below.
mwmomocamautofocusHandleInitialize | mw::mo::mocam::autofocus::Handle::Initialize |
mwmomocamautofocusHandleCalculate | mw::mo::mocam::autofocus::Handle::Calculate |
mwmomocamMalloc | mw::mo::mocam::Malloc |
MWMOMOCAM_ERRORCODES_NOT_ENOUGH_MEMORY | mw::mo::mocam::ErrorCodes::NOT_ENOUGH_MEMORY |
CONFIDENTIAL