<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title></title>
</head>
<body>
​ <br />
hi ​Jean-Marc,<br />
 <br />
thanks for your answer.<br />
But still I am struggling to find a reasonable upper limit for the RAM sizes.<br />
 <br />
You say we need 4.5/9.0 kB for enc/dec per channel.<br />
But are those sizes really independent of any settings, like frame_size, bitrate, complexity, etc. ?<br />
 <br />
at least in our configuration I find these requirements:  <br />
 - native stack: < 2.1kB (enc or dec) measured by RealView Profiler<br />
 - heap: (summing up the celt_alloc calls):<br />
     mode_create: 2430<br />
     enc_create: 10284<br />
     dec_create: 17568<br />
 - GLOBAL_STACK_SIZE:<br />
     not sure! (default = 100k ???) <br />
     2k is not enough, 5k is ok.<br />
 <br />
our config:<br />
 - version = 0.9.1<br />
 - ARM9, FIXED_POINT, DOUBLE_PRECISION<br />
 - f<s> = 48kHz<br />
 - frame_size = 240 (p.ch.) (--> 5ms)  <br />
 - rate = 128 kbit/s (stereo)<br />
 - vbr_rate = 0<br />
 - prediction = 2<br />
 - complexity = 10<br />
 <br />
Why do we need additionally a GLOBAL_STACK_SIZE ?<br />
Could these allocations also be redirected to a common method, like celt_alloc() ?<br />
<br />
It is not really clear to me what is the idea behind the switches VAR_ARRAYS, USE_ALLOCA, GLOBAL_STACK_SIZE and how much RAM must be allocated (how/where?) for any (or at least for our) configuration ?<br />
 <br />
<br />
thanks a lot for your answers,<br />
Marko.<br />
<br />
</body>
</html>