AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.01.24 03:43 "about jpeg sample factor", by <yangrz@lenovo.com>
2005.01.24 05:29 "Re: about jpeg sample factor", by Lee Howard

2005.01.24 03:43 "about jpeg sample factor", by <yangrz@lenovo.com>

Hi all:

Now I am developing a camera application,

but the data image format from camera driver is YCbCr 4:2:2.

I plan to use jpeg_write_raw_data() function of libjpeg to save it as a
photo jpeg file,

I am newer to jpeg and I want to know how to set the values of sampling
factor to YCbCr422, as follow:

    cinfo->comp_info[0].h_samp_factor =2   for Y
    cinfo->comp_info[0].v_samp_factor =2

    cinfo->comp_info[1].h_samp_factor =?   for Cb
    cinfo->comp_info[1].v_samp_factor =?

    cinfo->comp_info[2].h_samp_factor =?   for Cr
    cinfo->comp_info[2].v_samp_factor =?

or where can find some example of using the jpeg_write_raw_data()
function?

thanks in advance

Best Regards.
yangrz