Decode Lossless Jepg 1992

I am wondering is it possible to decode LossLess encoded jpeg RAW image using CUDA libraries?
I can use LJ92 to decode it.
I have tried to use nvjpeg and nvjpeg2k libraries. Both of them give the error NVJPEG_STATUS_BAD_JPEG.

Just use libjpeg reference new library. It can be complied even with VS 2022. Here: Cannot round-trip RGB / 8bits / interleave none · Issue #64 · thorfdbg/libjpeg · GitHub

It supports all 4 types of Lossless JPEG. If you need JPEG XL or JPEG LS those are separate libraries, but libjpeg also has support for LS.