[Ffmpeg-devel] swscaler integration

Erik Slagter erik
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
> anyway..?

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
implement it.

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...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2771 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060317/e01845b7/attachment.bin>

More information about the ffmpeg-devel mailing list