<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
</head>
<body style=" font-family:'monospace'; font-size:9pt; font-weight:400; font-style:normal;">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p><br>
</p>
<p>I rebuilt GDAL (older version: 2.1.2) using this new open jpeg 2.2.0 (<a href="https://github.com/uclouvain/openjpeg/releases/download/v2.2.0/openjpeg-v2.2.0-linux-x86_64.tar.gz" class="OWAAutoLink" id="LPlnk815259" previewremoved="true">https://github.com/uclouvain/openjpeg/releases/download/v2.2.0/openjpeg-v2.2.0-linux-x86_64.tar.gz</a>)</p>
<p>and tried to convert two jp2 dataset to tiff (gdal_translate):</p>
<p><span id="docs-internal-guid-2220861f-29d3-9547-76ac-c682b4994af1"></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;">- bluemarble_4km.jp2: (10800 x 5400 pixels). 37.3 mb file
 size.</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;">- usgsLanSat.jp2: (8627 x 7745 pixels). 48 mb file size.</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><br>
</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span id="docs-internal-guid-2220861f-29d3-f20a-d725-54c41d99b1c2"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;">Tests
 were run on virtual machine with ‘Ubuntu 16.04’ operation system, 18 gb RAM and 2 CPU processors.</span></span></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><br>
</span></span></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">gdal_translate
 ‘bluemarble_4km.jp2’ to tiff:</span></span></span></span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span><span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">-
 OpenJpeg 2.1.2: </p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">13m34s: first run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">13m35s: second run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">- OpenJpeg 2.2.0:</span><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">13m45</span>: first run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">14m20s</span>: second run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px; line-height: 1.38;">
<span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-size: 14.6667px;">gdal_translate
 ‘<span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">usgsLanSat.jp2</span>’ to tiff:</span></span></span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px; line-height: 1.38;">
<span style="font-size: 11pt; font-family: Arial; background-color: transparent; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-size: 14.6667px;">-
 OpenJpeg 2.1.2: </span></span></span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">16m52s</span>: first run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">17m04s</span></span>:
 second run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-size: 14.6667px;">- OpenJpeg 2.2.0:</span><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"></span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-size: 14.6667px;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">18m13s</span></span>: first run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><span style="font-size: 14.6667px;"><span style="font-family: Arial; font-size: 14.6667px; white-space: pre-wrap;">17m54s</span></span>: second run</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">These results were not expected since the new openJpeg should be faster than the previous one. Could this be cause by 'gdal_translate' not using threads that the new openjpeg
 uses for performance boost ?</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;"><br>
</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">Or could it one of GDAL configuration or the built version of OpenJpeg need to be rebuilt using different config ?</span></p>
<p></p>
<p></p>
<br>
</span>
<p></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">Thanks</span></p>
<p dir="ltr" style="margin-top: 0pt; margin-bottom: 0pt; font-family: Arial; font-size: 14.6667px; white-space: pre-wrap; line-height: 1.2;">
<span style="font-size: 11pt; background-color: transparent; vertical-align: baseline;">Noureddine Farah</span></p>
</span>
<p></p>
</span></span></span></span>
<p></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><br>
</p>
</span><br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> N. Farah <nfarah@hotmail.com><br>
<b>Sent:</b> Monday, August 14, 2017 11:42:31 AM<br>
<b>To:</b> Even Rouault; gdal-dev@lists.osgeo.org<br>
<b>Subject:</b> Re: [gdal-dev] Fwd: [OpenJPEG] OpenJPEG 2.2.0 is out ! Faster and safer.</font>
<div> </div>
</div>
<div><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
Right...since GDAL does not ship the 3rd party lib(s).</p>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
<br>
</p>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
Thanks again</p>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Even Rouault <even.rouault@spatialys.com><br>
<b>Sent:</b> Monday, August 14, 2017 4:49:09 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org<br>
<b>Cc:</b> N. Farah<br>
<b>Subject:</b> Re: [gdal-dev] Fwd: [OpenJPEG] OpenJPEG 2.2.0 is out ! Faster and safer.</font>
<div> </div>
</div>
<div>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
On dimanche 13 août 2017 15:57:54 CEST N. Farah wrote:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
> Great news. Thanks for the work.</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
> Any plans to integrate this new version in GDAL ?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">
 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
Well, there's nothing to change in the GDAL source code. The existing JP2OpenJPEG driver will work with OpenJPEG 2.2. It is just a matter of recompiling libopenjp2.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">
 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
Even</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">
 </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
Spatialys - Geospatial professional services</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">
http://www.spatialys.com</p>
</div>
</div>
</body>
</html>