[gdal-dev] JP2/J2K codecs in JP2OpenJPEG dataset

Piero Campalani piero.campa at gmail.com
Wed Mar 19 10:16:57 PDT 2014


Hi list,

looking at the JP2OpenJPEG format handler (./frmts/openjpegdataset.cpp), it
seems that only the codec JP2 (and not J2K) is accepted in order to enable
extra boxes (eg GMLJP2 or GeoJP2 ones).

Might be wrong, but aren't JP2/J2K equivalent formats?

>>>>>>>>>>>>>>>>>>>
---    if( eCodecFormat == OPJ_CODEC_JP2 &&
+++    if( (eCodecFormat == OPJ_CODEC_JP2 || eCodecFormat == OPJ_CODEC_J2K)
&&
           (CSLFetchBoolean( papszOptions, "GMLJP2", TRUE ) ||
            CSLFetchBoolean( papszOptions, "GeoJP2", TRUE )) )
       {
<<<<<<<<<<<<<<<<<<<

I couldn't find much information about the difference between the two
codecs, but in case I am missing something just forget all this.

cheers,
Piero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140319/9a1d4a0c/attachment-0001.html>


More information about the gdal-dev mailing list