Forums - FAQ: Modifying Stack for Audio PP and Decoder Dynamic Services

1 post / 0 new
FAQ: Modifying Stack for Audio PP and Decoder Dynamic Services
brianp
Join Date: 5 Dec 12
Posts: 41
Posted: Thu, 2013-10-10 18:29

How to change Stack Size for Audio PP Dynamic Services?

Whenever a dynamic service thread is spawned, it requires a thread stack size to be defined. By default, Audio PP Services have thread stack size as 8*1024. Stack size requirement of audio processing dynamic service is based on a topology and modules in it. Default stack size can be changed by updating the THREAD_STACK_SIZE variable defined in audproc_svc.cpp

Note: It is highly recommended to use heap memory (dynamic allocation) whenever possible instead of stack memory

 

How to change Stack Size for Audio Decoder Services?

To set stack size for Decoder Dynamic Services, every decoder has an enum variable "eIcapiThreadStackSize" which is set inside Decode CAPI and fetched using GetParam call at the time of CAPI initialization. Hence, the CAPI should specify the stack size for every decoder module.

For PCM decoding, the thread stack size is set to 2048 bytes.

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.