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

Usage of Codec Reinit

Hello,

I am wondering if the USCManual is correct in how it uses Reinit. Below is how the manual uses it.

/*Now we change bitrate on fly*/
pInfo->params.modes.bitrate = 6400; /*The lowest bitrate for G729I codec*/
if(USC_NoError != USC_Gxxx_Fnxs->std.Control(&pInfo->params.modes, hUSCEncoder)) exit(6);
/*Some processing with new bitrate*/
/*Now we reinitialize codec instance*/
if(USC_NoError != USC_Gxxx_Fnxs->std.Reinit(&pInfo->params.modes,hUSCEncoder)) exit(7);

Why is processing done before Reinit is called? I would think processing would have to be done after the codec is reinitialized with the new bit rate.
0 Kudos
1 Reply
Highlighted
8 Views


What kind of processing do you mean? Control method is to set value of internal variables in codec's internal state.

Vladimir
0 Kudos