[Ffmpeg-devel] swscaler integration
Fri Mar 17 13:20:00 CET 2006
On Thu, 2006-03-16 at 11:34 -0500, Rich Felker wrote:
> > I never understood why no unix version has a ioctl to set the pipe
> > buffer size.
> I guess then the kernel implementation would be a lot more complex
> (not just using a single page) and there would have to be a mechanism
> to prevent unbounded memory usage by pipe buffers. As it stands, a
> sane open file limit provides a decent (altho somewhat large) pipe
> buffer limit. But maybe this is already handled some other way
Yep. Sockets/socketpairs do exactly this. You can set the buffer size
using setsockopt(). So to me it seems there is no real reason not to
Now I am thinking of it, it would be +/- five minutes work to take the
source of your favourite shell, modify the pipe() call to socketpair(),
add a setsockopt() call and you're done. Weird.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2771 bytes
Desc: not available
More information about the ffmpeg-devel