Home
last modified time | relevance | path

Searched refs:iLBCenc_inst (Results 1 – 21 of 21) sorted by relevance

/external/webrtc/modules/audio_coding/codecs/ilbc/
Dencode.c52 IlbcEncoder *iLBCenc_inst /* (i/o) the general encoder in WebRtcIlbcfix_EncodeImpl() argument
76 int16_t *weightdenumbuf = iLBCenc_inst->weightdenumbuf; in WebRtcIlbcfix_EncodeImpl()
84 residual = &iLBCenc_inst->lpc_buffer[LPC_LOOKBACK+BLOCKL_MAX-iLBCenc_inst->blockl]; in WebRtcIlbcfix_EncodeImpl()
95 start_pos = iLBCenc_inst->start_pos; in WebRtcIlbcfix_EncodeImpl()
96 diff = iLBCenc_inst->diff; in WebRtcIlbcfix_EncodeImpl()
98 if (iLBCenc_inst->section != 0){ in WebRtcIlbcfix_EncodeImpl()
102 last_bit = WebRtcIlbcfix_UnpackBits (iLBCenc_inst->bytes, iLBCbits_inst, iLBCenc_inst->mode); in WebRtcIlbcfix_EncodeImpl()
108 if (iLBCenc_inst->section == 1){ in WebRtcIlbcfix_EncodeImpl()
110 WEBRTC_SPL_MEMCPY_W16 (iLBCenc_inst->past_samples, block, 80); in WebRtcIlbcfix_EncodeImpl()
114 WEBRTC_SPL_MEMCPY_W16 (iLBCenc_inst->past_samples + 80, block, 80); in WebRtcIlbcfix_EncodeImpl()
[all …]
Dinit_encode.c27 IlbcEncoder *iLBCenc_inst, /* (i/o) Encoder instance */ in WebRtcIlbcfix_InitEncode() argument
29 iLBCenc_inst->mode = mode; in WebRtcIlbcfix_InitEncode()
33 iLBCenc_inst->blockl = BLOCKL_30MS; in WebRtcIlbcfix_InitEncode()
34 iLBCenc_inst->nsub = NSUB_30MS; in WebRtcIlbcfix_InitEncode()
35 iLBCenc_inst->nasub = NASUB_30MS; in WebRtcIlbcfix_InitEncode()
36 iLBCenc_inst->lpc_n = LPC_N_30MS; in WebRtcIlbcfix_InitEncode()
37 iLBCenc_inst->no_of_bytes = NO_OF_BYTES_30MS; in WebRtcIlbcfix_InitEncode()
38 iLBCenc_inst->no_of_words = NO_OF_WORDS_30MS; in WebRtcIlbcfix_InitEncode()
39 iLBCenc_inst->state_short_len=STATE_SHORT_LEN_30MS; in WebRtcIlbcfix_InitEncode()
42 iLBCenc_inst->blockl = BLOCKL_20MS; in WebRtcIlbcfix_InitEncode()
[all …]
Dstate_search.c28 IlbcEncoder *iLBCenc_inst, in WebRtcIlbcfix_StateSearch() argument
51 max = WebRtcSpl_MaxAbsValueW16(residual, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
62 WEBRTC_SPL_MEMCPY_W16(residualLong, residual, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
63 …WebRtcSpl_MemSetW16(residualLong + iLBCenc_inst->state_short_len, 0, iLBCenc_inst->state_short_len… in WebRtcIlbcfix_StateSearch()
69 iLBCenc_inst->state_short_len + LPC_FILTERORDER); in WebRtcIlbcfix_StateSearch()
70 …WebRtcSpl_MemSetW16(&sampleMa[iLBCenc_inst->state_short_len + LPC_FILTERORDER], 0, iLBCenc_inst->s… in WebRtcIlbcfix_StateSearch()
74 syntDenum, LPC_FILTERORDER+1, 2 * iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
76 for(k=0;k<iLBCenc_inst->state_short_len;k++){ in WebRtcIlbcfix_StateSearch()
77 sampleAr[k] += sampleAr[k+iLBCenc_inst->state_short_len]; in WebRtcIlbcfix_StateSearch()
81 maxVal=WebRtcSpl_MaxAbsValueW16(sampleAr, iLBCenc_inst->state_short_len); in WebRtcIlbcfix_StateSearch()
[all …]
Dsimple_lpc_analysis.c32 IlbcEncoder *iLBCenc_inst in WebRtcIlbcfix_SimpleLpcAnalysis() argument
45 is=LPC_LOOKBACK+BLOCKL_MAX-iLBCenc_inst->blockl; in WebRtcIlbcfix_SimpleLpcAnalysis()
46 WEBRTC_SPL_MEMCPY_W16(iLBCenc_inst->lpc_buffer+is,data,iLBCenc_inst->blockl); in WebRtcIlbcfix_SimpleLpcAnalysis()
50 for (k = 0; k < iLBCenc_inst->lpc_n; k++) { in WebRtcIlbcfix_SimpleLpcAnalysis()
54 if (k < (iLBCenc_inst->lpc_n - 1)) { in WebRtcIlbcfix_SimpleLpcAnalysis()
57 …WebRtcSpl_ElementwiseVectorMult(windowedData, iLBCenc_inst->lpc_buffer, WebRtcIlbcfix_kLpcWin, BLO… in WebRtcIlbcfix_SimpleLpcAnalysis()
61 …WebRtcSpl_ElementwiseVectorMult(windowedData, iLBCenc_inst->lpc_buffer+is, WebRtcIlbcfix_kLpcAsymW… in WebRtcIlbcfix_SimpleLpcAnalysis()
89 is=LPC_LOOKBACK+BLOCKL_MAX-iLBCenc_inst->blockl; in WebRtcIlbcfix_SimpleLpcAnalysis()
90 WEBRTC_SPL_MEMCPY_W16(iLBCenc_inst->lpc_buffer, in WebRtcIlbcfix_SimpleLpcAnalysis()
91 iLBCenc_inst->lpc_buffer+LPC_LOOKBACK+BLOCKL_MAX-is, is); in WebRtcIlbcfix_SimpleLpcAnalysis()
Dlpc_encode.c37 IlbcEncoder *iLBCenc_inst in WebRtcIlbcfix_LpcEncode() argument
45 WebRtcIlbcfix_SimpleLpcAnalysis(lsf, data, iLBCenc_inst); in WebRtcIlbcfix_LpcEncode()
48 WebRtcIlbcfix_SimpleLsfQ(lsfdeq, lsf_index, lsf, iLBCenc_inst->lpc_n); in WebRtcIlbcfix_LpcEncode()
51 WebRtcIlbcfix_LsfCheck(lsfdeq, LPC_FILTERORDER, iLBCenc_inst->lpc_n); in WebRtcIlbcfix_LpcEncode()
56 lsf, lsfdeq, iLBCenc_inst->lsfold, in WebRtcIlbcfix_LpcEncode()
57 iLBCenc_inst->lsfdeqold, LPC_FILTERORDER, iLBCenc_inst); in WebRtcIlbcfix_LpcEncode()
Dframe_classify.c28 IlbcEncoder *iLBCenc_inst, in WebRtcIlbcfix_FrameClassify() argument
48 max = WebRtcSpl_MaxAbsValueW16(residualFIX, iLBCenc_inst->blockl); in WebRtcIlbcfix_FrameClassify()
58 for (n=(iLBCenc_inst->nsub-1); n>0; n--) { in WebRtcIlbcfix_FrameClassify()
65 maxW32 = WebRtcSpl_MaxValueW32(ssqEn, iLBCenc_inst->nsub - 1); in WebRtcIlbcfix_FrameClassify()
73 if (iLBCenc_inst->mode==20) { in WebRtcIlbcfix_FrameClassify()
78 for (n=(iLBCenc_inst->nsub-1); n>0; n--) { in WebRtcIlbcfix_FrameClassify()
85 pos = WebRtcSpl_MaxIndexW32(ssqEn, iLBCenc_inst->nsub - 1) + 1; in WebRtcIlbcfix_FrameClassify()
Dilbc.c81 int16_t WebRtcIlbcfix_EncoderInit(IlbcEncoderInstance* iLBCenc_inst, in WebRtcIlbcfix_EncoderInit() argument
84 WebRtcIlbcfix_InitEncode((IlbcEncoder*) iLBCenc_inst, mode); in WebRtcIlbcfix_EncoderInit()
91 int WebRtcIlbcfix_Encode(IlbcEncoderInstance* iLBCenc_inst, in WebRtcIlbcfix_Encode() argument
98 if ((len != ((IlbcEncoder*)iLBCenc_inst)->blockl) && in WebRtcIlbcfix_Encode()
102 (len != 2*((IlbcEncoder*)iLBCenc_inst)->blockl) && in WebRtcIlbcfix_Encode()
103 (len != 3*((IlbcEncoder*)iLBCenc_inst)->blockl)) in WebRtcIlbcfix_Encode()
112 (IlbcEncoder*)iLBCenc_inst); in WebRtcIlbcfix_Encode()
115 if(((IlbcEncoder*)iLBCenc_inst)->section == 0) in WebRtcIlbcfix_Encode()
117 pos += ((IlbcEncoder*)iLBCenc_inst)->blockl; in WebRtcIlbcfix_Encode()
119 encpos += ((IlbcEncoder*)iLBCenc_inst)->no_of_words; in WebRtcIlbcfix_Encode()
Dsimple_interpolate_lsf.c42 IlbcEncoder *iLBCenc_inst in WebRtcIlbcfix_SimpleInterpolateLsf() argument
56 if (iLBCenc_inst->mode==30) { in WebRtcIlbcfix_SimpleInterpolateLsf()
78 for (i = 1; i < iLBCenc_inst->nsub; i++) { in WebRtcIlbcfix_SimpleInterpolateLsf()
104 for (i = 0; i < iLBCenc_inst->nsub; i++) { in WebRtcIlbcfix_SimpleInterpolateLsf()
Dabs_quant.c30 IlbcEncoder *iLBCenc_inst, in WebRtcIlbcfix_AbsQuant() argument
58 quantLen[1]=iLBCenc_inst->state_short_len-SUBL; in WebRtcIlbcfix_AbsQuant()
60 quantLen[0]=iLBCenc_inst->state_short_len-SUBL; in WebRtcIlbcfix_AbsQuant()
Dilbc.h111 int16_t WebRtcIlbcfix_EncoderInit(IlbcEncoderInstance* iLBCenc_inst,
133 int WebRtcIlbcfix_Encode(IlbcEncoderInstance* iLBCenc_inst,
Dinit_encode.h30 iLBCenc_inst, /* (i/o) Encoder instance */
Dframe_classify.h24 IlbcEncoder* iLBCenc_inst,
Dencode.h31 IlbcEncoder* iLBCenc_inst /* (i/o) the general encoder
Dsimple_lpc_analysis.h31 IlbcEncoder* iLBCenc_inst
Dabs_quant.h30 IlbcEncoder* iLBCenc_inst,
Dlpc_encode.h35 IlbcEncoder* iLBCenc_inst
Dstate_search.h29 IlbcEncoder* iLBCenc_inst,
Dsimple_interpolate_lsf.h42 IlbcEncoder* iLBCenc_inst
Dcb_search.h23 IlbcEncoder* iLBCenc_inst,
Dcb_search.c37 IlbcEncoder *iLBCenc_inst, in WebRtcIlbcfix_CbSearch() argument
297 if(lTarget==(STATE_LEN-iLBCenc_inst->state_short_len)) { in WebRtcIlbcfix_CbSearch()
/external/webrtc/modules/audio_coding/codecs/ilbc/test/
DiLBC_testprogram.c43 IlbcEncoder *iLBCenc_inst, /* (i/o) Encoder instance */ in encode() argument
49 WebRtcIlbcfix_Encode((uint16_t *)encoded_data, data, iLBCenc_inst); in encode()
51 return (iLBCenc_inst->no_of_bytes); in encode()