Nvv4l2h265enc with ROI

Is it possible to use several parameters for H265 based on ROI?
I want the center of the frame to be sharp while the bitrate outside the ROI to be lower.
I am using gstreamer with Nvidia’s encoder nvv4l2h265enc

I have tried:
/usr/src/jetson_multimedia_api/samples/01_video_encode/video_encode /mnt/sd/capture1.yuv 1920 1080 H265 /mnt/sd/dump_roi.h265 -br 40 -rc cbr -ifi 30 --cd --report-metadata --input-metadata --eroi -roi roi_265.cfg -MinQpP 1 -MaxQpP 40 -MinQpI 1 -MaxQpI 40 && gst-launch-1.0 filesrc location= /mnt/sd/dump_roi.h265 num-buffers=2000 ! h265parse ! omxh265dec ! nvvidconv ! xvimagesink
and it works well

The function is demonstrated in 01_video_encode, not in nvv4l2h265enc. Since gst-v4l2 is open source, you may refer to the code in 01_video_encode and port to nvv4l2h265enc

Thank you,
I’ll check it