Welcome Guest ( Log In | Register )

Any suggestions on minimising tiny encoderís heap usage on ARM7?
post Jan 10 2012, 00:46
Post #1

Group: Members
Posts: 4
Joined: 10-January 12
Member No.: 96332

I'm working with an LPC2387 chip (72MHz) and a quite limited amount of RAM, and I need to run tinyencoder on it. 'As is', the malloc calls to create buffer space in pack_audio() (in tinypack.c) fail, because there isn't enough heap space. Any suggestions to reduce the heap footprint as much as possible?

The audio data I'm working with is 8KHz 16-bit, and I'm using the TinyEncoder source from the Wavpack download page. I suspect I may be going about this the wrong way since the readme says there is no malloc/free usage...
Go to the top of the page
+Quote Post
Start new topic
post Jan 10 2012, 07:59
Post #2

WavPack Developer

Group: Developer (Donating)
Posts: 1351
Joined: 3-January 02
From: San Francisco CA
Member No.: 900

One other thing to keep in mind is that the headers are larger for the "higher" compression modes, so those modes are less useful at smaller block sizes.

In fact, for very small blocks, the "fast" mode will [unintuitively] provide the best compression!
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 26th November 2015 - 00:47