Hi
I found memory leak using decodeToFd blew.
while(1) {
ret = ctx.jpegdec->decodeToFd(fd, ctx.in_buffer, ctx.in_file_size, pixfmt,
width, height);
g_renderer->render(fd);
// cout << "test " << endl;
}
Please check the attached file and excute blew
./jpeg_decode num_files 1 baboon.jpg out.raw --decode-fd
head /etc/nv_tegra_release
# R32 (release), REVISION: 2.1, GCID: 16294929, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 13 04:45:36 UTC 2019
06_jpeg_decode_testmemoryp.zip (619 KB)