Re: [gdal-dev] GDAL unable to write 4-band RGBA jp2 file with Kakadu 7.8

2017-02-18 Thread Kurt Schwehr
Jason, Turns out you are hitting a known bug in v7.8 that is fixed in v7.9. From the kakadu v7.9 docs: h. Corrected a tiny, yet very significant bug introduced into the handling of opacity channel descriptions in version 7.8. The correction is in function `jp2_channels::set_opacity_mappin

Re: [gdal-dev] GDAL unable to write 4-band RGBA jp2 file with Kakadu 7.8

2017-02-13 Thread Kurt Schwehr
Hi Jason, I've seen the same thing with an alpha channel. I'm not sure what's up. Using just RGB was successful. On 7.3, I'm also seeing problems when using more than the main thread on linux. With 7.3, I just noticed today that kdu_get_num_processors() only returns 0 on linux as kdu_arch.cpp i

[gdal-dev] GDAL unable to write 4-band RGBA jp2 file with Kakadu 7.8

2017-02-13 Thread jason.liu
Hi gdal-dev, I am having trouble using GDAL to write 4-band RGBA jp2 file with Kakadu 7.8. The following minimal code GDALAllRegister(); GDALDataset* srcDataset = (GDALDataset*)GDALOpen("/home/jason.liu/0783.tif", GA_ReadOnly); char **papszOptions = NULL; papszOptions = CSLS