Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx1.pub.mailpod2-cph3.one.com ([10.27.25.11])
	by mailstorage18.cst.mailpod2-cph3.one.com with LMTP id oL44GN/MGVtVrgAAQS8vrQ
	for <filtered@awaresystems.be>; Fri, 08 Jun 2018 00:25:03 +0000
X-HalOne-ID: 61b9fe74-6ab2-11e8-8d9d-e0d848957041
Received: from mail-oi0-f53.google.com (unknown [209.85.218.53])
	by mx1.pub.mailpod2-cph3.one.com (Halon) with ESMTPS
	id 61b9fe74-6ab2-11e8-8d9d-e0d848957041;
	Fri, 08 Jun 2018 00:25:02 +0000 (UTC)
Received: by mail-oi0-f53.google.com with SMTP id t133-v6so10295365oif.10
        for <filtered@awaresystems.be>; Thu, 07 Jun 2018 17:25:01 -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:date:message-id:user-agent:in-reply-to:references
         :mime-version:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=r/4GEB1ZLgjlrKNg06kCITu3EFwUY3d9rbPSXlJO2mg=;
        b=OIvIQVgMWYzctpIGmLJQdpp0S6Db/WyfEqsAGZ5aUbYSSnYinF1VQEXXY+cE7JZL7x
         WhA7o8tnNy7dzv5ImVxJH7E+L1X45zFbNfGIk7xwMnMR7B8Lw7GQdvK7iH17xnJla1y9
         Q7kVG5gnO6odJXfIecXxXEmLz+hOXMp9SV6G+uJ38oMCl3GzcGz15XzN/JGHLiE4DdN8
         Kiw1BJsiNjhB335HpZCfCAk5ObgeETNRYbIAIiPFKuOnVJI5rw1jBrQ4vD8HloTr5I39
         S4ET54szUpeCEgRVx54nkwEQuO6w+9nVB1+9Etqgu9Q7U596qeriDoD/ObuhcGxJ+RzB
         A7Vg==
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: APt69E1Okjq6Kr8927rR0S0JijYv05JFiMDMvJmVxfHNEqcKCurS3ska
	F42a1SRlLWVqkrE1XHttvLGaIRhPis6T4OxExf9DaTLo1ZuXyjk=
X-Received: by 2002:aca:dc08:: with SMTP id t8-v6mr2227267oig.159.1528417500551;
        Thu, 07 Jun 2018 17:25:00 -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-v6csp245424oop;
        Thu, 7 Jun 2018 17:24:59 -0700 (PDT)
X-Google-Smtp-Source: ADUXVKJ5GdO4VnJ39Uv1XAqgwBiKHuQJMXDRDfqFsjgVKsFtgygYx3o3M0RSS7PeWIw3qZi28jaL
X-Received: by 2002:adf:b097:: with SMTP id i23-v6mr3145435wra.52.1528417499385;
        Thu, 07 Jun 2018 17:24:59 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1528417499; cv=none;
        d=google.com; s=arc-20160816;
        b=UZUVwr99bMO24NSexjjCSsvJPjcqA6GBF91xSF5XXRj8bbYnyzo5P2FYOeMmedHs64
         xuHFH8bhYXCREhGvIMW7RHsRfuSb2QE7SLeu6TSVqoT3bJXIb2GSUsgCplE5KS+IS+ap
         iKq+JC1Cw7r6rNmW8fY3tL8DX6oeL2B9efU51Ypi4D+Aa4NjseE9G6VBFFxFCMzBVspw
         eNFEBGn+5mLSEUaVB/UVn6Ei8g2hMO1WPjqyruCibmIkr/ZMDk0E4ogNDb3SyOG2BZI6
         9npjDPEc6omnaeEOYEYwU3YlN6H6y4ebV51vLWYza5Ttf3Z6dEU0+DgObopyCxr3DitX
         DWPA==
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:references:in-reply-to:user-agent:message-id:date:to
         :from:arc-authentication-results;
        bh=r/4GEB1ZLgjlrKNg06kCITu3EFwUY3d9rbPSXlJO2mg=;
        b=Gu6yRKPAxVHDNyjZ6yKe9tAGZXQ3Wr+9Aqo8EUsrOGlocu/AFTlxfq/0VCQx5rCg/2
         BPDGuGpU9DtI2Gi1NLtAysK58quRdLL1QGaqmRXHjbz1sm7m335f07BFibUEr3e5Mnvr
         sHvcuJomAyykrHyEvNVdv21jpnVNhY708YhEOeSJlrZkJ6JJwS+PRoeRzz34S1DcwQxv
         OabsxKVXhkl33Mbxf8uYv0YmvPEF9x1sOSewW5ewYUKm5ZLsLxWI8T2fUlzpIQtM7WdN
         5R5nQwkD7S0UZ8IXGFmNxfRenULcPvXqwcbMaUUhGdAWFI5yZSq6/j5vaJoyyJ3+3GOV
         sRNg==
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 e3-v6si112010wmg.44.2018.06.07.17.24.58;
        Thu, 07 Jun 2018 17:24:59 -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 C59DF35C0B2;
	Thu,  7 Jun 2018 19:18:01 -0500 (EST)
Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232])
	by lists.maptools.org (Postfix) with ESMTPS id 06D0E35C0A8
	for <tiff@lists.maptools.org>; Thu,  7 Jun 2018 19:17:53 -0500 (EST)
Received: from even-i700.localnet (mla78-3-88-162-84-61.fbx.proxad.net
	[88.162.84.61]) (Authenticated sender: test@spatialys.com)
	by relay12.mail.gandi.net (Postfix) with ESMTPSA id 38A1D200010;
	Fri,  8 Jun 2018 00:17:52 +0000 (UTC)
From: Even Rouault <even.rouault@spatialys.com>
To: tiff@lists.maptools.org
Date: Fri, 08 Jun 2018 02:17:51 +0200
Message-ID: <5092358.RkW5j91J22@even-i700>
User-Agent: KMail/5.1.3 (Linux/4.4.0-124-generic; KDE/5.18.0; x86_64; ; )
In-Reply-To: <TY1PR06MB09909BDA3358B5C976265C2CAE7B0@TY1PR06MB0990.apcprd06.prod.outlook.com>
References: <TY1PR06MB0990FC946AE5DB7A40519001AE9F0@TY1PR06MB0990.apcprd06.prod.outlook.com>
	<TY1PR06MB0990B050D7472F57BB21A548AE9C0@TY1PR06MB0990.apcprd06.prod.outlook.com>
	<TY1PR06MB09909BDA3358B5C976265C2CAE7B0@TY1PR06MB0990.apcprd06.prod.outlook.com>
MIME-Version: 1.0
X-Spam-Level: 
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

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/
