读取二值图像
我已经启动并运行了套接字通信。
我现在需要以下方面的帮助:
我们将通过套接字将图像发送到设备。
transmit.framebuffer.rgb_byte will transmit in binary format the following information:
[4 bytes] => image width
[4 bytes] => image height
[< image width> * <image height> * 3 bytes] => RGB in unsigned char format [0, 255]
[3 bytes] "OK\n"
我该如何让它发挥作用?... 现在我只处理纯文本等, 所以这整个二进制编码对我来说是新的。
I've got my socket communication up and running.
I now need help with the following:
We are going to send a image to the device through the socket.
transmit.framebuffer.rgb_byte will transmit in binary format the following information:
[4 bytes] => image width
[4 bytes] => image height
[< image width> * <image height> * 3 bytes] => RGB in unsigned char format [0, 255]
[3 bytes] "OK\n"
How would I go about getting this to work?..
For now I've just worked with plain text etc,
so this whole binary coding is new to me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是您可以在客户端读取数据的示例:
This is an example of you could read data on the client side: