Hi Sean and Even,
Correct, the current JP2Grok does not support the generation of Part 15
code streams.
It's trivial to add, as it just involves adding a new encoding mode, but I
was waiting for a merge
before looking into new driver features.

Also, yes, OpenJPH is being used for the new entropy encoder. As OpenJPH
library is in its
infancy and is missing many features of a mature implementation, I would
recommend
the best approach to be integrating OpenJPH into OpenJPEG and upgrading the
gdal driver
accordingly.

Cheers,
Aaron

On Mon, May 3, 2021 at 4:40 PM Even Rouault <[email protected]>
wrote:

> Sean,
>
> 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.
>
> 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)
>
> There's a BSD 2 licensed implementation of HTJ2K in
> https://github.com/aous72/OpenJPH . 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.
>
> Even
> Le 03/05/2021 à 22:17, Sean Gillies via gdal-dev a écrit :
>
> Hi  Aaron, and everyone,
>
> 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?
>
> On Mon, May 3, 2021 at 1:52 PM Aaron Boxer <[email protected]> wrote:
>
>> Hi Jean-Roc,
>> Good question - unfortunately OpenJPEG doesn't currently support HTJ2K,
>> it only supports JPEG 2000 Part 1. I am sure that this will eventually be
>> integrated,
>> but it isn't there at the moment.
>> Cheers,
>> Aaron
>>
>> On Mon, May 3, 2021 at 12:05 PM Jean-Roc Morreale (ml) <
>> [email protected]> wrote:
>>
>>> Hi Aaron,
>>>
>>> Is the HTJ2K's output still readable by a regular GDAL/OpenJPEG ?
>>>
>>> Regards,
>>> Jean-Roc Morreale
>>
>>
> --
> Sean Gillies
>
> _______________________________________________
> gdal-dev mailing 
> [email protected]https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to