Object Encoder is not hardware encoding

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) t4
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.2
• NVIDIA GPU Driver Version (valid for GPU only) 440
• Issue Type( questions, new requirements, bugs) question
• 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)
I encode the image using nvds_obj_enc_process and get the correct result .But when I use the commond “nvidia-smi dmon” to check the GPU status , I found that the hardware coding unit is not used.

nvds_obj_enc_process is JPEG encoder, there is no HW JPEG encoder in T4. Video Encode and Decode GPU Support Matrix [NEW] | NVIDIA Developer

So how should I code images use hardware in DeepStream?
It is necessary to save the current frame after the target is detected

There is no HW JPEG encoder in T4.