Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx005.isp.belgacom.be (inmx005.isp.belgacom.be [195.238.3.148])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0O3iuUY017697
        for <joris.at.lebbeke@skynet.be>; Mon, 24 Jan 2005 04:44:56 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0O3igJW031203
        for <joris.at.lebbeke@skynet.be>; Mon, 24 Jan 2005 04:44:44 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 135BE5E6036; Sun, 23 Jan 2005 22:44:31 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from ig4.lenovo.com (unknown [211.100.14.38])
	by xserve.flids.com (Postfix) with SMTP id 5DDFD5E6013
	for <tiff@remotesensing.org>; Sun, 23 Jan 2005 22:44:26 -0500 (EST)
Received: from [10.99.10.191] by 10.99.20.37 with StormMail ESMTP id
	34835.812409392; Mon, 24 Jan 2005 11:58:00 +0800 (CST)
To: tiff@remotesensing.org
X-Mailer: Lotus Notes Release 5.0.2a (Intl) 23 November 1999
Message-ID: <OFED956047.28883B42-ON48256F93.0012D0AE@legend.com.cn>
From: yangrz@Lenovo.com
Date: Mon, 24 Jan 2005 11:43:13 +0800
X-MIMETrack: Serialize by Router on BJMS8/Legend(Release 5.0.8 |June 18,
	2001) at 2005-01-24 11:43:30
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Subject: [Tiff] about jpeg sample factor
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 4b33a4b38796fa0652e4ddb5a5564ced

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

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
