gstreamer - Using VIDIOC_STREAMON and VIDIOC_QBUF - Stack Overflow

I'm facing the issue while testing hw accelirated decoding in Chromium. After some investigation I

I'm facing the issue while testing hw accelirated decoding in Chromium. After some investigation I found out that at the start of decoding Chromuim calls VIDIOC_STREAMON ioctl first and the starts to transmit buffers by calling VIDIOC_QBUF for OUTPUT (filled with data for hw decoder) buffer. And such sequence leads to inappropriate buffer management in v4l2 video decoder driver. For comparison, Gstreamer uses reverse sequence, when it sends buffers with VIDIOC_QBUF first and then runs streaming via calling VIDIOC_STREAMON. And in case of decoding with Gsteamer there are no any problems with queueing buffers in decoder driver.

So my question is, is it valid to use such a sequence for v4l2, when VIDIOC_STREAMON ioctl is called before VIDIOC_QBUF?

P.S.: I read the docs ( ioctl VIDIOC_STREAMON, VIDIOC_STREAMOFF and ioctl VIDIOC_QBUF, VIDIOC_DQBUF ) but didn't find the answer to my question there.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745267901a4619569.html

相关推荐

  • gstreamer - Using VIDIOC_STREAMON and VIDIOC_QBUF - Stack Overflow

    I'm facing the issue while testing hw accelirated decoding in Chromium. After some investigation I

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信