How to use decodeToFd transform NvBuffer* to opencv mat in jpegdecoder?

hi all.
how to use the decodeToFd transform NvBuffer* to opencv mat in jpegdecoder?

Hi,
Please refer to

You need to create NvBuffer in NvBufferColorFormat_ABGR32,NvBufferLayout_Pitch, and convert the decoded YUVs to this NvBuffer through NvBufferTransform(). And then call NvBufferMemMap() to get the CPU data pointer.

thanks,I will try.

hi, how to use decodeToFd transform greyscale image to opencv mat in jpegdecoder?