This feature was added in Codec Engine 2.00.

When creating the algorithm, an optional "argument string" can be
appended to the _name_ of the alg.  In CE 2.00, the name can be up to 3
parts separated by a colon ':'.  The syntax is "name:priority:flag".

The API Reference Guide describes this in a bit of detail (e.g., look at
the "Remarks" section of AUDDEC1_create() here:
https://www-a.ti.com/downloads/sds_support/targetcontent/CE/ce_2_00/code
c_engine_2_00/docs/html/group__ti__sdo__ce__audio1___a_u_d_d_e_c1.html#g
ea018c45115cbd0a8770533652d64605) 

In short, to create an xDM 1.0 audio decoder with all its memory in
external, you create it like this:

hAudDec = AUDDEC1_create(hEngine, "codecname::1", NULL);

Hope that helps!

Chris 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Kumar Brajbhushan
> Sent: Thursday, February 07, 2008 9:53 PM
> To: [email protected]
> Subject: How to control memory space used for instance creation?
> 
> Hi,
> 
> We have come across instances when application integrator 
> would like to
> control memory-space used for instance creation of an Algorithm. I am
> looking for ways application can achieve this in codec engine.
> 
> For example let us assume that in a system two algorithms A1 
> and A2 are
> there and both ask for internal memories (via algAlloc()) and 
> the total
> internal memory available on chip is not sufficient. A1 uses DMA so
> can't work from external memory whereas A2 can work from external but
> will have performance hit. In this case app would like to 
> create A2 from
> external memory although it is asking for internal (via algAlloc).
> 
> If A1 is created before A2, is it guaranteed that A1 gets memory from
> internal and A2 is created from external? If not then what are the
> better ways?
> 
> Best Regards,
> Kumar
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to