Re: logic to produce a jpeg image?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 <rbultje@xxxxxxxxxxxxxxxxxxx>
-  // \\   | Running: Linux 2.4.18-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux