On Sun, 07 Jan 2007 02:03:45 -0800, Martin <[EMAIL PROTECTED]> wrote:
> Now to my real new problem: Is there some easy to understand sample > implementation of decoding some MJPEG-Frame to one of following: > > PIXELFORMAT_GREY > PIXELFORMAT_RGB332 > PIXELFORMAT_RGB555 > PIXELFORMAT_RGB555X > PIXELFORMAT_RGB565 > PIXELFORMAT_RGB565X > PIXELFORMAT_RGB24 > PIXELFORMAT_BGR24 > PIXELFORMAT_RGB32 > PIXELFORMAT_BGR32 > PIXELFORMAT_YUYV > PIXELFORMAT_UYVY > PIXELFORMAT_YUV420P > PIXELFORMAT_YUV422P > > I'd prefer implementations not using additional libraries or use Qt for > decoding. From my experience that's a rather bad idea. A while ago I had to debug/fix at least two different MJPEG decoders because they didn't like the pictures that one particular camera provided. JPEG decoding can be simple but if you want a complete version it's far from trivial. A quick look at libjpeg should give you an idea. That being said, if you only need it for a quick hack, you could have a look at luvcview or Ekiga. They both have their own JPEG decoders built-in. Cheers, Martin _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
