Function SimOneAPI::SetStreamingImageUpdateCB

Function Documentation

bool SimOneAPI::SetStreamingImageUpdateCB(const char *ip, unsigned short port, void (*cb)(SimOne_Streaming_Image *pImage))

获得物理级摄像头图像数据更新回调.

Callback for Updates on image data from streaming based camera.

此函数用于注册获取物理级摄像头仿真图像数据的回调函数.

This function is used to register a callback function for getting image data from streaming based camera.

参数:
  • ip -- [in]

    物理级摄像头UDP输出IP地址

    UDP IP which the streaming image send to

  • port -- [in]

    物理级摄像头UDP输出端口号

    UDP Port which the streaming image send to

  • cb -- [in]

    获取物理级摄像头仿真图像数据的回调,函数签名为:

    void callback(SimOne_Streaming_Image *pImage)

    • pImage: 仿真图像数据 / Image data

返回:

如果注册回调函数成功,则返回true,否则返回false

Returns true if the callback registration is successful, false otherwise.