This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TDA2PXEVM: TDA2PXEVM

Part Number: TDA2PXEVM


Tool/software: TI C/C++ Compiler

Hello All,

I'm having an Image of 512*384 resolution. And i want to do some operations on image

I am dividing the image into multiple blocks. I want those operations to be done on each block of image on VCOP side.

So im allocating memory for each block in IBUFLA, each time just before the corresponding block will be processed and de-allocating it after.

My question is : Is allocating block and de-allocating multiple times good approach ? or it is better to allocate memory at the beginning and free it at last.

Does including vcop_malloc() multiple times consumes some decent amount of time , where time is very critical ??

Thanks in advance,

Likhith C  

  • Hi,

    It is better to allocate memory at the beginning and free it at last. This is a good approach.

    Does including vcop_malloc() multiple times consumes some decent amount of time, where time is very critical ??

    >>> Do profiling before calling & after calling the vcop_malloc()  function to know how much time is consuming this function call.

    Thanks

    Gaviraju