Received: by smtp02.oce.nl (4.1/SMI-4.1)
	id AA15139; Wed, 4 Nov 98 18:40:31 +0100
Received: from sgi.sgi.com (SGI.COM [192.48.153.1])
	by oce.nl (8.9.0/8.9.0) with ESMTP id SAA27023
	for <rvdt@oce.nl>; Wed, 4 Nov 1998 18:18:00 +0100 (MET)
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id JAA03937; Wed, 4 Nov 1998 09:15:53 -0800 (PST)
	mail_from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost)
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	id IAA21136
	for tiff-list;
	Wed, 4 Nov 1998 08:35:16 -0800 (PST)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37])
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	via ESMTP id IAA19110
	for <tiff-relay@cthulhu.engr.sgi.com>;
	Wed, 4 Nov 1998 08:35:15 -0800 (PST)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from flashpnt.com ([207.5.52.11]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id IAA06390
	for <tiff@sgi.com>; Wed, 4 Nov 1998 08:35:13 -0800 (PST)
	mail_from (davis@flashpnt.com)
Received: from Arthur (192.168.67.206) by flashpnt.com with SMTP (Eudora
 Internet Mail Server 2.0.1); Wed, 4 Nov 1998 08:36:08 -0800
Message-Id: <004601be0811$b23b75a0$ce43a8c0@Arthur.flashpnt.com>
From: "Arthur Davis" <davis@flashpnt.com>
To: <eric@covesys.com>
Cc: "TIFF Mailing List" <tiff@sgi.com>
Subject: Re: Conversion to YCbCr...
Date: Wed, 4 Nov 1998 11:39:29 -0500
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-Msmail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3115.0
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk

Eric,

You might take a look at the Independent JPEG Group's free JPEG
implementation.  Start at their web page at http://www.ijg.org/ which
contains a link to an ftp site where you can download the actual code.  I
haven't spent much time with their library, but I understand that to
compress an image, you set up the compression 'object' by telling it some
details about the image data that you have (color space, size, etc.) and
then feed the image to it one scan line at a time.  Of course, this requires
you to understand the source file format enough to be able to get at the
image data.  If that's a problem, I think that the package also contains a
conversion utility that will take an image file (supported formats: PPM,
PGM, BMP, Targa, and RLE) and produce a JPEG file and vice versa.

If you want to incorporate a JPEG bitstream into a TIFF file, then that's a
different story.  I have read that the JPEG library has also been used to do
that, and I don't see why it you wouldn't be able to, but someone else would
have to comment on that.

The only other comment I have is about color space conversions.  Converting
from RGB to YCbCr is not difficult:
    Y  = (0.299 * R) + (0.587 * G) + (0.114 * B)
    Cb = (0.5 * B)   - (0.169 * R) - (0.331 * G) + 128
    Cr = (0.5 * R)   - (0.419 * G) - (0.081 * B) + 128
        (This comes from the CCIR Recommendation 601-2)
This will give what is known as YCC444.  Then you can downsample from there.

Hope this helps.

Arthur Davis
FlashPoint Technology, Inc.

-----Original Message-----
From: Eric Ashley <eric@covesys.com>
To: tiff@sgi.com <tiff@sgi.com>
Date: Tuesday, November 03, 1998 4:39 PM
Subject: Conversion to YCbCr...


>Anyone got an example of downsampling from either TIFF or Windows DIB RGB
to
>YCbCr?  I want to switch to JPEG compression (7) for my grayscale and color
>images and it seems like YCbCr downsampling the best first step in doing
so.
>
>Also, has anyone produced a reference of the required tags for JPEG-in-TIFF
>based on TechNote 2?
>
>Thanks,
>
>Eric Ashley
>Chief Technologist
>Cove Systems, Inc.
>eric@covesys.com
>+1-941-283-9170 voice / +1-941-283-9175 fax
>http://www.covesys.com/
>

