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 iB82qBCa017034
        for <joris.at.lebbeke@skynet.be>; Wed, 8 Dec 2004 03:52:11 +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 iB82pvBn026414
        for <joris.at.lebbeke@skynet.be>; Wed, 8 Dec 2004 03:51:59 +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 0AB584E36FB; Tue,  7 Dec 2004 21:51:45 -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 ABF154E36D8
	for <tiff@remotesensing.org>; Tue,  7 Dec 2004 21:51:42 -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
	iB82pajt014917; Tue, 7 Dec 2004 20:51:36 -0600 (CST)
Date: Tue, 7 Dec 2004 20:51:36 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Chris Losinger <losinger@earthlink.net>
Subject: Re: [Tiff] Q: writing tiled TIFFs
In-Reply-To: <6.2.0.14.2.20041207212848.02cd6880@pop.earthlink.net>
Message-ID: <Pine.SOC.4.60.0412072044220.4000@blade.simplesystems.org>
References: <003701c4dc9d$b2c52fe0$5eb1f551@dfgrrxsknr4e>
	<BDDBEC9A.2C99E%eric.vergnaud@jlynx.com>
	<6.2.0.14.2.20041207212848.02cd6880@pop.earthlink.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@remotesensing.org
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: 3c9ef82272246d925e9310bb8c6f8022

On Tue, 7 Dec 2004, Chris Losinger wrote:

> 		is there a simple tutorial for writing tiled TIFFs? i've 
> looked at the sample apps, but i'm not quite sure what all is going on in 
> there. you C guys sure do hate whitespace and passing parameters where a 
> global variable will suffice!
>
> 	the Tile Oriented TIFF I/O notes 
> (http://www.remotesensing.org:16080/libtiff/libtiff.html#Tiles) only covers 
> the "I" part of "I/O".

I don't know about a tutorial, but feel free to check out how 
GraphicsMagick does it.  You can view the source file on-line at 
"http://cvs.graphicsmagick.org/cgi-bin/cvsweb.cgi/GraphicsMagick/coders/tiff.c".

Unfortunately, I must admit that the 'O' part of this code does not 
actually get executed at the moment since a flag is not being set. 
It is part of the Pyramid TIFF support.  Re-enabling the code is on my 
list of things to do.

In particular, look at the TIFFWritePixels() function.

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
