Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.b-one.net (mx-h.one.com [91.198.169.55])
	by mail9.b-one.net (Postfix) with ESMTP id EF87940024C
	for <info@awaresystems.be>; Fri, 11 Dec 2009 20:01:59 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-h.b-one.net (Postfix) with ESMTP id 6409F296
	for <info@awaresystems.be>; Fri, 11 Dec 2009 20:01:50 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id E5BF61D203D7B;
	Fri, 11 Dec 2009 13:58:21 -0500 (EST)
Received: from tecgraf.puc-rio.br (duchamp.tecgraf.puc-rio.br [139.82.85.1])
	by lists.maptools.org (Postfix) with ESMTPS id E13881D203185
	for <tiff@lists.maptools.org>; Fri, 11 Dec 2009 13:38:27 -0500 (EST)
Received: from antonio (magritte [10.0.8.92])
	by tecgraf.puc-rio.br (8.12.11.20060308/8.12.11) with ESMTP id
	nBBIcOrT000654; Fri, 11 Dec 2009 16:38:25 -0200
From: "Antonio Scuri" <scuri@tecgraf.puc-rio.br>
To: "'Steve Mills'" <smills@multi-ad.com>,
	"'tiff list'" <tiff@lists.maptools.org>
References: <0CAB92DF-9766-485E-AB24-6C995925929F@multiad.com>	<2045F7DD5B1E4987B16C926D5A61EBD4@awarec74cb3e1c>	<D1697835-9E70-459D-9B60-D25F49411585@multiad.com>	<000001ca79d6$4f547de0$edfd79a0$@puc-rio.br>	<6A6CA554-B984-4D34-AAC4-1C21A23C0C9D@multiad.com>	<002201ca7a7d$301343b0$9039cb10$@puc-rio.br>
	<B227A229-34E6-42F0-BE3E-0B73853B022B@multiad.com>
In-Reply-To: <B227A229-34E6-42F0-BE3E-0B73853B022B@multiad.com>
Date: Fri, 11 Dec 2009 16:37:24 -0200
Message-ID: <000301ca7a90$fbeb1f90$f3c15eb0$@puc-rio.br>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Acp6hyj43PIIXBVfTDC1i8wqIIDegwACOw+g
Content-Language: pt-br
X-Virus-Status: Clean
Subject: Re: [Tiff] YCbCr
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

   I don't think so. Because the logic will set downsampled_output to TRUE
only if h_sampling!=1, and that happen only for YCBCR.

   If you want to debug the code, add a breakpoint at the line where
"downsampled_output = FALSE;" in "tif_jpeg.c". If it sets
"downsampled_output = TRUE;" then the output is donwsampled. 

   If you send me a sample, I can test your image here if I can read it. The
test I have supports CMYK images.

Best,
scuri

> -----Original Message-----
> From: tiff-bounces@lists.maptools.org [mailto:tiff-
> bounces@lists.maptools.org] On Behalf Of Steve Mills
> Sent: sexta-feira, 11 de dezembro de 2009 14:58
> To: tiff list
> Subject: Re: [Tiff] YCbCr
> 
> On Dec 11, 2009, at 10:15:39, Antonio Scuri wrote:
> 
> >  As Joris pointed out, you actually get Y Cb and Cr planes. So the
> first
> > component, that looks red, is infact Y, and indeed has the correct
> size. But
> > the Cb and Cr planes are downsampled. At least this is what I got
> here.
> 
> What if the file is jpeg-compressed cmyk? The TIFFTAG_PHOTOMETRIC tag
> says it's cmyk, not YCbCr. I expect cmyk data in this case, but it sure
> doesn't look correct.
> 
> _________________________________________________________
> Steve Mills                              Me: 952-401-6255
> Senior Software Architect                         MultiAd
> smills@multiad.com                       www.multi-ad.com
> 
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
