Hi seems strange to me that you use convert.in_buff.index = 0; convert.out_buff1.index = 0; with the same index. In the dvsdk for DaVinci (2.1 to the best of my knowledge) you should use -1 for buffers that have not been allocated by the resizer itself. I hope this did not confuse you Albert
On Mon, Aug 16, 2010 at 11:18 AM, hitesh <[email protected]>wrote: > Hi All, > > I am facing memory leak issue in Chroma Conversion module of DM365 IPIPE. > When I run the ioctl(resizer_fd, RSZ_RESIZE, &convert) ioctl, It increase > my memory usage and it is gradually increasing it in > every call of of ioctl. Do you have any solution? I want to do chroma > conversion for encode my video with H264 encoder. > > My configuration for IPIPE is as below. > INPUT_WIDTH =1280 > INPUT_HEIGHT =720 > > rsz_ss_config.input.image_width = INPUT_WIDTH; > rsz_ss_config.input.image_height = INPUT_HEIGHT; > rsz_ss_config.input.ppln = rsz_ss_config.input.image_width + 8; > rsz_ss_config.input.lpfr = rsz_ss_config.input.image_height + 10; > rsz_ss_config.input.pix_fmt = IPIPE_UYVY; > rsz_ss_config.output1.pix_fmt = IPIPE_YUV420SP; > rsz_ss_config.output1.enable = 1; > rsz_ss_config.output1.width = INPUT_WIDTH; > rsz_ss_config.output1.height = INPUT_HEIGHT; > rsz_ss_config.output2.enable = 0; > > rsz_chan_config.oper_mode = IMP_MODE_SINGLE_SHOT; > rsz_chan_config.chain = 0; > > > I am calling ioctl as below. > > convert.in_buff.buf_type = IMP_BUF_IN; > convert.in_buff.index = 0; > convert.in_buff.offset = buf_in[0].offset; > convert.in_buff.size = buf_in[0].size; > convert.out_buff1.buf_type = IMP_BUF_OUT1; > convert.out_buff1.index = 0; > convert.out_buff1.offset = buf_out1[0].offset; > convert.out_buff1.size = buf_out1[0].size; > if (ioctl(resizer_fd, RSZ_RESIZE, &convert) < 0) { > perror("Error in doing preview\n"); > munmap(input_buffer, buf_in[0].size); > munmap(output_buffer, buf_out1[0].size); > close(resizer_fd); > fclose(inp_f); > fclose(outp_f); > exit(1); > } > > > > Thanks > Hitesh > > > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > -- Albert Burbea Harishonim 8 Ramat Gan 52502, Israel Tel/Fax + 972-3-7526016 Mobile: +972-52-3541842
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
