Home
last modified time | relevance | path

Searched refs:silk_assert (Results 1 – 25 of 60) sorted by relevance

123

/external/libopus/silk/
DMacroDebug.h47 silk_assert( 0 ); in silk_ADD16_()
63 silk_assert( 0 ); in silk_ADD32_()
79 silk_assert( 0 ); in silk_ADD64_()
95 silk_assert( 0 ); in silk_SUB16_()
111 silk_assert( 0 ); in silk_SUB32_()
127 silk_assert( 0 ); in silk_SUB64_()
142 silk_assert( 0 ); in silk_ADD_SAT16_()
159 silk_assert( 0 ); in silk_ADD_SAT32_()
188 silk_assert( 0 ); in silk_ADD_SAT64_()
203 silk_assert( 0 ); in silk_SUB_SAT16_()
[all …]
Dencode_indices.c73silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < MAX_DELTA_GAIN_QU… in silk_encode_indices()
77silk_assert( psIndices->GainsIndices[ 0 ] >= 0 && psIndices->GainsIndices[ 0 ] < N_LEVELS_QGAIN ); in silk_encode_indices()
84silk_assert( psIndices->GainsIndices[ i ] >= 0 && psIndices->GainsIndices[ i ] < MAX_DELTA_GAIN_QU… in silk_encode_indices()
108 silk_assert( psIndices->NLSFInterpCoef_Q2 >= 0 && psIndices->NLSFInterpCoef_Q2 < 5 ); in silk_encode_indices()
128 silk_assert( delta_lagIndex >= 0 && delta_lagIndex < 21 ); in silk_encode_indices()
136 silk_assert( pitch_low_bits < psEncC->fs_kHz / 2 ); in silk_encode_indices()
137 silk_assert( pitch_high_bits < 32 ); in silk_encode_indices()
144 silk_assert( psIndices->contourIndex >= 0 ); in silk_encode_indices()
145silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || in silk_encode_indices()
155 silk_assert( psIndices->PERIndex >= 0 && psIndices->PERIndex < 3 ); in silk_encode_indices()
[all …]
Dresampler_private_up2_HQ.c48 silk_assert( silk_resampler_up2_hq_0[ 0 ] > 0 ); in silk_resampler_private_up2_HQ()
49 silk_assert( silk_resampler_up2_hq_0[ 1 ] > 0 ); in silk_resampler_private_up2_HQ()
50 silk_assert( silk_resampler_up2_hq_0[ 2 ] < 0 ); in silk_resampler_private_up2_HQ()
51 silk_assert( silk_resampler_up2_hq_1[ 0 ] > 0 ); in silk_resampler_private_up2_HQ()
52 silk_assert( silk_resampler_up2_hq_1[ 1 ] > 0 ); in silk_resampler_private_up2_HQ()
53 silk_assert( silk_resampler_up2_hq_1[ 2 ] < 0 ); in silk_resampler_private_up2_HQ()
DLPC_inv_pred_gain.c62 silk_assert( rc_mult1_Q30 > ( 1 << 15 ) ); /* reduce A_LIMIT if fails */ in LPC_inverse_pred_gain_QA_c()
63 silk_assert( rc_mult1_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_c()
68 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA_c()
69 silk_assert( invGain_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_c()
112 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA_c()
113 silk_assert( invGain_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_c()
Dtypedef.h55 # ifndef silk_assert
57 # define silk_assert(COND) _ASSERTE(COND) macro
72 # define silk_assert(COND) {if (!(COND)) {silk_fatal("assertion failed: " #COND);}} macro
74 # define silk_assert(COND) macro
DLP_variable_cutoff.c69 silk_assert( fac_Q16 - ( 1 << 16 ) == silk_SAT16( fac_Q16 - ( 1 << 16 ) ) ); in silk_LP_interpolate_filter_taps()
109 silk_assert( psLP->transition_frame_no >= 0 && psLP->transition_frame_no <= TRANSITION_FRAMES ); in silk_LP_variable_cutoff()
122 silk_assert( ind >= 0 ); in silk_LP_variable_cutoff()
123 silk_assert( ind < TRANSITION_INT_NUM ); in silk_LP_variable_cutoff()
132 silk_assert( TRANSITION_NB == 3 && TRANSITION_NA == 2 ); in silk_LP_variable_cutoff()
DNLSF_VQ_weights_laroia.c60 silk_assert( pNLSFW_Q_OUT[ 0 ] > 0 ); in silk_NLSF_VQ_weights_laroia()
67 silk_assert( pNLSFW_Q_OUT[ k ] > 0 ); in silk_NLSF_VQ_weights_laroia()
72 silk_assert( pNLSFW_Q_OUT[ k + 1 ] > 0 ); in silk_NLSF_VQ_weights_laroia()
79 silk_assert( pNLSFW_Q_OUT[ D - 1 ] > 0 ); in silk_NLSF_VQ_weights_laroia()
Dprocess_NLSFs.c49 silk_assert( psEncC->speech_activity_Q8 >= 0 ); in silk_process_NLSFs()
50 silk_assert( psEncC->speech_activity_Q8 <= SILK_FIX_CONST( 1.0, 8 ) ); in silk_process_NLSFs()
64 silk_assert( NLSF_mu_Q20 <= SILK_FIX_CONST( 0.005, 20 ) ); in silk_process_NLSFs()
84 silk_assert( pNLSFW_QW[ i ] >= 1 ); in silk_process_NLSFs()
DNLSF2A.c88 silk_assert( LSF_COS_TAB_SZ_FIX == 128 ); in silk_NLSF2A()
94 silk_assert( NLSF[k] >= 0 ); in silk_NLSF2A()
102 silk_assert(f_int >= 0); in silk_NLSF2A()
103 silk_assert(f_int < LSF_COS_TAB_SZ_FIX ); in silk_NLSF2A()
DInlines.h106 silk_assert( b32 != 0 ); in silk_DIV32_varQ()
107 silk_assert( Qres >= 0 ); in silk_DIV32_varQ()
151 silk_assert( b32 != 0 ); in silk_INVERSE32_varQ()
152 silk_assert( Qres > 0 ); in silk_INVERSE32_varQ()
DVAD.c103 silk_assert( VAD_N_BANDS == 4 ); in silk_VAD_GetSA_Q8_c()
177 silk_assert( sumSquared >= 0 ); in silk_VAD_GetSA_Q8_c()
324 silk_assert( nl >= 0 ); in silk_VAD_GetNoiseLevels()
328 silk_assert( nrg > 0 ); in silk_VAD_GetNoiseLevels()
332 silk_assert( inv_nrg >= 0 ); in silk_VAD_GetNoiseLevels()
348 silk_assert( psSilk_VAD->inv_NL[ k ] >= 0 ); in silk_VAD_GetNoiseLevels()
352 silk_assert( nl >= 0 ); in silk_VAD_GetNoiseLevels()
DNLSF_del_dec_quant.c82silk_assert( (NLSF_QUANT_DEL_DEC_STATES & (NLSF_QUANT_DEL_DEC_STATES-1)) == 0 ); /* must be po… in silk_NLSF_del_dec_quant()
208 silk_assert( indices[ j ] >= -NLSF_QUANT_MAX_AMPLITUDE_EXT ); in silk_NLSF_del_dec_quant()
209 silk_assert( indices[ j ] <= NLSF_QUANT_MAX_AMPLITUDE_EXT ); in silk_NLSF_del_dec_quant()
212 silk_assert( indices[ 0 ] <= NLSF_QUANT_MAX_AMPLITUDE_EXT ); in silk_NLSF_del_dec_quant()
213 silk_assert( min_Q25 >= 0 ); in silk_NLSF_del_dec_quant()
Dsum_sqr_shift.c61 silk_assert( nrg >= 0 ); in silk_sum_sqr_shift()
77 silk_assert( nrg >= 0 ); in silk_sum_sqr_shift()
/external/libopus/silk/fixed/
Dpitch_analysis_core_FIX.c131 silk_assert( search_thres1_Q16 >= 0 && search_thres1_Q16 <= (1<<16) ); in silk_pitch_analysis_core()
132 silk_assert( search_thres2_Q13 >= 0 && search_thres2_Q13 <= (1<<13) ); in silk_pitch_analysis_core()
216 silk_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core()
217 silk_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core()
337 silk_assert( basis_ptr >= frame_8kHz ); in silk_pitch_analysis_core()
338 silk_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_8kHz + frame_length_8kHz ); in silk_pitch_analysis_core()
374 silk_assert( search_thres2_Q13 == silk_SAT16( search_thres2_Q13 ) ); in silk_pitch_analysis_core()
417 silk_assert( lag_log2_Q7 == silk_SAT16( lag_log2_Q7 ) ); in silk_pitch_analysis_core()
418silk_assert( nb_subfr * SILK_FIX_CONST( PE_SHORTLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_… in silk_pitch_analysis_core()
422silk_assert( nb_subfr * SILK_FIX_CONST( PE_PREVLAG_BIAS, 13 ) == silk_SAT16( nb_subfr * SILK_FIX_C… in silk_pitch_analysis_core()
[all …]
Dnoise_shape_analysis_FIX.c128 silk_assert( 0 ); in limit_warped_coefs()
277 silk_assert( nrg >= 0 ); in silk_noise_shape_analysis_FIX()
283 silk_assert( Qnrg >= -12 ); in silk_noise_shape_analysis_FIX()
284 silk_assert( Qnrg <= 30 ); in silk_noise_shape_analysis_FIX()
300 silk_assert( psEncCtrl->Gains_Q16[ k ] > 0 ); in silk_noise_shape_analysis_FIX()
311 silk_assert( psEncCtrl->Gains_Q16[ k ] > 0 ); in silk_noise_shape_analysis_FIX()
336 silk_assert( gain_mult_Q16 > 0 ); in silk_noise_shape_analysis_FIX()
339 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
361silk_assert( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ) < SILK_FIX_CONST( 0.5, 24 ) ); /* Guarantees… in silk_noise_shape_analysis_FIX()
Dwarped_autocorrelation_FIX.c56 silk_assert( 2 * QS - QC >= 0 ); in silk_warped_autocorrelation_FIX_c()
79 silk_assert( *scale >= -30 && *scale <= 12 ); in silk_warped_autocorrelation_FIX_c()
89 silk_assert( corr_QC[ 0 ] >= 0 ); /* If breaking, decrease QC*/ in silk_warped_autocorrelation_FIX_c()
Dprocess_gains_FIX.c78 silk_assert( gain_squared > 0 ); in silk_process_gains_FIX()
115 silk_assert( psEncCtrl->Lambda_Q10 > 0 ); in silk_process_gains_FIX()
116 silk_assert( psEncCtrl->Lambda_Q10 < SILK_FIX_CONST( 2, 10 ) ); in silk_process_gains_FIX()
DcorrMatrix_FIX.c67 silk_assert( rshifts == 0 ); in silk_corrVector_FIX()
103 silk_assert( energy >= 0 ); in silk_corrMatrix_FIX()
109 silk_assert( energy >= 0 ); in silk_corrMatrix_FIX()
/external/libopus/silk/float/
Dpitch_analysis_core_FLP.c118 silk_assert( search_thres1 >= 0.0f && search_thres1 <= 1.0f ); in silk_pitch_analysis_core_FLP()
119 silk_assert( search_thres2 >= 0.0f && search_thres2 <= 1.0f ); in silk_pitch_analysis_core_FLP()
196 silk_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core_FLP()
197 silk_assert( basis_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core_FLP()
392 silk_assert( *LTPCorr >= 0.0f ); in silk_pitch_analysis_core_FLP()
398 silk_assert( lag == silk_SAT16( lag ) ); in silk_pitch_analysis_core_FLP()
418 silk_assert( lag == silk_SAT16( lag ) ); in silk_pitch_analysis_core_FLP()
532 silk_assert(lag_high-lag_low+1 <= SCRATCH_SIZE); in silk_P_Ana_calc_corr_st3()
535 silk_assert( lag_counter < SCRATCH_SIZE ); in silk_P_Ana_calc_corr_st3()
546 silk_assert( idx + j < SCRATCH_SIZE ); in silk_P_Ana_calc_corr_st3()
[all …]
Dburg_modified_FLP.c113 silk_assert( nrg_f > 0.0 ); in silk_burg_modified_FLP()
114 silk_assert( nrg_b > 0.0 ); in silk_burg_modified_FLP()
118 silk_assert( rc > -1.0 && rc < 1.0 ); in silk_burg_modified_FLP()
/external/libopus/silk/arm/
DLPC_inv_pred_gain_neon_intr.c83 silk_assert( rc_mult1_Q30 > ( 1 << 15 ) ); /* reduce A_LIMIT if fails */ in LPC_inverse_pred_gain_QA_neon()
84 silk_assert( rc_mult1_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_neon()
89 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA_neon()
90 silk_assert( invGain_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_neon()
180 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA_neon()
181 silk_assert( invGain_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA_neon()
276 silk_assert( invGain_Q30_c == invGain_Q30 ); in silk_LPC_inverse_pred_gain_neon()
/external/libopus/silk/fixed/arm/
Dwarped_autocorrelation_FIX_neon_intr.c84 silk_assert( ( order & 1 ) == 0 ); in silk_warped_autocorrelation_FIX_neon()
85 silk_assert( 2 * QS - QC >= 0 ); in silk_warped_autocorrelation_FIX_neon()
183 silk_assert( o == 4 ); in silk_warped_autocorrelation_FIX_neon()
225 silk_assert( *scale >= -30 && *scale <= 12 ); in silk_warped_autocorrelation_FIX_neon()
247 silk_assert( corr_QCT[ order ] >= 0 ); /* If breaking, decrease QC*/ in silk_warped_autocorrelation_FIX_neon()
256 silk_assert( !memcmp( corr_c, corr, sizeof( corr_c[ 0 ] ) * ( order + 1 ) ) ); in silk_warped_autocorrelation_FIX_neon()
257 silk_assert( scale_c == *scale ); in silk_warped_autocorrelation_FIX_neon()
/external/libopus/silk/fixed/mips/
Dnoise_shape_analysis_FIX_mipsr1.h184 silk_assert( nrg >= 0 ); in silk_noise_shape_analysis_FIX()
190 silk_assert( Qnrg >= -12 ); in silk_noise_shape_analysis_FIX()
191 silk_assert( Qnrg <= 30 ); in silk_noise_shape_analysis_FIX()
208 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
223 silk_assert( BWExp1_Q16 <= SILK_FIX_CONST( 1.0, 16 ) ); in silk_noise_shape_analysis_FIX()
250 silk_assert( gain_mult_Q16 > 0 ); in silk_noise_shape_analysis_FIX()
253 silk_assert( psEncCtrl->Gains_Q16[ k ] >= 0 ); in silk_noise_shape_analysis_FIX()
280silk_assert( SILK_FIX_CONST( HARM_HP_NOISE_COEF, 24 ) < SILK_FIX_CONST( 0.5, 24 ) ); /* Guarantees… in silk_noise_shape_analysis_FIX()
Dwarped_autocorrelation_FIX_mipsr1.h65 silk_assert( ( order & 1 ) == 0 ); in silk_warped_autocorrelation_FIX()
66 silk_assert( 2 * QS - QC >= 0 ); in silk_warped_autocorrelation_FIX()
145 silk_assert( *scale >= -30 && *scale <= 12 ); in silk_warped_autocorrelation_FIX()
164 silk_assert( corr_QC[ 0 ] >= 0 ); /* If breaking, decrease QC*/ in silk_warped_autocorrelation_FIX()
Dprefilter_FIX_mipsr1.h59 silk_assert( ( order & 1 ) == 0 ); in silk_warped_LPC_analysis_filter_FIX()
60 silk_assert( ( length & 1 ) == 0 ); in silk_warped_LPC_analysis_filter_FIX()
141 silk_assert( HARM_SHAPE_FIR_TAPS == 3 ); in silk_prefilt_FIX()

123