Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j25M2prO004889
        for <joris.at.lebbeke@skynet.be>; Sat, 5 Mar 2005 23:02:51 +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 inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j25M2j1i032552
        for <joris.at.lebbeke@skynet.be>; Sat, 5 Mar 2005 23:02:47 +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 DB07810F58C7; Sat,  5 Mar 2005 17:02:32 -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 7C92710F588C
	for <tiff@remotesensing.org>; Sat,  5 Mar 2005 17:02:29 -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
	j25M2SAi020227
	for <tiff@remotesensing.org>; Sat, 5 Mar 2005 16:02:28 -0600 (CST)
Date: Sat, 5 Mar 2005 16:02:28 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Tiff List <tiff@remotesensing.org>
Message-ID: <Pine.SOC.4.60.0503051553040.8945@blade.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Subject: [Tiff] TIFFDefaultStripSize funky
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: 09eade989ef001a8145620abac9aad9f

Compression ratios when using deflate compression are supposed to 
improve up to 32K of data (according to Adobe spec).  Since 
TIFFDefaultStripSize uses a target of 8K of data per strip, I decided 
to estimate the number of rows for a 32K strip.  This value was then 
passed to TIFFDefaultStripSize() as the suggested value.  Rather than 
returning something close to my suggested value (36), 
TIFFDefaultStripSize() returned the same value (9) as it did when the 
strip_size argument is set to 0.  This behavior seems wrong to me.

I am at a loss as to why this happens since the code in libtiff seems 
to be designed to return the user-provided value unless the compressor 
choses to use a different estimator than _TIFFDefaultStripSize.

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