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

Even Rouault even.rouault at mines-paris.org
Wed Mar 19 10:22:05 PDT 2014


Le mercredi 19 mars 2014 18:16:57, Piero Campalani a écrit :
> 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?

No, JP2 is J2K plus boxes to add metadata. See "File format and code stream" 
paragraph of http://en.wikipedia.org/wiki/JPEG_2000

> 
> 
> ---    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

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list