SSCMA-Micro CPP SDK
v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
|
#include <ma_camera.h>
Classes | |
struct | CtrlValue |
Public Types | |
enum | StreamMode : int { kUnknown , kRefreshOnReturn , kRefreshOnRetrieve } |
enum | CtrlType : int { kWindow , kExposure , kGain , kWhiteBalance , kFocus , kZoom , kPan , kTilt , kIris , kShutter , kBrightness , kContrast , kSaturation , kHue , kSharpness , kGamma , kColorTemperature , kBacklightCompensation , kRotate , kFormat , kChannel , kFps , kRegister } |
enum | CtrlMode : int { kRead , kWrite } |
Public Types inherited from ma::Sensor | |
enum class | Type : int { kUnknown = 0 , kCamera = 1 , kMicrophone = 2 , kIMU = 3 } |
using | Presets = std::vector< Preset > |
Public Member Functions | |
Camera (size_t id) noexcept | |
virtual | ~Camera ()=default |
virtual ma_err_t | startStream (StreamMode mode) noexcept=0 |
virtual void | stopStream () noexcept=0 |
virtual ma_err_t | commandCtrl (CtrlType ctrl, CtrlMode mode, CtrlValue &value) noexcept=0 |
virtual ma_err_t | retrieveFrame (ma_img_t &frame, ma_pixel_format_t format) noexcept=0 |
virtual void | returnFrame (ma_img_t &frame) noexcept=0 |
bool | isStreaming () const noexcept |
Public Member Functions inherited from ma::Sensor | |
Sensor (size_t id, Type type) noexcept | |
virtual | ~Sensor ()=default |
virtual ma_err_t | init (size_t preset_idx) noexcept=0 |
virtual void | deInit () noexcept=0 |
operator bool () const noexcept | |
size_t | getID () const noexcept |
Type | getType () const noexcept |
const Presets & | availablePresets () const noexcept |
const Preset & | currentPreset () const noexcept |
const size_t | currentPresetIdx () const noexcept |
Static Public Member Functions | |
static std::string | __repr__ (StreamMode mode) noexcept |
Static Public Member Functions inherited from ma::Sensor | |
static std::string | __repr__ (Type type) noexcept |
Protected Attributes | |
bool | m_streaming |
StreamMode | m_stream_mode |
Protected Attributes inherited from ma::Sensor | |
const size_t | m_id |
const Type | m_type |
bool | m_initialized |
size_t | m_preset_idx |
Presets | m_presets |
enum ma::Camera::CtrlMode : int |
enum ma::Camera::CtrlType : int |
enum ma::Camera::StreamMode : int |
|
inlinenoexcept |
|
virtualdefault |
|
inlinestaticnoexcept |
|
pure virtualnoexcept |
|
inlinenoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
protected |
|
protected |