nvImageCodec icon indicating copy to clipboard operation
nvImageCodec copied to clipboard

Cannot create wrapped image in C API

Open giapvn opened this issue 1 year ago • 1 comments

Describe the question.

I am trying to test C API on Ubuntu 22.04 with CPU x86_64 architecture and CUDA 12.2 following this example. However, I faced an issue at step 5 as below:

nvimgcodecImage_t image;
nvimgcodecImageCreate(instance, &image, &image_info)

nvimgcodecImageCreate() function returned status of NVIMGCODEC_STATUS_INVALID_PARAMETER Can anyone support me on this problem? Thanks all.

Check for duplicates

  • [x] I have searched the open bugs/issues and have found no duplicates for this bug report

giapvn avatar Apr 09 '24 03:04 giapvn

Hi @giapvn. To better help you with this, could you provided the whole code snippet you are compiling/running? Thanks

jantonguirao avatar Apr 09 '24 09:04 jantonguirao

Thanks @jantonguirao. I fixed the errors in my code. It is a wrong instance in image_info propagated into.

giapvn avatar Aug 12 '24 11:08 giapvn

Perfect. Thanks for letting us know. I will close the issue then.

jantonguirao avatar Aug 12 '24 12:08 jantonguirao