Re: [PATCH v3] V4L: add two new ioctl()s for multi-size videobuffer management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 26 Jul 2011, Hans Verkuil wrote:

[snip]

> I am happy with the API. The only thing that's unclear to me is whether you can call
> CREATE_BUFS after REQBUFS. And if not, then why not? It would also be helpful to see
> the full patch series as the last one was from April. It is interesting to see how
> this will interface with vb2.

I think it would be logical to allow both, since we anyway need 
REQBUFS(count=0) for freeing of buffers. This would confirm, that buffers 
vreated with either of these methods are indistinguishable. Then we shall 
define:

CREATE_BUFS after REQBUFS or after earlier CREATE_BUFS adds more buffers
REQBUFS(count=0) frees all buffers
REQBUFS(count > 0) frees all buffers and allocates new ones

Yes, I'll extend the documentation with this.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux