Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx3.pub.mailpod2-cph3.one.com ([10.27.25.13])
	by mailstorage18.cst.mailpod2-cph3.one.com with LMTP id uKt6Az3PGVv03wAAQS8vrQ
	for <filtered@awaresystems.be>; Fri, 08 Jun 2018 00:35:09 +0000
X-HalOne-ID: caf93dc1-6ab3-11e8-8713-e0d84895d241
Received: from mail-ot0-f179.google.com (unknown [74.125.82.179])
	by mx3.pub.mailpod2-cph3.one.com (Halon) with ESMTPS
	id caf93dc1-6ab3-11e8-8713-e0d84895d241;
	Fri, 08 Jun 2018 00:35:08 +0000 (UTC)
Received: by mail-ot0-f179.google.com with SMTP id q17-v6so13734427otg.2
        for <filtered@awaresystems.be>; Thu, 07 Jun 2018 17:35:07 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :from:to:thread-topic:thread-index:date:deferred-delivery:message-id
         :references:in-reply-to:accept-language:content-language
         :spamdiagnosticoutput:spamdiagnosticmetadata:mime-version:subject
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-transfer-encoding:sender:errors-to;
        bh=+mMK2SpFGW8RE58NDF5zwLv4FZ5i+ayHzfBOOKVUBjg=;
        b=uVf+EjnXl2xYAqxJDMD6dpbmnExve/QJLErj80xC8gZEHEnhR5OsZAparwaZzMUgw3
         UBoKHoOwQxOc49CSv2KHHZtl3E3hXtBahoyU5V/67a1YvB8/BtXEngikeAejk5vTPXha
         iUfL0hZCXmuSSmJi3v4k4lGyHfBb1lxeh8eoZq1f4+Ir/XGEOz+yFgr4ghcZy7YopEa5
         L9i1NhtXe3P8jmp3iW3CdrBTpZMLaFXbNRDRSInV/ICa9jAiIvo0enfSLkvFvlWZn8nZ
         lozk+NZPhzV+qQV7LtHYxQ0XB1DiDnrru062bAkxb4T/+ZiAg8/KHvDHxyedFh3OXWPD
         f3Ng==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: APt69E337wv53rRKCNlOlHT8W4Dkf+tki2YDdj7LptPu15C+SPmRJdOn
	DW0wForq1jTwgd4WItj3mcfJovO46oJwnXhFpT4M5M187HND+T8=
X-Received: by 2002:a9d:7486:: with SMTP id t6-v6mr2495555otk.91.1528418106842;
        Thu, 07 Jun 2018 17:35:06 -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 2002:a4a:b781:0:0:0:0:0 with SMTP id a1-v6csp252856oop;
        Thu, 7 Jun 2018 17:35:05 -0700 (PDT)
X-Google-Smtp-Source: ADUXVKJt89Gt80O4nALt3wCJQ3jPOTPU6KkB00i+0zKDtprAqtGYdXNPeHFPfGZQTSXnQHh4r1+s
X-Received: by 2002:a1c:af95:: with SMTP id y143-v6mr4077wme.28.1528418105637;
        Thu, 07 Jun 2018 17:35:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1528418105; cv=none;
        d=google.com; s=arc-20160816;
        b=xuPSlKHMqViSk5AykjG9Uy8QKeTlrWxxHk3siSefNVU1K/XK9jtpvgxCXqfG+l7AA2
         qSZkASlA97UxMTZqMvCgW5/qRu37+kokpKbXZ9KEIn13G1pH0sC2GcGj+e4odnF/35Qg
         bTLBdZ3RvgsY/6N3eDCOIoMkcLGW4SOD0TL1eHv6wmfPQmuTBBvmkQpvmkXWCAWAjbh8
         UmRELvCtYPG3lu/qoQSbiFAdwjzq+Kxu7sJH+oeQ+jmnnm9v/o9syd/CuMdBNZuieUZD
         O9jcCmvV3ynUsxdkgfiNKxd73C0afLo2/hCIwVOs+Uruo3prJgbBILvVQW65B6bkIgIk
         TuOA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help
         :list-post:list-archive:list-unsubscribe:list-id:precedence:subject
         :mime-version:spamdiagnosticmetadata:spamdiagnosticoutput
         :content-language:accept-language:in-reply-to:references:message-id
         :deferred-delivery:date:thread-index:thread-topic:to:from
         :arc-authentication-results;
        bh=+mMK2SpFGW8RE58NDF5zwLv4FZ5i+ayHzfBOOKVUBjg=;
        b=WxTgN2ia4QBw9l1IIYEguTbOSOGcDxlGIxceF/k9/0sZCBfkoUCrOCIUK6BYAd2ybT
         7S3hM02wHpWtDcet5UM1X+jZ0kkbitxzxQGfe5mml59U+uoA7mHe+RvDaJd0X/Mnn8Nh
         iUV1fmTG/g16YukbYguZ7HzmmAJeBQ6K6/Z8qZTSaExTUMlLydmoYUsHvmEGoiYPWure
         RSEO4GUDxyAWbzCeCXHxs1TTiJ68LUjCkKQU6Yu8O86bGQ4r04wcOhJ2nQhJtXqlYL9O
         7ZwmnWuVqhDK0sKWdlFUo6rcyGaC4uIVvxv7Voi33Y3DJiwe5PAKNO899O96pTVE8D0D
         CheQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id j14-v6si18726138wro.5.2018.06.07.17.35.04;
        Thu, 07 Jun 2018 17:35:05 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 920D035C0E2;
	Thu,  7 Jun 2018 19:29:40 -0500 (EST)
