Displaying 3 results from an estimated 3 matches for "opus_alloc_scratch".
2017 Oct 18
4
Global stack on Cortex-M4
...D'opus_alloc(x)=NULL' -D'opus_free(x)=NULL'
Secondly; With the "overide" directives above no dynamic memory
allocation is supposed to happen. However, the following call chain
(obviously) cause a crash:
opus_encode(..)->
opus_encode_native(..)->ALLOC_STACK->opus_alloc_scratch(..)->opus_alloc(..)
Is this a bug or what am I missing here ?
Any advise on how to get a basic encode/decode example working would be
most appriciated.
Thanks !
\Eric
2012 Aug 31
1
Memory Size?
In order to determine the optimum heap size requirements for my embedded
C55xx design, I have used the following to get the encoder and decoder
memory requirements:
size = opus_encoder_get_size(config.channels);
enc = malloc(size);
error = opus_encoder_init(enc, config.Fs, config.channels,
config.application);
size = opus_decoder_get_size(config.channels);
2017 Oct 18
0
Global stack on Cortex-M4
...10/18/2017 01:40 PM, Eric wrote:
> Secondly; With the "overide" directives above no dynamic memory
> allocation is supposed to happen. However, the following call chain
> (obviously) cause a crash:
>
> opus_encode(..)->
> opus_encode_native(..)->ALLOC_STACK->opus_alloc_scratch(..)->opus_alloc(..)
NONTHREADSAFE_PSEUDOSTACK requires a working allocator. You should
select either vararrays or alloca(). Both should work on any gcc-based
Cortex-M toolchain. (For that matter, malloc() and free() should work
fine too, unless you have other reasons to avoid them)