![]() |
同步AI数据接收
#include "MediaAi.hpp"


Public 成员函数 | |
| MediaAiDataRecvSync () | |
| ErrCodeE | Open (int32_t timeoutMs) |
| 打开接收端口 更多... | |
| void | Close () |
| 关闭接收端口 更多... | |
| ErrCodeE | GetInfo (MediaInfAiData::Header &header, int32_t timeoutMs) |
| 获取消息头信息 更多... | |
Public 成员函数 继承自 Emx::MediaAiDataRecvBase | |
| MediaAiDataRecvBase () | |
| virtual | ~MediaAiDataRecvBase () |
| ErrCodeE | GetDataByInfo (const MediaInfAiData::Header &header, MediaInfAiData *data) |
| 通过OnGetInfoCallback获取到header之后可通过此函数接收实际的消息数据 更多... | |
额外继承的成员函数 | |
Public 类型 继承自 Emx::MediaAiDataRecvBase | |
| using | OnGetInfoCallback = std::function< void(MediaInfAiData::Header &header)> |
| 仅接收到AI消息头信息的回调函数(未去接收实际消息数据) 更多... | |
Protected 成员函数 继承自 Emx::MediaAiDataRecvBase | |
| void | OnMsgRecv (uint32_t topic, const char *data, int32_t size) |
| ErrCodeE | OnGetBuffer (ErrCodeE e, const uint8_t *buffer, void *usr, int32_t off, int32_t size, uint32_t magicId) |
Protected 属性 继承自 Emx::MediaAiDataRecvBase | |
| OnGetInfoCallback | m_cbInfo |
| MediaRingBufferReader | m_ring |
|
inline |
| ErrCodeE Emx::MediaAiDataRecvSync::Open | ( | int32_t | timeoutMs | ) |
| timeoutMs | [in] 打开操作超时时间 |
| void Emx::MediaAiDataRecvSync::Close | ( | ) |
| ErrCodeE Emx::MediaAiDataRecvSync::GetInfo | ( | MediaInfAiData::Header & | header, |
| int32_t | timeoutMs | ||
| ) |
| header | [out] 获取到的消息头 |
| timeoutMs | [in] 超时时间 |