Received: from mo-csw.securemx.jp (mo-csw1514.securemx.jp [210.130.202.153])
	by lists.maptools.org (Postfix) with ESMTPS id B9C8E35C046
	for <tiff@lists.maptools.org>; Thu,  7 Jun 2018 19:29:30 -0500 (EST)
Received: by mo-csw.securemx.jp (mx-mo-csw1514) id w580TOZg010149;
	Fri, 8 Jun 2018 09:29:25 +0900
X-Iguazu-Qid: 34tIXW7crxOqPojFDA
X-Iguazu-QSIG: v=1; s=0; t=1528417764; q=34tIXW7crxOqPojFDA;
	m=oo2VCyMZRhKQENj6UADhYtAoJZI8MjOil16kWPmbGiw=
Received: from kysosm.fujixerox.co.jp ([210.173.21.247])
	by relay.securemx.jp (mx-mr1512) id w580TNIq002761
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT);
	Fri, 8 Jun 2018 09:29:24 +0900
Received: from mx02.fujixerox.co.jp ([129.249.131.204])
	by kysosm.fujixerox.co.jp with ESMTP id w580TMGr005287
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 8 Jun 2018 09:29:23 +0900
Received: from JPN01-OS2-obe.outbound.protection.outlook.com ([23.103.139.143])
	by mx02.fujixerox.co.jp with ESMTP id w580TMTb019792;
	Fri, 8 Jun 2018 09:29:22 +0900
Received: from TY1PR06MB0990.apcprd06.prod.outlook.com (10.164.99.24) by
	TY1PR06MB0768.apcprd06.prod.outlook.com (10.163.245.153) with Microsoft
	SMTP
	Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
	15.20.841.15; Fri, 8 Jun 2018 00:29:21 +0000
Received: from TY1PR06MB0990.apcprd06.prod.outlook.com
	([fe80::e040:82f1:12f7:1bee]) by
	TY1PR06MB0990.apcprd06.prod.outlook.com
	([fe80::e040:82f1:12f7:1bee%4]) with mapi id 15.20.0841.015;
	Fri, 8 Jun 2018 00:29:21 +0000
From: fx HAYAKAWA MICHIO <michio.hayakawa@fujixerox.co.jp>
To: Even Rouault <even.rouault@spatialys.com>, "tiff@lists.maptools.org"
	<tiff@lists.maptools.org>
Thread-Topic: [Tiff] LZ4 compression
Thread-Index: AdPox1pjyLPRIOsLTIuDd9lGjQsl3wAX0xkAAA3HjYAAd4QwUAASoQmAAAGJ1wAAE+rS8AS3LpAgAAFPFYAAABFioA==
Date: Fri, 8 Jun 2018 00:29:20 +0000
Deferred-Delivery: Fri, 8 Jun 2018 00:27:31 +0000
Message-ID: <TY1PR06MB09905F534E061BEB8C6D4774AE7B0@TY1PR06MB0990.apcprd06.prod.outlook.com>
References: <TY1PR06MB0990FC946AE5DB7A40519001AE9F0@TY1PR06MB0990.apcprd06.prod.outlook.com>
	<TY1PR06MB0990B050D7472F57BB21A548AE9C0@TY1PR06MB0990.apcprd06.prod.outlook.com>
	<TY1PR06MB09909BDA3358B5C976265C2CAE7B0@TY1PR06MB0990.apcprd06.prod.outlook.com>
	<5092358.RkW5j91J22@even-i700>
In-Reply-To: <5092358.RkW5j91J22@even-i700>
Accept-Language: ja-JP, en-US
Content-Language: ja-JP
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
	smtp.mailfrom=michio.hayakawa@fujixerox.co.jp; 
x-originating-ip: [210.173.20.95]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; TY1PR06MB0768;
	7:6GHu1OPtnEElFV31HB4lU72d3W61yCcz1xQdc6SpsrTuDZlIzVO81X0iZzr/W5Spgw5bDO4Ig2ZEa5OeSMiqF8ruG1ZeG62NMgXN8W5MzR2MGnmxA6aUf999KjRvJLEj5uwqedW5JeThwkg15Mo4QNYaW8oUmcVzufmO0j1FGX4uuq28APN0ypfw/+iG11HCfCPr7MezHGYrzWTj6hXcDV/h9PpLtjN2GFPDxD6w8E1RXMNzX5rygFJL6tnMClYd;
	20:nV83gk5rWfZ+DOER98x6eEGXabmqwEO+oEq0cGTXM4SQ5JE12DY6tvmwnmCPlbIl3oQTQTeGCXcARTKZOLpBjfVPGxhEnF+X15YSx1ISUPigOH+hhsiakYWh6ZgetAS6q6YNRq47Ube9rbKdcOjM7J1SxLa5p/JjFHslrY01qTINpoRX/Be9vCbVhj/9UdEIAd2vmutu5j8dnYrlSZgA8B8CdDYd4WBwrfswIPUA2wEGgeR41/xGGZ42gm3bbuKn9uIo3gCkpCmHtPVPkMuSsX1ZW40wYvyFwyvXdkAhj5JTIYmrs20abCQNFe/WBfAr7H10hJXXiwe91EGB7Lg7iQ==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
	RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);
	SRVR:TY1PR06MB0768; 
