<div dir="ltr"><div dir="ltr">Hi Sean and Even,</div><div>Correct, the current JP2Grok does not support the generation of Part 15 code streams.</div><div>It's trivial to add, as it just involves adding a new encoding mode, but I was waiting for a merge</div><div>before looking into new driver features. </div><div><br></div><div>Also, yes, OpenJPH is being used for the new entropy encoder. As OpenJPH library is in its</div><div>infancy and is missing many features of a mature implementation, I would recommend</div><div>the best approach to be integrating OpenJPH into OpenJPEG and upgrading the gdal driver</div><div>accordingly.</div><div><br></div><div>Cheers,</div><div>Aaron</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 4:40 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Sean,</p>
<p>my quick look at the JP2Grok driver code is that it doesn't
generate the HTJ2K / Part 15 variant of JPEG2000, at least there's
nothing suggesting that (didn't try running it). I guess that
there would be a need for a dedicated creation option in the
driver for that to happen, so there shouldn't be interoperability
issues of the files it generates with other JPEG2000 capable
drivers.<br>
</p>
<p>I'm not sure which support of HTJ2K the ECW and MrSID SDKs have.
I believe there's such support Kakadu in recent releases, but
might be subject to extra fees (or perhaps for faster support)</p>
<p>There's a BSD 2 licensed implementation of HTJ2K in
<a href="https://github.com/aous72/OpenJPH" target="_blank">https://github.com/aous72/OpenJPH</a> . From what I see, Grok HTJ2K
support has incorporated some of that code. So for a BSD 2
compatible use in GDAL, either a GDAL driver should be built from
OpenJPH as a standalone library, or relevant parts of OpenJPH
should be "ported" to OpenJPEG.</p>
<p>Even<br>
</p>
<div>Le 03/05/2021 à 22:17, Sean Gillies via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi Aaron, and everyone,</div>
<div><br>
</div>
<div>It seems like interoperability could be harmed if we
release GDAL with a JP2 driver that writes JPEG 2000 files
that the main open source JP2 driver can't read. Would it make
sense to add compatibility to OpenJPEG before the PR gets
merged? Or are we already in a state of inoperability between
JP2ECW, JP2MRSID, and JP2OpenJPEG?</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 1:52
PM Aaron Boxer <<a href="mailto:boxerab@gmail.com" target="_blank">boxerab@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi Jean-Roc,
<div>Good question - unfortunately OpenJPEG doesn't
currently support HTJ2K,</div>
<div>it only supports JPEG 2000 Part 1. I am sure that
this will eventually be integrated,</div>
<div>but it isn't there at the moment.</div>
<div>Cheers,</div>
<div>Aaron</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at
12:05 PM Jean-Roc Morreale (ml) <<a href="mailto:jrmorreale_ml@enoreth.net" target="_blank">jrmorreale_ml@enoreth.net</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Aaron,<br>
<br>
Is the HTJ2K's output still readable by a regular
GDAL/OpenJPEG ?<br>
<br>
Regards,<br>
Jean-Roc Morreale</blockquote>
</div>
</blockquote>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">Sean Gillies</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div></div>