- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What kind of processing do you mean? Control method is to set value of internal variables in codec's internal state.
Vladimir
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page