Hi,
I am trying to allocate buffer in shred region 2 as explained by Vimal here: http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/155685/564349.aspx#564349
by adding the following commands to the capture encode OMX example as suggested by Vimal:
srHeap = SharedRegion_getHeap(region); //region is 2 in ezsdk
virtAddr = (UInt32)Memory_alloc((IHeap_Handle)srHeap , nbytes, 0, NULL);
char *srPtr = (char*) SharedRegion_getSRPtr ((Ptr) virtAddr, region);
i had to add tho following include files to compile the example:
#include <xdc/runtime/Memory.h>
#include <xdc/runtime/IHeap.h>
#include <ti/ipc/SharedRegion.h>
I am receving a srHeap which is non zero, but the example stuck during Memory_alloc.
Can somone please help?
Thanks,
Gabi