Lukáš Karas wrote:
Dne Wednesday 12 of November 2008 10:52:35 jste napsal(a):
And if this is the case call special (to be written) versions of v4lconvert_crop_rgbbgr24() v4lconvert_crop_yuv420(). I would be very happy to take a patch doing this!
I will make all, what you want :)
See crop.patch ... Function v4lconvert_reduceandcrop_yuv420 work fine, v4lconvert_reduceandcrop_rgbbgr24 is untested!
Thanks,
From the changelog for libv4l 0.5.4, which I will release soon: libv4l-0.5.4 ------------ * Don't report DQBUF errors when errno is EAGAIN, this fixes flooding the screen with errors when applications use non blocking mode * Add support for downscaling to make apps which want low resolutions (skype, spcaview) happy when used with cams which can only do high resolutions (by Lukáš Karas lukas.karas@centrum.cz).
Regards,
Hans
p.s.
There was a small bug in your patch you tested for src_width <= 2 * dest_width, but that should ofcourse be >= 2 * dest_width (and the same for height).
But review catched that, that is why review is good :)