SSCMA-Micro CPP SDK
v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
|
#include <ma_codec_base.h>
Public Member Functions | |
Encoder ()=default | |
virtual | ~Encoder ()=default |
virtual | operator bool () const =0 |
Encoder is valid. More... | |
virtual ma_err_t | begin ()=0 |
Encoder type for begin. More... | |
virtual ma_err_t | begin (ma_msg_type_t type, ma_err_t code, const std::string &name)=0 |
Encoder type for begin. More... | |
virtual ma_err_t | begin (ma_msg_type_t type, ma_err_t code, const std::string &name, const std::string &data)=0 |
Encoder type for begin. More... | |
virtual ma_err_t | begin (ma_msg_type_t type, ma_err_t code, const std::string &name, uint64_t data)=0 |
Encoder type for begin. More... | |
virtual ma_err_t | end ()=0 |
Encoder type for end. More... | |
virtual ma_err_t | reset ()=0 |
Reset the proto object. More... | |
virtual const std::string & | toString () const =0 |
Encoder type for convert to string. More... | |
virtual const void * | data () const =0 |
Encoder type for get data. More... | |
virtual const size_t | size () const =0 |
Encoder type for get size. More... | |
virtual ma_err_t | remove (const std::string &key)=0 |
Encoder type for remove. More... | |
virtual ma_err_t | write (const std::string &key, int8_t value)=0 |
Encoder type for write int8_t value. More... | |
virtual ma_err_t | write (const std::string &key, int16_t value)=0 |
Encoder type for write int16_t value. More... | |
virtual ma_err_t | write (const std::string &key, int32_t value)=0 |
Encoder type for write int32_t value. More... | |
virtual ma_err_t | write (const std::string &key, int64_t value)=0 |
Encoder type for write int64_t value. More... | |
virtual ma_err_t | write (const std::string &key, uint8_t value)=0 |
Encoder type for write uint8_t value. More... | |
virtual ma_err_t | write (const std::string &key, uint16_t value)=0 |
Encoder type for write uint16_t value. More... | |
virtual ma_err_t | write (const std::string &key, uint32_t value)=0 |
Encoder type for write uint32_t value. More... | |
virtual ma_err_t | write (const std::string &key, uint64_t value)=0 |
Encoder type for write uint64_t value. More... | |
virtual ma_err_t | write (const std::string &key, float value)=0 |
Encoder type for write float value. More... | |
virtual ma_err_t | write (const std::string &key, double value)=0 |
Encoder type for write double value. More... | |
virtual ma_err_t | write (const std::string &key, const std::string &value)=0 |
Encoder type for write const std::string value. More... | |
virtual ma_err_t | write (const std::string &key, ma_model_t value)=0 |
Encoder type for write ma_model_t value. More... | |
virtual ma_err_t | write (ma_perf_t value)=0 |
Encoder type for write ma_perf_t. More... | |
virtual ma_err_t | write (const std::forward_list< ma_class_t > &value)=0 |
Encoder type for write std::forward_list<ma_class_t> value. More... | |
virtual ma_err_t | write (const std::forward_list< ma_point_t > &value)=0 |
Encoder type for write std::vector<ma_point_t> value. More... | |
virtual ma_err_t | write (const std::forward_list< ma_bbox_t > &value)=0 |
Encoder type for write std::forward_list<ma_bbox_t> value. More... | |
virtual ma_err_t | write (const std::forward_list< ma_keypoint3f_t > &value)=0 |
Encoder type for write std::forward_list<ma_keypoint3f_t> value. More... | |
virtual ma_err_t | write (const std::vector< ma_model_t > &value)=0 |
Encoder type for write std::forward_list<ma_model_t> value. More... | |
virtual ma_err_t | write (const std::vector< Sensor * > &value)=0 |
virtual ma_err_t | write (const Sensor *value, size_t preset)=0 |
virtual ma_err_t | write (const std::string &key, const char *buffer, size_t size)=0 |
virtual ma_err_t | write (const in4_info_t &value)=0 |
virtual ma_err_t | write (const in6_info_t &value)=0 |
virtual ma_err_t | write (const ma_wifi_config_t &value, int *stat=nullptr)=0 |
virtual ma_err_t | write (const ma_mqtt_config_t &value, int *stat=nullptr)=0 |
virtual ma_err_t | write (const ma_mqtt_topic_config_t &value)=0 |
virtual ma_err_t | write (int algo_id, int cat, int input_from, int tscore, int tiou)=0 |
|
default |
|
virtualdefault |
|
pure virtual |
Encoder type for begin.
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for begin.
[in] | type | |
[in] | code | |
[in] | name |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for begin.
[in] | type | |
[in] | code | |
[in] | name | |
[in] | data |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for begin.
[in] | type | |
[in] | code | |
[in] | name | |
[in] | data |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for get data.
data |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for end.
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
|
pure virtual |
Encoder type for remove.
[in] | key |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
|
pure virtual |
Encoder type for get size.
size |
Implemented in ma::EncoderJSON.
|
pure virtual |
|
pure virtual |
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.
Implemented in ma::EncoderJSON.
Encoder type for write std::forward_list<ma_bbox_t> value.
[in] | value | std::forward_list<ma_bbox_t> typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write std::forward_list<ma_class_t> value.
[in] | value | std::forward_list<ma_class_t> typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write std::forward_list<ma_keypoint3f_t> value.
[in] | value | std::forward_list<ma_keypoint3f_t> typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write std::vector<ma_point_t> value.
[in] | value | std::vector<ma_point_t> typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write const std::string value.
[in] | key | |
[in] | value | const std::string typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write double value.
[in] | key | |
[in] | value | double typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write float value.
[in] | key | |
[in] | value | float typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write int16_t value.
[in] | key | |
[in] | value | int16_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write int32_t value.
[in] | key | |
[in] | value | int32_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write int64_t value.
[in] | key | |
[in] | value | int64_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write int8_t value.
[in] | key | |
[in] | value | int8_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write ma_model_t value.
[in] | key | |
[in] | value | ma_model_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write uint16_t value.
[in] | key | |
[in] | value | uint16_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write uint32_t value.
[in] | key | |
[in] | value | uint32_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write uint64_t value.
[in] | key | |
[in] | value | uint64_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write uint8_t value.
[in] | key | |
[in] | value | uint8_t typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
|
pure virtual |
Encoder type for write std::forward_list<ma_model_t> value.
[in] | value | std::forward_list<ma_model_t> typed value to write. |
MA_OK | on success |
Implemented in ma::EncoderJSON.
Implemented in ma::EncoderJSON.
|
pure virtual |
Implemented in ma::EncoderJSON.