Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
8 Views

g.729 and g.723.1 lost frame example

In IPP 5.2 speech coding sample there is the following fragment of code that performs PLC:

#define G729_SPEECH_FRAME 80
Ipp16s LostFrame[G729_SPEECH_FRAME]={ 0 };
apiG729Decode(DecObj,(const Ipp8u*)LostFrame,(-1),(Ipp16s*)out->pBuffer);

Why LostFrame array is 160 bytes long? Should it be the size of g.729 frame, ie. 10 bytes?
If the decoder is keeping some state in LostFrame array, should it be allocated per-channel?
If no state is kept - in fact I can't see src parameter is used at all if frametype = -1, can't we just pass src = NULL to apiG729Decode()?
Same for g.723.
0 Kudos
1 Reply
Highlighted
New Contributor II
8 Views

Thank you for pointing this out.

Though 'Losframe' zero padded arraysize was alreadyoptimized in IPP 5.3 for some codecs evidently it was overlooked somewhere. NULL also possible to utilize in many cases.

WBR, Vyacheslav

IPP speech

0 Kudos