摘要 |
Aspects of the invention provide a method and system for allocating memory during the encoding of an uncompressed datastream. An embodiment of the invention provides dynamic resizing of a packet buffer utilized for packet encoding based on a selected voice or data compression algorithm. Accordingly, an amount of memory allocated for a compression algorithm operating data, operating code and/or compressed data may be dynamically changed depending on a currently utilized encoding or compression algorithm. For example, dynamic memory allocation may be utilized during an existing telephone call depending on factors such as existing bandwidth requirements of a network over which the compressed voice or data may be delivered. A congested network will likely switch to a lower bit rate encoder such as a G.729, at the expense of voice quality, in order to reduce network traffic.
|