Please refer to CUtils::ConvertRawToRgba() defined in ~/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvmedia/nvsipl/test/camera/CUtils.cpp and nvmedia/nvsipl/test/camera/CComposite.cpp which calls the function on your host system.
I have the RGBA and tried streaming it to another computer using socket but how do I visualise it in the other end?! In some format that my code can convert into some .jpeg or .png ?!
@VickNV No outside of the Xavier. We are sending those RGBA frames through ethernet (Socket communication). Just need to visualise those frame data as images for which we need to understand how we are sending - in which format.
So your question is how to convert into .jpeg or .png, how to send, or how to visualise in the other end?
For JPEG encode, there is a sample (~/home/vyu/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvmedia/img_jpgenc/image_jpegenc.c).
For the other two questions, are they nvidia-specific questions? Or just for ubuntu?
It looks your are trying nvmimg_jpgenc application. Any other error messages prior to “nvmedia: ERROR: readYUVFile failed”? Could you figure out the error is due to which API call in ReadImage() or ReadImageNew() (defined in ~/nvidia/nvidia_sdk/DRIVE_Software_10.0_Linux_OS_DDPX/DRIVEOS/drive-t186ref-linux/samples/nvmedia/utils/surf_utils.c)?