Home
last modified time | relevance | path

Searched refs:WebRtc_Word16 (Results 1 – 25 of 145) sorted by relevance

123456

/external/webrtc/src/common_audio/signal_processing/include/
Dsignal_processing_library.h38 (((WebRtc_Word16)a >= 0) ? ((WebRtc_Word16)a) : -((WebRtc_Word16)a))
48 ((((WebRtc_Word16 *)a)[nr >> 1]) >> (((nr + 1) & 0x1) * 8) & 0x00ff)
50 ((WebRtc_Word16 *)d_ptr)[index >> 1] = \
51 ((((WebRtc_Word16 *)d_ptr)[index >> 1]) \
55 ((((WebRtc_Word16 *)(a))[(nr) >> 1]) >> (((nr) & 0x1) * 8) & 0x00ff)
57 ((WebRtc_Word16 *)(d_ptr))[(index) >> 1] = \
58 ((((WebRtc_Word16 *)(d_ptr))[(index) >> 1]) \
78 ((WebRtc_Word32)(WebRtc_Word16)(a) * (WebRtc_UWord16)(b))
87 ((WebRtc_Word32) (((WebRtc_Word16)(a)) * ((WebRtc_Word16)(b))))
96 (WebRtc_Word16)(a32 >> 16)), b32) + \
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/interface/
Disacfix.h38 WebRtc_Word16 WebRtcIsacfix_AssignSize(int *sizeinbytes);
55 WebRtc_Word16 WebRtcIsacfix_Assign(ISACFIX_MainStruct **inst,
71 WebRtc_Word16 WebRtcIsacfix_Create(ISACFIX_MainStruct **ISAC_main_inst);
86 WebRtc_Word16 WebRtcIsacfix_Free(ISACFIX_MainStruct *ISAC_main_inst);
107 WebRtc_Word16 WebRtcIsacfix_EncoderInit(ISACFIX_MainStruct *ISAC_main_inst,
108 WebRtc_Word16 CodingMode);
132 WebRtc_Word16 WebRtcIsacfix_Encode(ISACFIX_MainStruct *ISAC_main_inst,
133 const WebRtc_Word16 *speechIn,
134 WebRtc_Word16 *encoded);
164 WebRtc_Word16 WebRtcIsacfix_EncodeNb(ISACFIX_MainStruct *ISAC_main_inst,
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/
Dstructs.h33 WebRtc_Word16 full; /* 0 - first byte in memory filled, second empty*/
45 WebRtc_Word16 full; /* 0 - first byte in memory filled, second empty*/
53 WebRtc_Word16 DataBufferLoQ0[WINLEN];
54 WebRtc_Word16 DataBufferHiQ0[WINLEN];
59 WebRtc_Word16 CorrBufLoQdom[ORDERLO+1];
60 WebRtc_Word16 CorrBufHiQdom[ORDERHI+1];
73 WebRtc_Word16 PostStateLoGQ0[ORDERLO+1];
74 WebRtc_Word16 PostStateHiGQ0[ORDERHI+1];
93 WebRtc_Word16 INLABUF1_fix[QLOOKAHEAD];
94 WebRtc_Word16 INLABUF2_fix[QLOOKAHEAD];
[all …]
Dcodec.h32 WebRtc_Word16 WebRtcIsacfix_DecodeImpl(WebRtc_Word16 *signal_out16,
34 WebRtc_Word16 *current_framesamples);
36 WebRtc_Word16 WebRtcIsacfix_DecodePlcImpl(WebRtc_Word16 *decoded,
38 WebRtc_Word16 *current_framesample );
40 int WebRtcIsacfix_EncodeImpl(WebRtc_Word16 *in,
43 WebRtc_Word16 CodingMode);
70 void WebRtcIsacfix_Time2Spec(WebRtc_Word16 *inre1Q9,
71 WebRtc_Word16 *inre2Q9,
72 WebRtc_Word16 *outre,
73 WebRtc_Word16 *outim);
[all …]
Dpitch_estimator.h23 void WebRtcIsacfix_PitchAnalysis(const WebRtc_Word16 *in, /* PITCH_FRAME_LEN samples …
24WebRtc_Word16 *outQ0, /* PITCH_FRAME_LEN+QLOOKAHEAD samples */
26 WebRtc_Word16 *lagsQ7,
27 WebRtc_Word16 *PitchGains_Q12);
29 void WebRtcIsacfix_InitialPitch(const WebRtc_Word16 *in,
31 WebRtc_Word16 *qlags);
33 void WebRtcIsacfix_PitchFilter(WebRtc_Word16 *indatFix,
34 WebRtc_Word16 *outdatQQ,
36 WebRtc_Word16 *lagsQ7,
37 WebRtc_Word16 *gainsQ12,
[all …]
Dentropy_coding.h25 WebRtc_Word16 WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata,
26 WebRtc_Word16 *frQ7,
27 WebRtc_Word16 *fiQ7,
28 WebRtc_Word16 AvgPitchGain_Q12);
31 int WebRtcIsacfix_EncodeSpec(const WebRtc_Word16 *fr,
32 const WebRtc_Word16 *fi,
34 WebRtc_Word16 AvgPitchGain_Q12);
41 WebRtc_Word16 *outmodel);
44 WebRtc_Word16 *LPCCoef_loQ15,
45 WebRtc_Word16 *LPCCoef_hiQ15,
[all …]
Dbandwidth_estimator.h62 const WebRtc_Word16 frameSize,
65 const WebRtc_Word16 pksize,
69 WebRtc_Word16 WebRtcIsacfix_UpdateUplinkBwRec(BwEstimatorstr *bwest_str,
70 const WebRtc_Word16 Index);
90 WebRtc_Word16 WebRtcIsacfix_GetUplinkBandwidth(const BwEstimatorstr *bwest_str);
93 WebRtc_Word16 WebRtcIsacfix_GetDownlinkMaxDelay(const BwEstimatorstr *bwest_str);
96 WebRtc_Word16 WebRtcIsacfix_GetUplinkMaxDelay(const BwEstimatorstr *bwest_str);
103 WebRtc_Word16 StreamSize, /* bytes in bitstream */
104 const WebRtc_Word16 FrameLen, /* ms per frame */
105 … const WebRtc_Word16 BottleNeck, /* bottle neck rate; excl headers (bps) */
[all …]
Dlpc_masking_model.c27 WebRtc_Word16 *a16, /* Q11 */ in WebRtcSpl_AToK_JSK()
28 WebRtc_Word16 useOrder, in WebRtcSpl_AToK_JSK()
29 WebRtc_Word16 *k16 /* Q15 */ in WebRtcSpl_AToK_JSK()
36 WebRtc_Word16 tmp_inv_denum16; in WebRtcSpl_AToK_JSK()
42 … tmp_inv_denum16 = (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W32(tmp_inv_denum32, 15); // (1 - k^2) in Q15 in WebRtcSpl_AToK_JSK()
52 a16[k] = (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W32(tmp32[k], 1); //Q12>>1 => Q11 in WebRtcSpl_AToK_JSK()
56 k16[m-1] = (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W32(tmp32[m], 3); //Q12<<3 => Q15 in WebRtcSpl_AToK_JSK()
66 WebRtc_Word16 WebRtcSpl_LevinsonW32_JSK( in WebRtcSpl_LevinsonW32_JSK()
68 WebRtc_Word16 *A, /* (o) A[0..order] LPC coefficients (Q11) */ in WebRtcSpl_LevinsonW32_JSK()
69 WebRtc_Word16 *K, /* (o) K[0...order-1] Reflection coefficients (Q15) */ in WebRtcSpl_LevinsonW32_JSK()
[all …]
Dpitch_filter.c28 static const WebRtc_Word16 kDivFactor = 6553;
31 static const WebRtc_Word16 kDampFilter[PITCH_DAMPORDER] = {
37 static const WebRtc_Word16 kIntrpCoef[PITCH_FRACS][PITCH_FRACORDER] = {
51 WebRtc_Word16 gain,
53 WebRtc_Word16 sign,
54 WebRtc_Word16* inputState,
55 WebRtc_Word16* outputBuf2,
56 const WebRtc_Word16* coefficient,
57 WebRtc_Word16* inputBuf,
58 WebRtc_Word16* outputBuf,
[all …]
Disacfix.c38 WebRtc_Word16 WebRtcIsacfix_AssignSize(int *sizeinbytes) { in WebRtcIsacfix_AssignSize()
39 *sizeinbytes=sizeof(ISACFIX_SubStruct)*2/sizeof(WebRtc_Word16); in WebRtcIsacfix_AssignSize()
52 WebRtc_Word16 WebRtcIsacfix_Assign(ISACFIX_MainStruct **inst, void *ISACFIX_inst_Addr) { in WebRtcIsacfix_Assign()
80 WebRtc_Word16 WebRtcIsacfix_Create(ISACFIX_MainStruct **ISAC_main_inst) in WebRtcIsacfix_Create()
108 WebRtc_Word16 WebRtcIsacfix_CreateInternal(ISACFIX_MainStruct *ISAC_main_inst) in WebRtcIsacfix_CreateInternal()
142 WebRtc_Word16 WebRtcIsacfix_Free(ISACFIX_MainStruct *ISAC_main_inst) in WebRtcIsacfix_Free()
160 WebRtc_Word16 WebRtcIsacfix_FreeInternal(ISACFIX_MainStruct *ISAC_main_inst) in WebRtcIsacfix_FreeInternal()
206 WebRtc_Word16 WebRtcIsacfix_EncoderInit(ISACFIX_MainStruct *ISAC_main_inst, in WebRtcIsacfix_EncoderInit()
207 WebRtc_Word16 CodingMode) in WebRtcIsacfix_EncoderInit()
210 WebRtc_Word16 statusInit; in WebRtcIsacfix_EncoderInit()
[all …]
Dlattice.c92 void WebRtcIsacfix_NormLatticeFilterMa(WebRtc_Word16 orderCoef, in WebRtcIsacfix_NormLatticeFilterMa()
94 WebRtc_Word16 *lat_inQ0, in WebRtcIsacfix_NormLatticeFilterMa()
95 WebRtc_Word16 *filt_coefQ15, in WebRtcIsacfix_NormLatticeFilterMa()
97 WebRtc_Word16 lo_hi, in WebRtcIsacfix_NormLatticeFilterMa()
98 WebRtc_Word16 *lat_outQ9) in WebRtcIsacfix_NormLatticeFilterMa()
100 WebRtc_Word16 sthQ15[MAX_AR_MODEL_ORDER]; in WebRtcIsacfix_NormLatticeFilterMa()
101 WebRtc_Word16 cthQ15[MAX_AR_MODEL_ORDER]; in WebRtcIsacfix_NormLatticeFilterMa()
104 WebRtc_Word16 temp2,temp3; in WebRtcIsacfix_NormLatticeFilterMa()
105 WebRtc_Word16 ord_1 = orderCoef+1; in WebRtcIsacfix_NormLatticeFilterMa()
109 WebRtc_Word16 gain16; in WebRtcIsacfix_NormLatticeFilterMa()
[all …]
Ddecode_plc.c36 static WebRtc_Word16 plc_filterma_Fast( in plc_filterma_Fast()
37 WebRtc_Word16 *In, /* (i) Vector to be filtered. InOut[-orderCoef+1] in plc_filterma_Fast()
39 WebRtc_Word16 *Out, /* (o) Filtered vector */ in plc_filterma_Fast()
40 WebRtc_Word16 *B, /* (i) The filter coefficients (in Q0) */ in plc_filterma_Fast()
41 WebRtc_Word16 Blen, /* (i) Number of B coefficients */ in plc_filterma_Fast()
42 WebRtc_Word16 len, /* (i) Number of samples to be filtered */ in plc_filterma_Fast()
43 WebRtc_Word16 reduceDecay, in plc_filterma_Fast()
44 WebRtc_Word16 decay, in plc_filterma_Fast()
45 WebRtc_Word16 rshift ) in plc_filterma_Fast()
55 G_CONST WebRtc_Word16 *b_ptr = &B[0]; in plc_filterma_Fast()
[all …]
Dpitch_estimator.c27 static const WebRtc_Word16 kLogLagWinQ8[3] = {
32 static const WebRtc_Word16 kACoefQ12[3] = {
41 WebRtc_Word16 frac; in Log2Q8()
44 …frac=(WebRtc_Word16)WEBRTC_SPL_RSHIFT_W32(((WebRtc_UWord32)(WEBRTC_SPL_LSHIFT_W32(x, zeros))&0x7FF… in Log2Q8()
52 static __inline WebRtc_Word16 Exp2Q10(WebRtc_Word16 x) { // Both in and out in Q10 in Exp2Q10()
54 WebRtc_Word16 tmp16_1, tmp16_2; in Exp2Q10()
56 tmp16_2=(WebRtc_Word16)(0x0400|(x&0x03FF)); in Exp2Q10()
57 tmp16_1=-(WebRtc_Word16)WEBRTC_SPL_RSHIFT_W16(x,10); in Exp2Q10()
59 return (WebRtc_Word16) WEBRTC_SPL_RSHIFT_W16(tmp16_2, tmp16_1); in Exp2Q10()
61 return (WebRtc_Word16) WEBRTC_SPL_LSHIFT_W16(tmp16_2, -tmp16_1); in Exp2Q10()
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/main/interface/
Disac.h45 WebRtc_Word16 WebRtcIsac_AssignSize(
64 WebRtc_Word16 WebRtcIsac_Assign(
82 WebRtc_Word16 WebRtcIsac_Create(
98 WebRtc_Word16 WebRtcIsac_Free(
121 WebRtc_Word16 WebRtcIsac_EncoderInit(
123 WebRtc_Word16 CodingMode);
150 WebRtc_Word16 WebRtcIsac_Encode(
152 const WebRtc_Word16* speechIn,
153 WebRtc_Word16* encoded);
169 WebRtc_Word16 WebRtcIsac_DecoderInit(
[all …]
/external/webrtc/src/common_audio/signal_processing/
Dilbc_specific_functions.c27 void WebRtcSpl_ScaleAndAddVectorsWithRound(WebRtc_Word16 *vector1, WebRtc_Word16 scale1, in WebRtcSpl_ScaleAndAddVectorsWithRound()
28 WebRtc_Word16 *vector2, WebRtc_Word16 scale2, in WebRtcSpl_ScaleAndAddVectorsWithRound()
29 WebRtc_Word16 right_shifts, WebRtc_Word16 *out, in WebRtcSpl_ScaleAndAddVectorsWithRound()
30 WebRtc_Word16 vector_length) in WebRtcSpl_ScaleAndAddVectorsWithRound()
33 WebRtc_Word16 roundVal; in WebRtcSpl_ScaleAndAddVectorsWithRound()
38 out[i] = (WebRtc_Word16)((WEBRTC_SPL_MUL_16_16(vector1[i], scale1) in WebRtcSpl_ScaleAndAddVectorsWithRound()
43 void WebRtcSpl_ReverseOrderMultArrayElements(WebRtc_Word16 *out, G_CONST WebRtc_Word16 *in, in WebRtcSpl_ReverseOrderMultArrayElements()
44 G_CONST WebRtc_Word16 *win, in WebRtcSpl_ReverseOrderMultArrayElements()
45 WebRtc_Word16 vector_length, in WebRtcSpl_ReverseOrderMultArrayElements()
46 WebRtc_Word16 right_shifts) in WebRtcSpl_ReverseOrderMultArrayElements()
[all …]
Dmin_max_operations.c34 WebRtc_Word16 WebRtcSpl_MaxAbsValueW16(const WebRtc_Word16 *vector, WebRtc_Word16 length) in WebRtcSpl_MaxAbsValueW16()
38 WebRtc_Word16 totMax; in WebRtcSpl_MaxAbsValueW16()
40 G_CONST WebRtc_Word16 *tmpvector = vector; in WebRtcSpl_MaxAbsValueW16()
51 totMax = (WebRtc_Word16)WEBRTC_SPL_MIN(tempMax, WEBRTC_SPL_WORD16_MAX); in WebRtcSpl_MaxAbsValueW16()
58 WebRtc_Word16 WebRtcSpl_MaxAbsIndexW16(G_CONST WebRtc_Word16* vector, WebRtc_Word16 length) in WebRtcSpl_MaxAbsIndexW16()
60 WebRtc_Word16 tempMax; in WebRtcSpl_MaxAbsIndexW16()
61 WebRtc_Word16 absTemp; in WebRtcSpl_MaxAbsIndexW16()
62 WebRtc_Word16 tempMaxIndex = 0; in WebRtcSpl_MaxAbsIndexW16()
63 WebRtc_Word16 i = 0; in WebRtcSpl_MaxAbsIndexW16()
64 G_CONST WebRtc_Word16 *tmpvector = vector; in WebRtcSpl_MaxAbsIndexW16()
[all …]
Dvector_scaling_operations.c27 void WebRtcSpl_VectorBitShiftW16(WebRtc_Word16 *res, in WebRtcSpl_VectorBitShiftW16()
28 WebRtc_Word16 length, in WebRtcSpl_VectorBitShiftW16()
29 G_CONST WebRtc_Word16 *in, in WebRtcSpl_VectorBitShiftW16()
30 WebRtc_Word16 right_shifts) in WebRtcSpl_VectorBitShiftW16()
50 WebRtc_Word16 vector_length, in WebRtcSpl_VectorBitShiftW32()
52 WebRtc_Word16 right_shifts) in WebRtcSpl_VectorBitShiftW32()
71 void WebRtcSpl_VectorBitShiftW32ToW16(WebRtc_Word16 *res, in WebRtcSpl_VectorBitShiftW32ToW16()
72 WebRtc_Word16 length, in WebRtcSpl_VectorBitShiftW32ToW16()
74 WebRtc_Word16 right_shifts) in WebRtcSpl_VectorBitShiftW32ToW16()
82 (*res++) = (WebRtc_Word16)((*in++) >> right_shifts); in WebRtcSpl_VectorBitShiftW32ToW16()
[all …]
Dcopy_set_operations.c31 void WebRtcSpl_MemSetW16(WebRtc_Word16 *ptr, WebRtc_Word16 set_value, int length) in WebRtcSpl_MemSetW16()
34 WebRtc_Word16 *arrptr = ptr; in WebRtcSpl_MemSetW16()
53 void WebRtcSpl_MemCpyReversedOrder(WebRtc_Word16* dest, WebRtc_Word16* source, int length) in WebRtcSpl_MemCpyReversedOrder()
56 WebRtc_Word16* destPtr = dest; in WebRtcSpl_MemCpyReversedOrder()
57 WebRtc_Word16* sourcePtr = source; in WebRtcSpl_MemCpyReversedOrder()
65 WebRtc_Word16 WebRtcSpl_CopyFromEndW16(G_CONST WebRtc_Word16 *vector_in, in WebRtcSpl_CopyFromEndW16()
66 WebRtc_Word16 length, in WebRtcSpl_CopyFromEndW16()
67 WebRtc_Word16 samples, in WebRtcSpl_CopyFromEndW16()
68 WebRtc_Word16 *vector_out) in WebRtcSpl_CopyFromEndW16()
76 WebRtc_Word16 WebRtcSpl_ZerosArrayW16(WebRtc_Word16 *vector, WebRtc_Word16 length) in WebRtcSpl_ZerosArrayW16()
[all …]
/external/webrtc/src/modules/audio_processing/aecm/
Daecm_core.h100 extern const WebRtc_Word16 WebRtcAecm_kSqrtHanning[];
103 WebRtc_Word16 real;
104 WebRtc_Word16 imag;
120 WebRtc_Word16 farBuf[FAR_BUF_LEN];
122 WebRtc_Word16 mult;
134 WebRtc_Word16 nlpFlag;
135 WebRtc_Word16 fixedDelay;
139 WebRtc_Word16 dfaCleanQDomain;
140 WebRtc_Word16 dfaCleanQDomainOld;
141 WebRtc_Word16 dfaNoisyQDomain;
[all …]
/external/webrtc/src/common_audio/vad/
Dvad_core.h25 WebRtc_Word16 vad;
27 WebRtc_Word16 noise_means[NUM_TABLE_VALUES];
28 WebRtc_Word16 speech_means[NUM_TABLE_VALUES];
29 WebRtc_Word16 noise_stds[NUM_TABLE_VALUES];
30 WebRtc_Word16 speech_stds[NUM_TABLE_VALUES];
33 WebRtc_Word16 over_hang; // Over Hang
34 WebRtc_Word16 num_of_speech;
36 WebRtc_Word16 index_vector[16 * NUM_CHANNELS];
37 WebRtc_Word16 low_value_vector[16 * NUM_CHANNELS];
39 WebRtc_Word16 mean_value[NUM_CHANNELS];
[all …]
/external/webrtc/src/modules/audio_processing/agc/
Danalog_agc.h38 static const WebRtc_Word16 kMsecSpeechInner = 520;
39 static const WebRtc_Word16 kMsecSpeechOuter = 340;
41 static const WebRtc_Word16 kNormalVadThreshold = 400;
43 static const WebRtc_Word16 kAlphaShortTerm = 6; // 1 >> 6 = 0.0156
44 static const WebRtc_Word16 kAlphaLongTerm = 10; // 1 >> 10 = 0.000977
50 WebRtc_Word16 compressionGaindB; // Fixed gain level in dB
51 WebRtc_Word16 targetLevelDbfs; // Target level in -dBfs of envelope (default -3)
52 WebRtc_Word16 agcMode; // Hard coded mode (adaptAna/adaptDig/fixedDig)
58 WebRtc_Word16 initFlag;
59 WebRtc_Word16 lastError;
[all …]
Ddigital_agc.h28 WebRtc_Word16 HPstate;
29 WebRtc_Word16 counter;
30 WebRtc_Word16 logRatio; // log( P(active) / P(inactive) ) (Q10)
31 WebRtc_Word16 meanLongTerm; // Q10
33 WebRtc_Word16 stdLongTerm; // Q10
34 WebRtc_Word16 meanShortTerm; // Q10
36 WebRtc_Word16 stdShortTerm; // Q10
45 WebRtc_Word16 gatePrevious;
46 WebRtc_Word16 agcMode;
55 WebRtc_Word32 WebRtcAgc_InitDigital(DigitalAgc_t *digitalAgcInst, WebRtc_Word16 agcMode);
[all …]
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
Dencode_lpc_swb.c47 WebRtc_Word16
50 WebRtc_Word16 bandwidth) in WebRtcIsac_RemoveLarMean()
52 WebRtc_Word16 coeffCntr; in WebRtcIsac_RemoveLarMean()
53 WebRtc_Word16 vecCntr; in WebRtcIsac_RemoveLarMean()
54 WebRtc_Word16 numVec; in WebRtcIsac_RemoveLarMean()
101 WebRtc_Word16
105 WebRtc_Word16 bandwidth) in WebRtcIsac_DecorrelateIntraVec()
109 WebRtc_Word16 rowCntr; in WebRtcIsac_DecorrelateIntraVec()
110 WebRtc_Word16 colCntr; in WebRtcIsac_DecorrelateIntraVec()
111 WebRtc_Word16 larVecCntr; in WebRtcIsac_DecorrelateIntraVec()
[all …]
Dencode_lpc_swb.h43 WebRtc_Word16 WebRtcIsac_RemoveLarMean(
45 WebRtc_Word16 bandwidth);
63 WebRtc_Word16 WebRtcIsac_DecorrelateIntraVec(
66 WebRtc_Word16 bandwidth);
86 WebRtc_Word16 WebRtcIsac_DecorrelateInterVec(
89 WebRtc_Word16 bandwidth);
109 WebRtc_Word16 bandwidth);
125 WebRtc_Word16 WebRtcIsac_CorrelateIntraVec(
128 WebRtc_Word16 bandwidth);
144 WebRtc_Word16 WebRtcIsac_CorrelateInterVec(
[all …]
/external/webrtc/src/modules/audio_processing/agc/interface/
Dgain_control.h42 WebRtc_Word16 targetLevelDbfs; // default 3 (-3 dBOv)
43 WebRtc_Word16 compressionGaindB; // default 9 dB
68 const WebRtc_Word16* inFar,
69 WebRtc_Word16 samples);
95 WebRtc_Word16* inMic,
96 WebRtc_Word16* inMic_H,
97 WebRtc_Word16 samples);
126 WebRtc_Word16* inMic,
127 WebRtc_Word16* inMic_H,
128 WebRtc_Word16 samples,
[all …]

123456