Revert 7807 "Removing unused opus wrapper APIs."
> Removing unused opus wrapper APIs. > > WebRtcOpus_DecodeNew(), WebRtcOpus_DecoderInitNew() have become the APIs and are ready to replace old WebRtcOpus_Decode() and WebRtcOpus_DecoderInit(). > > WebRtcOpus_DecodePlcMaster/Slave() are also removed. > > BUG= > R=henrik.lundin@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/28139004 TBR=minyue@webrtc.org Review URL: https://webrtc-codereview.appspot.com/31119004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7809 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -166,7 +166,9 @@ int WebRtcOpus_DecoderChannels(OpusDecInst* inst);
|
||||
* Return value : 0 - Success
|
||||
* -1 - Error
|
||||
*/
|
||||
int16_t WebRtcOpus_DecoderInitNew(OpusDecInst* inst);
|
||||
int16_t WebRtcOpus_DecoderInit(OpusDecInst* inst);
|
||||
int16_t WebRtcOpus_DecoderInitSlave(OpusDecInst* inst);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcOpus_Decode(...)
|
||||
@ -188,12 +190,21 @@ int16_t WebRtcOpus_DecoderInit(OpusDecInst* inst);
|
||||
* Return value : >0 - Samples per channel in decoded vector
|
||||
* -1 - Error
|
||||
*/
|
||||
int16_t WebRtcOpus_DecodeNew(OpusDecInst* inst, const uint8_t* encoded,
|
||||
int16_t encoded_bytes, int16_t* decoded,
|
||||
int16_t* audio_type);
|
||||
int16_t WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded,
|
||||
int16_t encoded_bytes, int16_t* decoded,
|
||||
int16_t* audio_type);
|
||||
int16_t WebRtcOpus_DecodeSlave(OpusDecInst* inst, const uint8_t* encoded,
|
||||
int16_t encoded_bytes, int16_t* decoded,
|
||||
int16_t* audio_type);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcOpus_DecodePlc(...)
|
||||
* TODO(tlegrand): Remove master and slave functions when NetEq4 is in place.
|
||||
* WebRtcOpus_DecodePlcMaster(...)
|
||||
* WebRtcOpus_DecodePlcSlave(...)
|
||||
*
|
||||
* This function processes PLC for opus frame(s).
|
||||
* Input:
|
||||
@ -208,6 +219,10 @@ int16_t WebRtcOpus_Decode(OpusDecInst* inst, const uint8_t* encoded,
|
||||
*/
|
||||
int16_t WebRtcOpus_DecodePlc(OpusDecInst* inst, int16_t* decoded,
|
||||
int16_t number_of_lost_frames);
|
||||
int16_t WebRtcOpus_DecodePlcMaster(OpusDecInst* inst, int16_t* decoded,
|
||||
int16_t number_of_lost_frames);
|
||||
int16_t WebRtcOpus_DecodePlcSlave(OpusDecInst* inst, int16_t* decoded,
|
||||
int16_t number_of_lost_frames);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcOpus_DecodeFec(...)
|
||||
|
||||
Reference in New Issue
Block a user