Hi Steve,

On Wed, 2002-04-10 at 23:20, Steve Kranz wrote:
>   I currently have a v4l2 driver running on my ARM9
>   platform which produces 320x240 V4L2_PIX_FMT_RGB565
>   images. This is working fine. Can anyone give me a
>   pointer to some source code which I can then integrate
>   into my system to convert the image to a jpeg?

If you don't mind using Gtk (2.0 or 1.2 + gdk-pixbuf), you use the
GdkPixbuf library to make your life easy. Other pointers are libjpeg
(see xawtv for sample code, also included in libjpeg itself). mjpegtools
has a mmx/sse/2dnow optimized libjpeg with a single jpeg_encode/decode
function (takes YUV420 planar frames) to make your life easy. And last,
there also (tadadada, you should know this since you're from ridgerun
;-) ) gstreamer, which can also do this like 'v4lsrc !
jpegenc/jpegmmxenc ! filesink'.

>   It would be great if I could locate an existing v4l2
>   codec driver which has the logic for producing jpegs.
>   That would be super, but any pointers would be great.

The zoran driver which I'm currently working on has hardware JPEG
encoding support. It works in v4l1 (see mjpegtools' lavrec), and I'm
currently working on the v4l2 driver, which isn't finished yet.

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <[EMAIL PROTECTED]>
-  // \\   | Running: Linux 2.4.18-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^



_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to