How can save jpg file in DeepStream without opencv in osd_sink_pad_buffer_probe

how can save jpg file in DeepStream without opencv in osd_sink_pad_buffer_probe?
This is save jpg file with opencv:
cv::Mat bgr_frame = cv::Mat (cv::Size(nvbufsurface_create_params.width, nvbufsurface_create_params.height), CV_8UC3);
cv::Mat in_mat =
cv::Mat (nvbufsurface_create_params.height, nvbufsurface_create_params.width,
CV_8UC4, dst_surface->surfaceList[0].mappedAddr.addr[0],
dst_surface->surfaceList[0].pitch);
cv::cvtColor (in_mat, bgr_frame, cv::COLOR_RGBA2BGR);
cv::imwrite (“x.jpg”, bgr_frame);
How can I do without(no depencd) opencv
**• Hardware Platform (Jetson / GPU)**Jetson
• DeepStream Version5,1
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Please refer nvds_obj_enc_process() in deepstream_image_meta_test.c

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.