[speex-dev] Port to uClinux

Ico Doornekamp ico at pruts.nl
Sat May 17 14:00:18 PDT 2003



Hi,

I'm trying a quick port of this terrific codec to uClinux, a Linux-derivate
for  mmu-less systems. I'm particulary interested in the alloc()'s the
library does, and it's stack usage.

In nb_celp.c I found two lines of code doing memory allocation :

nb_celp.c:   st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(float));
nb_celp.c:   st = (DecState*)speex_alloc(sizeof(DecState)+4000*sizeof(float));

Where do these magic numbers 8000 and 4000 come from ? If I decrease those
to 4000 and 2000, my test app still works (just lucky ?). Is there a way to
know what the minimal size should be for a particular bitrate / quality /
etc ?

Regards,

/Ico

<p>
-- 
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Speex-dev mailing list