NVIDIA / CUDALibrarySamples

CUDA Library Samples
Other
1.49k stars 308 forks source link

NVJPEG failure: '#3' when trying to decode JPH file #163

Open jamesdavidson opened 8 months ago

jamesdavidson commented 8 months ago

Should I be able to open .jph file using nvJPEG2000 library?

The library docs advertise support for high throughput but so far I can only decode jp2 files.

The HTJ2K standard defines a wrapping file format known as JPH, which extends the JP2 file format with support for modern parameterizable colour spaces, images without any colour space, and custom colour mappings suitable for raw sensor compression.

I’m using Ubuntu 22.04 package nvjpeg2k0 0.7.5.32-1 amd64 with CUDA 11.5.

original post in forums

zohebk-nv commented 8 months ago

JPH file format is not supported as of release v 0.7.5. We can look into adding support for this in an upcoming release.

jamesdavidson commented 8 months ago

If it is of interest then great! Let me know if you would like me to test out a draft / alpha version

zohebk-nv commented 4 months ago

Hi @jamesdavidson , would it be possible for you share a sample .jph file which causes nvjpeg2k to return an error?

jamesdavidson commented 4 months ago

Yep, here you go: https://gitlab.com/wg1/htj2k-codestreams/-/blob/master/testfiles_jph/file1_b11.jph

Tested with nvjpeg2k0 package version 8.0.38, CUDA 12.4 via nvjpeg2000DecodeSample.cpp