About NPPI CMYK_OR_YCCK_JPEG_TO_RGB API Logic

Hello everyone

I am working on converting cmyk jpeg images to rgb.

Here I used NvJpg Decoder and I was able to get YCCK Data.

I want to convert this to RGB data.

However, I have a question about nppi’s CMYK_OR_YCCK_JPEG_TO_RGB api during the conversion process.

In the image above, the RED arrow is the result of converting CMYK data to RGB via nppiCMYKOrYCCKToRGB_JPEG_8u_P4P3R_Ctx API.

In the image above, the BLUE arrow is the result of converting YCCK data directly to RGB via nppiCMYKOrYCCKToRGB_JPEG_8u_P4P3R_Ctx.

In both processes, the results are very different from what I expected.

What did I do wrong?

Can someone tell me the conversion process used in the nppiCMYKOrYCCKToRGB_JPEG_8u_P4P3R_Ctx API?

Thank you all for reading this. Have a happy day!