x-ms-traffictypediagnostic: TY1PR06MB0768:
x-microsoft-antispam-prvs: <TY1PR06MB07688757D12B23CF8F08C491AE7B0@TY1PR06MB0768.apcprd06.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(4782527817362);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
	RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);
	SRVR:TY1PR06MB0768; BCL:0; PCL:0; RULEID:; SRVR:TY1PR06MB0768; 
x-forefront-prvs: 06973FFAD3
x-forefront-antispam-report: SFV:NSPM;
	SFS:(10019020)(39860400002)(376002)(346002)(39380400002)(396003)(366004)(199004)(189003)(13464003)(486006)(97736004)(74482002)(478600001)(14454004)(316002)(6306002)(9686003)(186003)(7736002)(55016002)(305945005)(66066001)(476003)(2501003)(74316002)(33656002)(5660300001)(110136005)(446003)(11346002)(3846002)(6116002)(966005)(68736007)(93886005)(86362001)(6436002)(5250100002)(76176011)(7696005)(81166006)(8936002)(81156014)(2900100001)(53546011)(6506007)(2906002)(26005)(105586002)(25786009)(99286004)(102836004)(3660700001)(8676002)(3280700002)(6246003)(229853002)(53936002)(106356001)(18886065003);
	DIR:OUT; SFP:1102; SCL:1; SRVR:TY1PR06MB0768;
	H:TY1PR06MB0990.apcprd06.prod.outlook.com; FPR:; SPF:None;
	LANG:en; PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: fujixerox.co.jp does not designate
	permitted sender hosts)
x-microsoft-antispam-message-info: 1RQ0f224zN/xN9j/7bUYVDxioKx3M5z/VVdTx2+yTwapMZ/JqXV04Jp8qNBE+x0/EKqIVF2zaSscYlkoXvNcGb+XJ0SYQZj87l7PLLG4mDMJpSo9becQp9dKjVexF0xNYZMrqgvxP0MIW3dff36KX4d/Ig4FpZ6JDhmDvUGmUILTNCLiRpUejZ6JAPknorfx
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: cb66d733-e846-4d64-ec96-08d5ccd6e161
X-OriginatorOrg: fujixerox.co.jp
X-MS-Exchange-CrossTenant-Network-Message-Id: cb66d733-e846-4d64-ec96-08d5ccd6e161
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2018 00:29:21.6789 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 176c9cc7-bcae-4c9a-9d8f-1b9322aff6ab
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR06MB0768
Subject: Re: [Tiff] LZ4 compression
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


Oh sorry, Even! I didn't check the repository.

How about followings?
#define	COMPRESSION_LZ4		34927	/* LZ4 */
#define	TIFFTAG_LZ4QUALITY		65564	/* LZ4 acceleration factor */

Thanks,
Michio

-----Original Message-----
From: Even Rouault [mailto:even.rouault@spatialys.com] 
Sent: Friday, June 08, 2018 9:18 AM
To: tiff@lists.maptools.org
Cc: fx HAYAKAWA MICHIO <michio.hayakawa@fujixerox.co.jp>
Subject: Re: [Tiff] LZ4 compression

On vendredi 8 juin 2018 00:02:46 CEST fx HAYAKAWA MICHIO wrote:
> I successfully implemented LZ4 compression in libtiff on Windows platform.
> LZ4 frame format is used for compression scheme. LZ4 frame is widely 
> used for various applications.
> 
> Does anyone have any test images to see LZ4 compression characteristics?
> I also modified tiffcp to support LZ4, so that any tiff files can be 
> converted into LZ4 tiff.
> 
> From my small experiments, its compression ratio is better than LZW, 
> but worse than ZIP. Predictor is nicely working with LZ4. My tiff 
> viewer shows
> LZ4 tiff very fast compared to ZIP especially large tiff files. If 
> someone want the code, I'd like to pick up two TAG values before 
> releasing it to avoid confusion.
> 
> #define	COMPRESSION_LZ4		34926	/* LZ4 */
> #define	TIFFTAG_LZ4QUALITY		65564	/* LZ4 acceleration factor */
> 
> Are there any objections to pick up those values?

Yes! libtiff master uses 34926 for ZSTD codec:
https://gitlab.com/libtiff/libtiff/blob/master/libtiff/tiff.h#L191

--
Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
