Home
last modified time | relevance | path

Searched refs:frame_length (Results 1 – 25 of 45) sorted by relevance

12

/external/webrtc/src/common_audio/vad/
Dwebrtc_vad.c137 WebRtc_Word16 frame_length) in WebRtcVad_Process() argument
160 if ((frame_length != 320) && (frame_length != 640) && (frame_length != 960)) in WebRtcVad_Process()
164 vad = WebRtcVad_CalcVad32khz((VadInstT*)vad_inst, speech_frame, frame_length); in WebRtcVad_Process()
168 if ((frame_length != 160) && (frame_length != 320) && (frame_length != 480)) in WebRtcVad_Process()
172 vad = WebRtcVad_CalcVad16khz((VadInstT*)vad_inst, speech_frame, frame_length); in WebRtcVad_Process()
176 if ((frame_length != 80) && (frame_length != 160) && (frame_length != 240)) in WebRtcVad_Process()
180 vad = WebRtcVad_CalcVad8khz((VadInstT*)vad_inst, speech_frame, frame_length); in WebRtcVad_Process()
Dvad_unittest.cc40 bool ValidRatesAndFrameLengths(int16_t rate, int16_t frame_length) { in ValidRatesAndFrameLengths() argument
42 if (frame_length == 80 || frame_length == 160 || frame_length == 240) { in ValidRatesAndFrameLengths()
47 if (frame_length == 160 || frame_length == 320 || frame_length == 480) { in ValidRatesAndFrameLengths()
53 if (frame_length == 320 || frame_length == 640 || frame_length == 960) { in ValidRatesAndFrameLengths()
Dvad_core.h109 int frame_length);
111 int frame_length);
113 int frame_length);
133 WebRtc_Word16 total_power, int frame_length);
Dvad_core.c276 int frame_length) in WebRtcVad_CalcVad32khz() argument
285 frame_length); in WebRtcVad_CalcVad32khz()
286 len = WEBRTC_SPL_RSHIFT_W16(frame_length, 1); in WebRtcVad_CalcVad32khz()
298 int frame_length) in WebRtcVad_CalcVad16khz() argument
305 frame_length); in WebRtcVad_CalcVad16khz()
307 len = WEBRTC_SPL_RSHIFT_W16(frame_length, 1); in WebRtcVad_CalcVad16khz()
314 int frame_length) in WebRtcVad_CalcVad8khz() argument
319 total_power = WebRtcVad_get_features(inst, speech_frame, frame_length, feature_vector); in WebRtcVad_CalcVad8khz()
322 inst->vad = WebRtcVad_GmmProbability(inst, feature_vector, total_power, frame_length); in WebRtcVad_CalcVad8khz()
330 WebRtc_Word16 total_power, int frame_length) in WebRtcVad_GmmProbability() argument
[all …]
/external/libopus/silk/
Dstereo_LR_to_MS.c47 …opus_int frame_length /* I Number of samples … in silk_stereo_LR_to_MS() argument
61 ALLOC( side, frame_length + 2, opus_int16 ); in silk_stereo_LR_to_MS()
63 for( n = 0; n < frame_length + 2; n++ ) { in silk_stereo_LR_to_MS()
73 silk_memcpy( state->sMid, &mid[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_LR_to_MS()
74 silk_memcpy( state->sSide, &side[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_LR_to_MS()
77 ALLOC( LP_mid, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
78 ALLOC( HP_mid, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
79 for( n = 0; n < frame_length; n++ ) { in silk_stereo_LR_to_MS()
86 ALLOC( LP_side, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
87 ALLOC( HP_side, frame_length, opus_int16 ); in silk_stereo_LR_to_MS()
[all …]
Ddecoder_set_fs.c41 opus_int frame_length, ret = 0; in silk_decoder_set_fs() local
48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); in silk_decoder_set_fs()
58 if( psDec->fs_kHz != fs_kHz || frame_length != psDec->frame_length ) { in silk_decoder_set_fs()
100 psDec->frame_length = frame_length; in silk_decoder_set_fs()
104 silk_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); in silk_decoder_set_fs()
Ddecode_frame.c53 L = psDec->frame_length; in silk_decode_frame()
74 psDec->indices.quantOffsetType, psDec->frame_length ); in silk_decode_frame()
105 silk_assert( psDec->ltp_mem_length >= psDec->frame_length ); in silk_decode_frame()
106 mv_len = psDec->ltp_mem_length - psDec->frame_length; in silk_decode_frame()
107 … silk_memmove( psDec->outBuf, &psDec->outBuf[ psDec->frame_length ], mv_len * sizeof(opus_int16) ); in silk_decode_frame()
108 silk_memcpy( &psDec->outBuf[ mv_len ], pOut, psDec->frame_length * sizeof( opus_int16 ) ); in silk_decode_frame()
DVAD.c102 silk_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); in silk_VAD_GetSA_Q8()
103 silk_assert( psEncC->frame_length <= 512 ); in silk_VAD_GetSA_Q8()
104 silk_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8()
109 decimated_framelength1 = silk_RSHIFT( psEncC->frame_length, 1 ); in silk_VAD_GetSA_Q8()
110 decimated_framelength2 = silk_RSHIFT( psEncC->frame_length, 2 ); in silk_VAD_GetSA_Q8()
111 decimated_framelength = silk_RSHIFT( psEncC->frame_length, 3 ); in silk_VAD_GetSA_Q8()
129 X, &X[ X_offset[ 3 ] ], psEncC->frame_length ); in silk_VAD_GetSA_Q8()
156 …decimated_framelength = silk_RSHIFT( psEncC->frame_length, silk_min_int( VAD_N_BANDS - b, VAD_N_BA… in silk_VAD_GetSA_Q8()
257 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8()
277 if( psEncC->frame_length == 10 * psEncC->fs_kHz ) { in silk_VAD_GetSA_Q8()
Ddecode_pulses.c42 …const opus_int frame_length /* I Frame length … in silk_decode_pulses() argument
57 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_decode_pulses()
58 if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { in silk_decode_pulses()
59 silk_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ in silk_decode_pulses()
114 silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); in silk_decode_pulses()
Dstereo_MS_to_LR.c41 …opus_int frame_length /* I Number of samples … in silk_stereo_MS_to_LR() argument
50 silk_memcpy( state->sMid, &x1[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
51 silk_memcpy( state->sSide, &x2[ frame_length ], 2 * sizeof( opus_int16 ) ); in silk_stereo_MS_to_LR()
69 for( n = STEREO_INTERP_LEN_MS * fs_kHz; n < frame_length; n++ ) { in silk_stereo_MS_to_LR()
79 for( n = 0; n < frame_length; n++ ) { in silk_stereo_MS_to_LR()
Dencode_pulses.c65 …const opus_int frame_length /* I Frame length … in silk_encode_pulses() argument
87 iter = silk_RSHIFT( frame_length, LOG2_SHELL_CODEC_FRAME_LENGTH ); in silk_encode_pulses()
88 if( iter * SHELL_CODEC_FRAME_LENGTH < frame_length ) { in silk_encode_pulses()
89 silk_assert( frame_length == 12 * 10 ); /* Make sure only happens for 10 ms @ 12 kHz */ in silk_encode_pulses()
91 silk_memset( &pulses[ frame_length ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof(opus_int8)); in silk_encode_pulses()
204 silk_encode_signs( psRangeEnc, pulses, frame_length, signalType, quantOffsetType, sum_pulses ); in silk_encode_pulses()
Dmain.h53 …opus_int frame_length /* I Number of samples …
63 …opus_int frame_length /* I Number of samples …
153 …const opus_int frame_length /* I Frame length …
289 …const opus_int frame_length /* I Frame length …
409 …const opus_int frame_length /* I Frame length …
Denc_API.c263 …nSamplesToBuffer = psEnc->state_Fxx[ 0 ].sCmn.frame_length - psEnc->state_Fxx[ 0 ].sCmn.inputBufI… in silk_Encode()
281 …nSamplesToBuffer = psEnc->state_Fxx[ 1 ].sCmn.frame_length - psEnc->state_Fxx[ 1 ].sCmn.inputBufI… in silk_Encode()
302 for( n = 0; n < psEnc->state_Fxx[ 0 ].sCmn.frame_length; n++ ) { in silk_Encode()
324 if( psEnc->state_Fxx[ 0 ].sCmn.inputBufIx >= psEnc->state_Fxx[ 0 ].sCmn.frame_length ) { in silk_Encode()
326 … silk_assert( psEnc->state_Fxx[ 0 ].sCmn.inputBufIx == psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode()
327 …nternal == 1 || psEnc->state_Fxx[ 1 ].sCmn.inputBufIx == psEnc->state_Fxx[ 1 ].sCmn.frame_length ); in silk_Encode()
370 … psEnc->state_Fxx[ n ].sCmn.pulses_LBRR[ i ], psEnc->state_Fxx[ n ].sCmn.frame_length ); in silk_Encode()
407 psEnc->state_Fxx[ 0 ].sCmn.fs_kHz, psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode()
436 …Mid, &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[ psEnc->state_Fxx[ 0 ].sCmn.frame_length ], 2 * sizeof( … in silk_Encode()
DLP_variable_cutoff.c103 …const opus_int frame_length /* I Frame length … in silk_LP_variable_cutoff() argument
133 silk_biquad_alt( frame, B_Q28, A_Q28, psLP->In_LP_State, frame, frame_length, 1); in silk_LP_variable_cutoff()
/external/webrtc/test/testsupport/metrics/
Dvideo_metrics.cc108 const int frame_length = 3 * width * height >> 1; in CalculateMetrics() local
109 uint8_t* ref = new uint8_t[frame_length]; in CalculateMetrics()
110 uint8_t* test = new uint8_t[frame_length]; in CalculateMetrics()
112 int ref_bytes = fread(ref, 1, frame_length, ref_fp); in CalculateMetrics()
113 int test_bytes = fread(test, 1, frame_length, test_fp); in CalculateMetrics()
114 while (ref_bytes == frame_length && test_bytes == frame_length) { in CalculateMetrics()
134 ref_bytes = fread(ref, 1, frame_length, ref_fp); in CalculateMetrics()
135 test_bytes = fread(test, 1, frame_length, test_fp); in CalculateMetrics()
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
Dbandwidth_estimator.c137 const WebRtc_Word32 frame_length, in WebRtcIsac_UpdateBandwidthEstimator() argument
160 if ( frame_length != bwest_str->prev_frame_length ) in WebRtcIsac_UpdateBandwidthEstimator()
163 1000.0f / (float)frame_length; /* bits/s */ in WebRtcIsac_UpdateBandwidthEstimator()
168 rec_rtp_rate = ((float)pksize * 8.0f * 1000.0f / (float)frame_length) + in WebRtcIsac_UpdateBandwidthEstimator()
181 bwest_str->prev_frame_length = frame_length; in WebRtcIsac_UpdateBandwidthEstimator()
205 if (send_ts_diff <= (16 * frame_length)*2) in WebRtcIsac_UpdateBandwidthEstimator()
219 (float)frame_length); in WebRtcIsac_UpdateBandwidthEstimator()
268 if ( frame_length != bwest_str->prev_frame_length ) in WebRtcIsac_UpdateBandwidthEstimator()
272 1000.0f / (float)frame_length; /* bits/s */ in WebRtcIsac_UpdateBandwidthEstimator()
287 late_diff = arr_ts_diff - (float)(16 * frame_length); in WebRtcIsac_UpdateBandwidthEstimator()
[all …]
/external/libvncserver/webclients/novnc/include/
Dplayback.js11 var rfb, mode, test_state, frame_idx, frame_length, variable
24 frame_length = VNC_frame_data.length;
51 while ((frame_idx < frame_length) && (frame.charAt(0) === "}")) {
62 if (frame_idx >= frame_length) {
/external/aac/libMpegTPDec/src/
Dtpdec_adts.cpp203 bs.frame_length = FDKreadBits(hBs, Adts_Length_FrameLength); in adtsRead_DecodeHeader()
223 pAdts->rawDataBlockDist[bs.num_raw_blocks] = bs.frame_length - 7 - bs.num_raw_blocks*2 - 2 ; in adtsRead_DecodeHeader()
255 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
265 FDKpushFor(hBs, bs.frame_length * 8); // try again one frame later in adtsRead_DecodeHeader()
271 …cmp_buffer_fullness = bs.frame_length*8 + bs.adts_fullness*32*getNumberOfEffectiveChannels(bs.chan… in adtsRead_DecodeHeader()
344 FDKpushFor(hBs, (bs.frame_length<<3) - adtsHeaderLength - 3); in adtsRead_DecodeHeader()
369 …length = (pAdts->bs.frame_length - 7) << 3; /* aac_frame_length subtracted by the header size (… in adtsRead_GetRawDataBlockLength()
/external/libnfc-nxp/src/
DphDnldNfc.c377 uint8_t frame_length[PHDNLD_FRAME_LEN_SIZE]; member
383 uint8_t frame_length[PHDNLD_FRAME_LEN_SIZE]; member
418 uint8_t frame_length[PHDNLD_FRAME_LEN_SIZE]; member
1322 p_dnld_data->frame_length[i] = (uint8_t)0; in phDnldNfc_Read()
1330 p_dnld_data->frame_length[i] = (uint8_t) in phDnldNfc_Read()
1493 p_dnld_data->frame_length[i] = (uint8_t) in phDnldNfc_Process_Write()
1501 p_dnld_data->frame_length[i] = (uint8_t) ((dnld_size + in phDnldNfc_Process_Write()
1934 p_dnld_data->frame_length[i] = (uint8_t) in phDnldNfc_Sequence()
1942 p_dnld_data->frame_length[i] = (uint8_t) in phDnldNfc_Sequence()
1980 uint16_t frame_length,
[all …]
/external/libopus/silk/fixed/
Dencode_frame_FIX.c113 silk_LP_variable_cutoff( &psEnc->sCmn.sLP, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); in silk_encode_frame_FIX()
118 …_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length * sizeof( opus_… in silk_encode_frame_FIX()
127 psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length in silk_encode_frame_FIX()
155 ALLOC( xfw_Q3, psEnc->sCmn.frame_length, opus_int32 ); in silk_encode_frame_FIX()
215 psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); in silk_encode_frame_FIX()
269 …r_Q16 = silk_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONS… in silk_encode_frame_FIX()
302 silk_memmove( psEnc->x_buf, &psEnc->x_buf[ psEnc->sCmn.frame_length ], in silk_encode_frame_FIX()
/external/libopus/silk/float/
Dencode_frame_FLP.c116 silk_LP_variable_cutoff( &psEnc->sCmn.sLP, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); in silk_encode_frame_FLP()
121 …( x_frame + LA_SHAPE_MS * psEnc->sCmn.fs_kHz, psEnc->sCmn.inputBuf + 1, psEnc->sCmn.frame_length ); in silk_encode_frame_FLP()
125 …x_frame[ LA_SHAPE_MS * psEnc->sCmn.fs_kHz + i * ( psEnc->sCmn.frame_length >> 3 ) ] += ( 1 - ( i &… in silk_encode_frame_FLP()
202 psEnc->sCmn.pulses, psEnc->sCmn.frame_length ); in silk_encode_frame_FLP()
256 …r_Q16 = silk_log2lin( silk_LSHIFT( nBits - maxBits, 7 ) / psEnc->sCmn.frame_length + SILK_FIX_CONS… in silk_encode_frame_FLP()
294 silk_memmove( psEnc->x_buf, &psEnc->x_buf[ psEnc->sCmn.frame_length ], in silk_encode_frame_FLP()
Dpitch_analysis_core_FLP.c104 opus_int frame_length, frame_length_8kHz, frame_length_4kHz; in silk_pitch_analysis_core_FLP() local
122 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; in silk_pitch_analysis_core_FLP()
139 silk_float2short_array( frame_16_FIX, frame, frame_length ); in silk_pitch_analysis_core_FLP()
141 silk_resampler_down2( filt_state, frame_8_FIX, frame_16_FIX, frame_length ); in silk_pitch_analysis_core_FLP()
146 silk_float2short_array( frame_12_FIX, frame, frame_length ); in silk_pitch_analysis_core_FLP()
148 silk_resampler_down2_3( filt_state, frame_8_FIX, frame_12_FIX, frame_length ); in silk_pitch_analysis_core_FLP()
/external/aac/libMpegTPEnc/src/
Dtpenc_adts.h114 USHORT frame_length; member
163 int frame_length
Dtpenc_adts.cpp190 int frame_length) in adtsWrite_EncodeHeader() argument
197 FDK_ASSERT(((frame_length+hAdts->headerBits)/8)<0x2000); /*13 bit*/ in adtsWrite_EncodeHeader()
233 FDKwriteBits(hBitStream, (frame_length + hAdts->headerBits)>>3, 13); in adtsWrite_EncodeHeader()
/external/aac/libAACdec/src/
Dpulsedata.cpp102 const SHORT frame_length in CPulseData_Read() argument
131 if (k >= frame_length) { in CPulseData_Read()

12