search for: celt_alloc

Displaying 3 results from an estimated 3 matches for "celt_alloc".

2010 Dec 03
1
memory violation in mode_create() !
? There seems to be a memory violation when calling celt_mode_create(48000, 240). ? The function compute_pulse_cache() calls celt_alloc (the second one, bits=celt_alloc()) in order to allocate 343 byte, but it is using about 872 bytes at that location, which will be deleted by the following allocations. ? In this case the following encoder call crashes at first run. ? Sorry, my time is very limited, I cannot trace this any further...
2010 Dec 01
1
stack + heap sizes
...e need 4.5/9.0 kB for enc/dec per channel. But are those sizes really independent of any settings, like frame_size, bitrate, complexity, etc. ? ? at least in our configuration I find these requirements:? ?- native stack: < 2.1kB (enc or dec) measured by RealView Profiler ?- heap: (summing up the celt_alloc calls): ???? mode_create: 2430 ???? enc_create: 10284 ???? dec_create: 17568 ?- GLOBAL_STACK_SIZE: ???? not sure! (default = 100k ???) ???? 2k is not enough, 5k is ok. ? our config: ?- version = 0.9.1 ?- ARM9, FIXED_POINT, DOUBLE_PRECISION ?- f<s> = 48kHz ?- frame_size = 240 (p.ch.) (--> 5...
2009 Jul 22
2
Allocating all memory up front
Hi guys, I'm currently working on a CELT implementation for FMOD, and one of the things we want to do is have all memory required allocated beforehand. This is before we have any information about what sounds will be played. We would like to create all of our CELTDecode instances up front. Because celt_mode_create() requires a sample rate and number of channels passed in, this