I need to allocate a big chunk of memory (at least 12MB) to my XDAIS algorithm from the Linux application on my DM8168. At the moment I have something like this in my Linux application:
inBuf = (XDAS_Int8*)Memory_alloc(IFRAMESIZE, &allocParams);
But this only allocates memory out of the small memory area that the cmemk module is told about when I load it. I need to allocate memory from a different segment that has more memory so I thought I'd try to allocate from one of the shared regions.
In this post:
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/224009/789099.aspx
....I'm told about SharedRegion_getHeap and a different form of the Memory_alloc call (maybe only available from the SYSBIOS algorithm???) which has 4 arguments instead of the 2 I've been using above.
If I use SharedRegion_getHeap to allocate memory will this memory be useable by the codec when I pass the address to the algorithm as an argument in my UNIVERSAL_process call? How do I get access to shared memory from Linux?
Sorry if the post is a bit confusing; I'm confused myself about the different forms of Memory_alloc.
Thanks,
Ralph