Ring, Chris wrote:
Please read through this thread for some further background:
http://www.mail-archive.com/[email protected]/msg04198.html
That rationalizes _why_ we use CMEM for ARM-side codecs. Ask a followup if you need more info - I'm not sure we have what you want out of the box, but we can talk through it further.

Hello Chris,

looking at this file:

packages/ti/sdo/ce/osal/Memory.h

I see

typedef enum {
    Memory_MALLOC = 0,        /**< malloc()-based allocation */
    Memory_SEG = 1,           /**< DSP/BIOS segment-based allocation */
    Memory_CONTIGPOOL = 2,    /**< Contiguous, pool-based allocation */
    Memory_CONTIGHEAP =3      /**< Contiguous, heap-based allocation */
} Memory_type;

which is used by:

extern Ptr Memory_alloc(UInt size, Memory_AllocParams *params);

So there is some way to malloc inside the CE, but can a codec use that?


Chris

    ------------------------------------------------------------------------
    *From:* [EMAIL PROTECTED]
    [mailto:[EMAIL PROTECTED] *On
    Behalf Of *Omkiran Sharma
    *Sent:* Thursday, May 08, 2008 10:52 AM
    *To:* [email protected]
    *Subject:* Any way for CE to alloc non-cmem memory during create to
    ARM onlycodecs.

    Hi,
      ARM only codecs should have no need for CMEM memory. By default it
    appears that CE now allocates CMEM memory to the local codecs during
    create (ialg based memtab requests). I could find a Memory_type
    enumeration in the osal headers, however I could not figure out if
    there is any way to configure the codec engine such that it will
    give non cmem buffers to the local codec during creation. Is there
    any setting I can set in the cfg file for the same? (Something
    similar to what we do for DSKT2, where we can specify the heap the
    memory can come from)
Regards,
    Omkiran


------------------------------------------------------------------------

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to