Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Usage of Codec Reinit

keveenomack
Beginner
282 Views
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
Vladimir_Dudnik
Employee
282 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
Reply