2005.01.24 03:43 "[Tiff] about jpeg sample factor", by Yangrz
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