Add some virtual and OVERRIDEs in webrtc/modules/audio_coding/
BUG=163 TBR=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1900004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4447 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -25,17 +25,19 @@ enum IsacCodingMode {
|
||||
class ACMISAC : public ACMGenericCodec {
|
||||
public:
|
||||
explicit ACMISAC(int16_t codec_id);
|
||||
~ACMISAC();
|
||||
virtual ~ACMISAC();
|
||||
|
||||
// for FEC
|
||||
ACMGenericCodec* CreateInstance(void);
|
||||
virtual ACMGenericCodec* CreateInstance(void) OVERRIDE;
|
||||
|
||||
int16_t InternalEncode(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte);
|
||||
virtual int16_t InternalEncode(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte) OVERRIDE;
|
||||
|
||||
int16_t InternalInitEncoder(WebRtcACMCodecParams *codec_params);
|
||||
virtual int16_t InternalInitEncoder(
|
||||
WebRtcACMCodecParams* codec_params) OVERRIDE;
|
||||
|
||||
int16_t InternalInitDecoder(WebRtcACMCodecParams *codec_params);
|
||||
virtual int16_t InternalInitDecoder(
|
||||
WebRtcACMCodecParams* codec_params) OVERRIDE;
|
||||
|
||||
int16_t DeliverCachedIsacData(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte,
|
||||
@ -51,55 +53,56 @@ class ACMISAC : public ACMGenericCodec {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int16_t UpdateDecoderSampFreq(int16_t codec_id);
|
||||
virtual int16_t UpdateDecoderSampFreq(int16_t codec_id) OVERRIDE;
|
||||
|
||||
int16_t UpdateEncoderSampFreq(uint16_t samp_freq_hz);
|
||||
virtual int16_t UpdateEncoderSampFreq(uint16_t samp_freq_hz) OVERRIDE;
|
||||
|
||||
int16_t EncoderSampFreq(uint16_t& samp_freq_hz);
|
||||
virtual int16_t EncoderSampFreq(uint16_t& samp_freq_hz) OVERRIDE;
|
||||
|
||||
int32_t ConfigISACBandwidthEstimator(
|
||||
virtual int32_t ConfigISACBandwidthEstimator(
|
||||
const uint8_t init_frame_size_msec,
|
||||
const uint16_t init_rate_bit_per_sec,
|
||||
const bool enforce_frame_size);
|
||||
const bool enforce_frame_size) OVERRIDE;
|
||||
|
||||
int32_t SetISACMaxPayloadSize(
|
||||
const uint16_t max_payload_len_bytes);
|
||||
virtual int32_t SetISACMaxPayloadSize(
|
||||
const uint16_t max_payload_len_bytes) OVERRIDE;
|
||||
|
||||
int32_t SetISACMaxRate(const uint32_t max_rate_bit_per_sec);
|
||||
virtual int32_t SetISACMaxRate(const uint32_t max_rate_bit_per_sec) OVERRIDE;
|
||||
|
||||
int16_t REDPayloadISAC(const int32_t isac_rate,
|
||||
virtual int16_t REDPayloadISAC(const int32_t isac_rate,
|
||||
const int16_t isac_bw_estimate,
|
||||
uint8_t* payload,
|
||||
int16_t* payload_len_bytes);
|
||||
int16_t* payload_len_bytes) OVERRIDE;
|
||||
|
||||
protected:
|
||||
int16_t DecodeSafe(uint8_t* bitstream,
|
||||
virtual int16_t DecodeSafe(uint8_t* bitstream,
|
||||
int16_t bitstream_len_byte,
|
||||
int16_t* audio,
|
||||
int16_t* audio_samples,
|
||||
int8_t* speech_type);
|
||||
int8_t* speech_type) OVERRIDE;
|
||||
|
||||
int32_t CodecDef(WebRtcNetEQ_CodecDef& codec_def,
|
||||
const CodecInst& codec_inst);
|
||||
virtual int32_t CodecDef(WebRtcNetEQ_CodecDef& codec_def,
|
||||
const CodecInst& codec_inst) OVERRIDE;
|
||||
|
||||
void DestructEncoderSafe();
|
||||
virtual void DestructEncoderSafe() OVERRIDE;
|
||||
|
||||
void DestructDecoderSafe();
|
||||
virtual void DestructDecoderSafe() OVERRIDE;
|
||||
|
||||
int16_t SetBitRateSafe(const int32_t bit_rate);
|
||||
virtual int16_t SetBitRateSafe(const int32_t bit_rate) OVERRIDE;
|
||||
|
||||
int32_t GetEstimatedBandwidthSafe();
|
||||
virtual int32_t GetEstimatedBandwidthSafe() OVERRIDE;
|
||||
|
||||
int32_t SetEstimatedBandwidthSafe(int32_t estimated_bandwidth);
|
||||
virtual int32_t SetEstimatedBandwidthSafe(
|
||||
int32_t estimated_bandwidth) OVERRIDE;
|
||||
|
||||
int32_t GetRedPayloadSafe(uint8_t* red_payload,
|
||||
int16_t* payload_bytes);
|
||||
virtual int32_t GetRedPayloadSafe(uint8_t* red_payload,
|
||||
int16_t* payload_bytes) OVERRIDE;
|
||||
|
||||
int16_t InternalCreateEncoder();
|
||||
virtual int16_t InternalCreateEncoder() OVERRIDE;
|
||||
|
||||
int16_t InternalCreateDecoder();
|
||||
virtual int16_t InternalCreateDecoder() OVERRIDE;
|
||||
|
||||
void InternalDestructEncoderInst(void* ptr_inst);
|
||||
virtual void InternalDestructEncoderInst(void* ptr_inst) OVERRIDE;
|
||||
|
||||
int16_t Transcode(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte,
|
||||
@ -107,14 +110,15 @@ class ACMISAC : public ACMGenericCodec {
|
||||
int32_t rate,
|
||||
bool is_red);
|
||||
|
||||
void CurrentRate(int32_t& rate_bit_per_sec);
|
||||
virtual void CurrentRate(int32_t& rate_bit_per_sec) OVERRIDE;
|
||||
|
||||
void UpdateFrameLen();
|
||||
|
||||
bool DecoderParamsSafe(WebRtcACMCodecParams *dec_params,
|
||||
const uint8_t payload_type);
|
||||
virtual bool DecoderParamsSafe(WebRtcACMCodecParams *dec_params,
|
||||
const uint8_t payload_type) OVERRIDE;
|
||||
|
||||
void SaveDecoderParamSafe(const WebRtcACMCodecParams* codec_params);
|
||||
virtual void SaveDecoderParamSafe(
|
||||
const WebRtcACMCodecParams* codec_params) OVERRIDE;
|
||||
|
||||
ACMISACInst* codec_inst_ptr_;
|
||||
bool is_enc_initialized_;
|
||||
|
||||
Reference in New Issue
Block a user