Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-28 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 7:43 PM, Hans de Goede wrote: > Are you sure you cannot make some time for this? Sorry, probably not. At least not in the near future. Mitar -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.o

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Hans de Goede
Hi, On 10/27/2010 03:59 PM, Mitar wrote: Hi! On Wed, Oct 27, 2010 at 3:23 PM, Hans de Goede wrote: If and only if libjpeg-turbo turns out to be much slower this is something to consider. But the first thing to do here is see if we can solve this in a way which is acceptable to all downstream

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 12:49 PM, Janne Grunau wrote: > While the patch is not the cleanest, there shouldn't be a problem of > making ffmpeg mjpeg decoding optional. In which way not the cleanest? I am always searching for ways to improve my further work. So please elaborate. Mitar -- To u

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Mitar
Hi! On Wed, Oct 27, 2010 at 3:23 PM, Hans de Goede wrote: > If and only if libjpeg-turbo turns out to be much slower this is something > to consider. But the first thing to do here is see if we can solve this > in a way which is acceptable to all downstream users of libv4l, and thus > can be adde

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Hans de Goede
Hi, On 10/27/2010 12:49 PM, Janne Grunau wrote: With using ffmpeg MJPEG decoding it takes my computer on average 43.616 ms to decode the frame what is 0.0087 us per pixel. That is a great improvement, but using ffmpeg in libv4l is not an option for multiple reasons: 1) It is GPL licensed n

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Janne Grunau
On Wed, Oct 27, 2010 at 11:08:35AM +0200, Hans de Goede wrote: > Hi, > > On 10/27/2010 01:51 AM, Mitar wrote: > > Hi! > > > > On Sun, Oct 24, 2010 at 6:04 PM, Mitar wrote: > >> Has anybody tried to improve MJPEG support in libv4l? With newer > >> cameras this becomes important. > > > > I have mad

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-27 Thread Hans de Goede
Hi, On 10/27/2010 01:51 AM, Mitar wrote: Hi! On Sun, Oct 24, 2010 at 6:04 PM, Mitar wrote: Has anybody tried to improve MJPEG support in libv4l? With newer cameras this becomes important. I have made a patch which makes libv4l uses ffmpeg's avcodec library for MJPEG decoding. Performance im

Re: [PATCH] Too slow libv4l MJPEG decoding with HD cameras

2010-10-26 Thread Mitar
Hi! On Sun, Oct 24, 2010 at 6:04 PM, Mitar wrote: > Has anybody tried to improve MJPEG support in libv4l? With newer > cameras this becomes important. I have made a patch which makes libv4l uses ffmpeg's avcodec library for MJPEG decoding. Performance improvements are unbelievable. I have been