See answers inline below... Regards,
- Rob ________________________________ From: davinci-linux-open-source-bounces+rtivy=ti....@linux.davincidsp.com [mailto:davinci-linux-open-source-bounces+rtivy=ti....@linux.davincidsp.com] On Behalf Of Gopal Sukumar Sent: Thursday, August 06, 2009 12:38 AM To: Gopal Sukumar Cc: DaVinciMailingList Subject: Re: Memory allocation I thought this is a basic question, which the experts out here will be able to answer readily. Thanks, Gopal Sukumar. Gopal Sukumar wrote: Hello all, I am writing a generalized buffer sequencing module for the encoding and multiplexing pipeline. 1. Does Codec Engine OSAL Memory interface (Ref. Memory.h) in the "osal" directory of the Codec Engine use CMEM? The CE Memory interface abstracts various forms of allocation. For the Memory_contigAlloc() API, the Linux implementation calls down to CMEM_alloc(). For the DSP/BIOS implementation, CMEM is not in the picture since DSP/BIOS's MEM_alloc() API satisfies the contiguous allocation model. 2. If not, What is the difference between CMEM APIs and the APIs in Memory.h? All Memory interface APIs boil down to some other system-specific allocation API, depending on the type requested. 3. Which (CMEM APIs or the Codec Engine OSAL Memory interface APIs in Memory.h) one would you recommend to use for this purpose? The CE Memory interface is the correct one to use, for portability and insulation from changes to the underlying allocation interface. Thanks, gopal sukumar ________________________________ http://www.mindtree.com/email/disclaimer.html
_______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
