What is the best approach to capture the image as JPEG insdead of RAW

Hi,

I checked several existing NvMedia samples, it looks like all of them prompt the user the save the captured frame as RAW. We intend to ease the storage spaces and data transfer capability, apart from existing program to encode the camera stream as H.264, are there any approaches to encode them as JPEG and would that be recommended?

Hi xunfei.zhou,

You can refer to the sample for JPEG encoding.

https://docs.nvidia.com/drive/drive_os_5.1.6.1L/nvvib_docs/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/NvMedia/nvmedia_nvmimg_jpgenc.html#