Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.3.90])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0SJxbwM011621
        for <joris.at.lebbeke@skynet.be>; Fri, 28 Jan 2005 20:59:37 +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 inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0SJxLfp007999
        for <joris.at.lebbeke@skynet.be>; Fri, 28 Jan 2005 20:59:23 +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 6496C61040E; Fri, 28 Jan 2005 14:48:25 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by xserve.flids.com (Postfix) with ESMTP id 789F160ECEC
	for <tiff@remotesensing.org>; Fri, 28 Jan 2005 11:22:38 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	j0SGKrVL006882
	for <tiff@remotesensing.org>; Fri, 28 Jan 2005 10:20:53 -0600 (CST)
Date: Fri, 28 Jan 2005 10:20:53 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Tiff mailing list <tiff@remotesensing.org>
In-Reply-To: <Pine.SOC.4.60.0501280948260.7604@blade.simplesystems.org>
Message-ID: <Pine.SOC.4.60.0501281018040.7604@blade.simplesystems.org>
References: <Pine.SOC.4.60.0501280948260.7604@blade.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Subject: [Tiff] Re: Application transferred too many scanlines. (JPEGLib)
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: cf0dda5dae4de94e7c385ccf1b202e0e

On Fri, 28 Jan 2005, Bob Friesenhahn wrote:

> With latest development libtiff and using TIFFReadEncodedStrip() to read a 
> YCbCr JPEG-encoded TIFF (quad-jpeg.tif from the pics-3.7.1 collection), this 
> error is reported:
>
>  "Application transferred too many scanlines. (JPEGLib)".
>
> Can anyone tell me the reason for this error, and how it may be avoided?

This bit of code

   if (compress_tag == COMPRESSION_JPEG)
     TIFFSetField( tiff, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB );

did get me over the hump, but it returns data in YCbCr rather than 
RGB.  Maybe there is no avoiding this since the YCbCr JPEG uses 
sub-sampling (2, 2)?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
