Camera Frame Compression for ROS Record Sessions

Hello,

We want to collect sensor data with ROS. We have prepared our ROS GMSL camera driver and testing it now. Since, rosbag files contains frames for image messages, we need to compress the frames we read from the camera in order to store them. What would be the proper way to do that? Thank you

Dear mert.colak,
We have NVMedia API calls to compress image. Could you please take a look at [url]https://docs.nvidia.com/drive/active/5.0.10.3L/nvvib_docs/index.html#page/NVIDIA%2520DRIVE%2520Linux%2520SDK%2520Development%2520Guide%2FNvMedia%2520Sample%2520Apps%2Fnvmedia_nvmimg_enc.html%23[/url]