[opus] Memory Size?
Mike Hooper
mihooper at bellsouth.net
Fri Aug 31 10:10:56 PDT 2012
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);
dec = malloc(size);
error = opus_decoder_init(dec, config.Fs, config.channels);
Both the encode decoder init function return no error. However, opus_encode
crashes somewhere deep in the bowels of the function (I cannot determine
where since I have compiler optimizations enabled). Do I need more heap than
what is returned by the above get_size functions?
Thx,
MikeH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20120831/7f1ebda1/attachment.htm
More information about the opus
mailing list