Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx01.one.com (mx01.one.com [195.47.247.72])
	by mail6.local (Postfix) with ESMTP id 413158014F8C8
	for <filtered@awaresystems.be>; Tue, 16 Apr 2013 15:02:15 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx01: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.217.180 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180])
	by mx01.one.com (Postfix) with ESMTP id F336E1895EBD
	for <filtered@awaresystems.be>; Tue, 16 Apr 2013 13:02:14 +0000 (UTC)
Received: by mail-lb0-f180.google.com with SMTP id t11so515758lbi.25
        for <filtered@awaresystems.be>; Tue, 16 Apr 2013 06:02:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received
         :domainkey-status:received-spf:x-gmail-fetch-info:delivered-to
         :x-virus-scanned:x-greylist:message-id:date:from:user-agent
         :mime-version:to:references:in-reply-to:cc:subject:x-beenthere
         :x-mailman-version:precedence:list-id:list-unsubscribe:list-archive
         :list-post:list-help:list-subscribe:content-type
         :content-transfer-encoding:sender:errors-to;
        bh=AUQFr/tPtqf3FUv4odsNothsYEaV6g4itTsOl0RgyDw=;
        b=gYLxNhRtYNsWTAO4K4+b6Ca6iDgyeDkv5fD6C6/Vdn1WJDw8pe4auaRLJPi1L5cind
         2gMuwRwHvWNKVE4E1WgHOb8Ld8kJSATwGEd1YwkABa7sU8NKHwHZS9RQj8nHnl/iMHYh
         nVorcXXTSMGwkhGz10wxnQA0zDkWYkgynt+lKpWHUfKfLkZmb6g7vt2Fj4kBBLw3O0pJ
         NAe/BRqL7G7IUiFYdiUbQQ18j3megnQlVP72xMIinVjgVUv5zBpUbIzI8r+QD5uh/E4c
         UXzbD2jbmfW4b3IPZxCNENIUh7UELHfcp1EsypGHgNtbGxBqTz/kIAEiYViDKheH48eR
         f3Aw==
X-Received: by 10.112.137.9 with SMTP id qe9mr1306781lbb.126.1366117334489;
        Tue, 16 Apr 2013 06:02:14 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.114.11.131 with SMTP id q3csp51388ldb;
        Tue, 16 Apr 2013 06:02:13 -0700 (PDT)
X-Received: by 10.112.150.164 with SMTP id uj4mr1326604lbb.68.1366117332290;
        Tue, 16 Apr 2013 06:02:12 -0700 (PDT)
DomainKey-Status: bad format
Received-SPF: neutral (google.com: 195.47.247.150 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=195.47.247.150;
Received: by 10.112.74.10 with POP3 id p10mf575542lbv.5;
        Tue, 16 Apr 2013 06:02:12 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-y.one.com (mx-y.one.com [195.47.247.150])
	by mail6.local (Postfix) with ESMTP id 9E92A8014F8C6
	for <info@awaresystems.be>; Tue, 16 Apr 2013 14:58:27 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (ks365428.kimsufi.com [94.23.4.142])
	by mx-y.one.com (Postfix) with ESMTP id 6FFE23C438
	for <info@awaresystems.be>; Tue, 16 Apr 2013 13:38:54 +0000 (UTC)
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 02AF635C02B;
	Tue, 16 Apr 2013 07:57:32 -0500 (EST)
Received: from mataram.parisdescartes.fr (mataram.parisdescartes.fr
	[193.51.86.55])
	by lists.maptools.org (Postfix) with ESMTP id 5862535C02B
	for <tiff@lists.maptools.org>; Tue, 16 Apr 2013 07:56:01 -0500 (EST)
Received: from localhost (fourmilier.univ-paris5.fr [192.168.253.3])
	by mataram.parisdescartes.fr (Postfix) with ESMTP id C2B172FA700;
	Tue, 16 Apr 2013 14:56:00 +0200 (CEST)
Received: from mataram.parisdescartes.fr ([192.168.253.4])
	by localhost (fourmilier.univ-paris5.fr [192.168.253.3]) (amavisd-new,
	port 10024)
	with ESMTP id nHrl3438By0U; Tue, 16 Apr 2013 14:55:55 +0200 (CEST)
Received: from [172.30.41.128] (wifi-pro-172-30-41-128.wifi.univ-paris5.fr
	[172.30.41.128])
	by mataram.parisdescartes.fr (Postfix) with ESMTPSA id DBFFA2FA862;
	Tue, 16 Apr 2013 14:55:55 +0200 (CEST)
Message-ID: <516D4A5C.4030801@parisdescartes.fr>
Date: Tue, 16 Apr 2013 14:55:56 +0200
From: =?ISO-8859-1?Q?R=E9my_Abergel?= <remy.abergel@parisdescartes.fr>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: jcupitt@gmail.com
References: <516D2027.4090504@parisdescartes.fr>
	<CAGNS0RtrKbmEwBZi9Xf=VaZMmKLcP-Z+eo4LpN1RfN5AZELyJQ@mail.gmail.com>
In-Reply-To: <CAGNS0RtrKbmEwBZi9Xf=VaZMmKLcP-Z+eo4LpN1RfN5AZELyJQ@mail.gmail.com>
Cc: TIFF <tiff@lists.maptools.org>
Subject: Re: [Tiff] How 16bits-RGBA image pixels are interlaced ?
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="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Thank you for your answer, I'm going to have a look on your reader, and =

eventually come back with new questions.
Regards,

R=E9my A.


Le 16/04/2013 12:38, jcupitt@gmail.com a =E9crit :
> On 16 April 2013 10:55, R=E9my Abergel <remy.abergel@parisdescartes.fr> w=
rote:
>> In case of a 16 bits per channel RGBA image, could you tell me how can I
>> deinterlace pixels?
> I use TIFFReadEncodedStrip() (or TIFFReadTile() for a tiled image) to
> read decoded pixels to a buffer. libtiff returns pixels in the host
> byte order by default, so for RGB16 you can just do:
>
> struct Pixel {
>    uint16 R;
>    uint16 G;
>    uint16 B;
> }
>
> Pixel buffer[...size this carefully...];
>
> TIFFReadEncodedStrip (tiff, strip_number, buffer, -1);
>
> My reader is here:
>
> https://github.com/jcupitt/libvips/blob/master/libvips/foreign/tiff2vips.c
>
> You're welcome to use any parts of it.
>
> John

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