Reformatting ACM. All changes are bit-exact in this CL.
TEST=VoE auto-test, audio_coding_module_test; only 15 ms of teststereo_out_1.pcm is not bit-exact with output file of the head revision Review URL: https://webrtc-codereview.appspot.com/937035 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3287 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
#ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_G729_H_
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_MAIN_SOURCE_ACM_G729_H_
|
||||
|
||||
#include "acm_generic_codec.h"
|
||||
#include "webrtc/modules/audio_coding/main/source/acm_generic_codec.h"
|
||||
|
||||
// forward declaration
|
||||
struct G729_encinst_t_;
|
||||
@ -21,27 +21,28 @@ namespace webrtc {
|
||||
|
||||
class ACMG729 : public ACMGenericCodec {
|
||||
public:
|
||||
ACMG729(WebRtc_Word16 codecID);
|
||||
explicit ACMG729(WebRtc_Word16 codec_id);
|
||||
~ACMG729();
|
||||
|
||||
// for FEC
|
||||
ACMGenericCodec* CreateInstance(void);
|
||||
|
||||
WebRtc_Word16 InternalEncode(WebRtc_UWord8* bitstream,
|
||||
WebRtc_Word16* bitStreamLenByte);
|
||||
WebRtc_Word16* bitstream_len_byte);
|
||||
|
||||
WebRtc_Word16 InternalInitEncoder(WebRtcACMCodecParams *codecParams);
|
||||
WebRtc_Word16 InternalInitEncoder(WebRtcACMCodecParams *codec_params);
|
||||
|
||||
WebRtc_Word16 InternalInitDecoder(WebRtcACMCodecParams *codecParams);
|
||||
WebRtc_Word16 InternalInitDecoder(WebRtcACMCodecParams *codec_params);
|
||||
|
||||
protected:
|
||||
WebRtc_Word16 DecodeSafe(WebRtc_UWord8* bitStream,
|
||||
WebRtc_Word16 bitStreamLenByte,
|
||||
WebRtc_Word16 DecodeSafe(WebRtc_UWord8* bitstream,
|
||||
WebRtc_Word16 bitstream_len_byte,
|
||||
WebRtc_Word16* audio,
|
||||
WebRtc_Word16* audioSamples,
|
||||
WebRtc_Word8* speechType);
|
||||
WebRtc_Word16* audio_samples,
|
||||
WebRtc_Word8* speech_type);
|
||||
|
||||
WebRtc_Word32 CodecDef(WebRtcNetEQ_CodecDef& codecDef,
|
||||
const CodecInst& codecInst);
|
||||
WebRtc_Word32 CodecDef(WebRtcNetEQ_CodecDef& codec_def,
|
||||
const CodecInst& codec_inst);
|
||||
|
||||
void DestructEncoderSafe();
|
||||
|
||||
@ -51,18 +52,18 @@ class ACMG729 : public ACMGenericCodec {
|
||||
|
||||
WebRtc_Word16 InternalCreateDecoder();
|
||||
|
||||
void InternalDestructEncoderInst(void* ptrInst);
|
||||
void InternalDestructEncoderInst(void* ptr_inst);
|
||||
|
||||
WebRtc_Word16 EnableDTX();
|
||||
|
||||
WebRtc_Word16 DisableDTX();
|
||||
|
||||
WebRtc_Word32 ReplaceInternalDTXSafe(const bool replaceInternalDTX);
|
||||
WebRtc_Word32 ReplaceInternalDTXSafe(const bool replace_internal_dtx);
|
||||
|
||||
WebRtc_Word32 IsInternalDTXReplacedSafe(bool* internalDTXReplaced);
|
||||
WebRtc_Word32 IsInternalDTXReplacedSafe(bool* internal_dtx_replaced);
|
||||
|
||||
G729_encinst_t_* _encoderInstPtr;
|
||||
G729_decinst_t_* _decoderInstPtr;
|
||||
G729_encinst_t_* encoder_inst_ptr_;
|
||||
G729_decinst_t_* decoder_inst_ptr_;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user