1,Compare R28.2 demo ‘01_video_encode’ to rewrite my program
use lib from https://devtalk.nvidia.com/default/topic/1038225/-r28-2-mmapi-crop-rects-right-out-of-boundary/#5275045
Strangely, my program has no memory leaks, I made the following modifications, the enc’s Output_plane DQ and Q operations are completed sequentially in one thread, and the start and exit mechanisms use the new event mechanism (setEncoderCommand func)
2,But the revised ‘01_video_encode’ still has a memory leak, is it because the demo mmap out the dma_buf ?
The code is in the attachment
./video_encode Night_1280x720_60.yuv 1280 720 H265 out.h265 -br 2000000 -ifi 25 -fps 25 1 -hpt 1
video_encode_main.cpp (34.9 KB)