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