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.

How to apply for memory in a codec which run on dsp side?

Hi,erveryone. I had understood how to apply for contiguous memory on ARM side, but I don't know how to apply for memory in my codec(run on dsp side). I want to follow the xDAIS/xDM rules, so I don't want to use the function such as Memory_alloc in my codec. I mean, I want to take the advantage of CE framework.

The following code is a part of viddec_copy.c:
memTab[0].size = sizeof(VIDDECOPY_TI_Obj);
memTab[0].alignment = 0;
memTab[0].space = IALG_EXTERNAL;
memTab[0].attrs = IALG_PERSIST;

return (1);

If I want to apply for more memory on DSP side, can I modify the code to this:

memTab[0].size = sizeof(VIDDECOPY_TI_Obj);
memTab[0].alignment = 0;
memTab[0].space = IALG_EXTERNAL;
memTab[0].attrs = IALG_PERSIST;

memTab[1].size = sizeof(VIDDECOPY_TI_Obj);
memTab[1].alignment = 0;
memTab[1].space = IALG_EXTERNAL;
memTab[1].attrs = IALG_PERSIST;

return (2);

If so, how should I use this memory? In function like MOD_process or other functions?

Could someone help me?