[CELT-dev] GLOBAL_STACK_SIZE
Jean-Marc Valin
jean-marc.valin at usherbrooke.ca
Tue Jun 8 04:28:48 PDT 2010
Hi Mike,
On 10-06-07 06:08 PM, Mike Hooper wrote:
> Thanks for the feedback. But I'm still a bit confused on a couple of things:
> 1. The TI compiler does not support alloc(), so I have #undef USE_ALLOCA.
Please complain to your vendor about adding either alloca() or C99
variable-size arrays :-)
> 2. The TI compiler does support calloc(), so I am using
> celt_alloc_scratch(GLOBAL_STACK_SIZE), where GLOBAL_STACK_SIZE = 10000bytes.
On that one I guess you'll have to evaluate the minimum size you need
for the encoding mode you're using.
> 3. What confuses me is the following code in modes.c which seems to dictate
> the need for "global_stack" to be non-NULL:
>
> #if !defined(VAR_ARRAYS)&& !defined(USE_ALLOCA)
> if (global_stack==NULL)
> {
> celt_free(global_stack);
> goto failure;
> }
>
> Am I misunderstanding something here?
I have to admit I'm just as confused as you are on this one. Need to
check further.
Cheers,
Jean-Marc
More information about the celt-dev
mailing list