NVIDIA / nvImageCodec

A nvImageCodec library of GPU- and CPU- accelerated codecs featuring a unified interface
https://docs.nvidia.com/cuda/nvimagecodec/index.html
Apache License 2.0
53 stars 4 forks source link

Cannot create wrapped image in C API #3

Open giapvn opened 3 months ago

giapvn commented 3 months ago

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

jantonguirao commented 3 months ago

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