What is most appropriate USB class to handle images and video transfer and streaming?

a 夏天 提交于 2019-12-06 14:26:08

问题


I am working on a project (a digital camera) that should be able to take still images and short video clips and make those available to the host. As well as being able to stream live video.

Which USB class[es] should I use?

Should I use PTP (for still images and video) and USB Video Class for streaming?

Does PTP support transfer of video? Does PTP support video streaming?


回答1:


For static objects PTP is better since it does have a definition for an object. Current Canon DSLRs are also capable of "streaming" live video via standard PTP transaction mechanism. However, real streaming would benefit from isochronous transfer so UVC is better for streaming.

You can also have both classes implemented in a single device and have objects transferred bia PTP set of endpoints and stream via UVC endpoint.



来源:https://stackoverflow.com/questions/3096942/what-is-most-appropriate-usb-class-to-handle-images-and-video-transfer-and-strea

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!