Re: [Ekiga-list] G729 codec
- From: Jure Petrovic <fonz siol net>
- To: Craig Southeren <craigs postincrement com>
- Cc: ekiga-list gnome org
- Subject: Re: [Ekiga-list] G729 codec
- Date: Thu, 26 Apr 2007 17:35:29 +0200
I noted RECOMENDED_FRAMES_PER_PACKET and MAX_FRAMES_PER_PACKET defines
in plugin information structure, but changing these values by itself did
not give any results.
So, if I understand you correctly, encode function does NOT get called
for every frame in packet.
Let us take for example g729 with 10msec sample and 2 frames per packet.
Our encode function in this case would have to take 320 bytes (2 * PCM16
sample) and output 20 bytes (2 * G729 sample). Is that correct?
Is memory for encoded data allocated in regard to toLen variable?
Thank you for help,
Jure Petrovic
On Thu, 2007-04-26 at 18:25 +1000, Craig Southeren wrote:
> The codec advertises the recommended number of frames per packet in
> the
> plugin tables. OPAL will then negotiate the correct number of frames
> with the remote end, and then use that number to ensure the correct
> amount of PCM data gets sent to the codec.
>
> The encoder function should consume the maximum amount of PCM data
> and
> generate output frames appropriately.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]