How to use 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.