Converting YUV to JPEG

From: Doru-Catalin Togea (doru-cat_at_ifi.uio.no)
Date: 09/23/04


Date: Thu, 23 Sep 2004 22:05:19 +0200

Hi!

I have a program which receives raw data from a webcam. The images are in
the YUV 4:2:0 Planar format, and I collect them in a char *. I want to
compress the images in memory, something like this:

    char *imageYUV = ...;
    char *imageJPEG;
    int sizeJPEG = 0;
    compress(imageYUV, imageJPEG, &sizeJPEG);

I am sure that I can do this by means of the primitives form libjpg, but
maybe this has already been implemented in some open source program.

Any suggestions?

Thank you!
Catalin

-- 
        <<<< ================================== >>>>
        <<     We are what we repeatedly do.      >>
        <<  Excellence, therefore, is not an act  >>
        <<             but a habit.               >>
        <<<< ================================== >>>>


Relevant Pages

  • Re: Bitmap <-> ArrayList of points
    ... That's why I suggested using array<unsigned char>, or even List. ... I'm pretty sure that grabbing a pointer to the raw image data would be many times faster than GetPixel. ... I'm not familiar with the Bitmap class, but I know it has a way to lock its pixels and get a byte pointer to its raw underlying data. ... You must decode the color data from the raw bits on your own (which is very easy with 8 and 24-bit images, a bit tricky with 16-bit images, but I refuse to work directly with 16-bit bitmap) ...
    (microsoft.public.dotnet.languages.vc)
  • Re: What is better? char or int?
    ... unsigned char ... What benefits does it provide over unsigned char? ... An example for wanting an 8 bit unsigned integer type is if you are dealing with an 8 bit greyscale image. ... even in this day and age people deal with 8 bit greyscale images. ...
    (comp.lang.c)
  • Re: Subtracting G channel from R and B may increase lossless compression?
    ... Anybody knows if this conversion is Patent protected? ... Suppose I have now converted my color space from RGB to YUV and let's speak again of channel differencing. ... for lossless colour transform ... this is true but not for all images. ...
    (comp.compression)
  • Re: Subtracting G channel from R and B may increase lossless compression?
    ... Suppose I have now converted my color space from RGB to YUV and let's speak again of channel differencing. ... this is true but not for all images. ... if you convert the RGB image into a YUV image (the transform is ...
    (comp.compression)