Home
last modified time | relevance | path

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

1234

/external/libopus/silk/
Dcheck_control_input.c41 silk_assert( encControl != NULL ); in check_control_input()
62 silk_assert( 0 ); in check_control_input()
69 silk_assert( 0 ); in check_control_input()
73 silk_assert( 0 ); in check_control_input()
77 silk_assert( 0 ); in check_control_input()
81 silk_assert( 0 ); in check_control_input()
85 silk_assert( 0 ); in check_control_input()
89 silk_assert( 0 ); in check_control_input()
93 silk_assert( 0 ); in check_control_input()
97 silk_assert( 0 ); in check_control_input()
[all …]
Dencode_indices.c59 silk_assert( typeOffset >= 0 && typeOffset < 6 ); in silk_encode_indices()
60 silk_assert( encode_LBRR == 0 || typeOffset >= 2 ); in silk_encode_indices()
73silk_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()
93 silk_assert( psEncC->psNLSF_CB->order == psEncC->predictLPCOrder ); 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()
[all …]
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 …]
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()
51silk_assert( psEncC->useInterpolatedNLSFs == 1 || psEncC->indices.NLSFInterpCoef_Q2 == ( 1 << 2 ) … in silk_process_NLSFs()
63 silk_assert( NLSF_mu_Q20 > 0 ); 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()
104 silk_assert( psEncC->predictLPCOrder <= MAX_LPC_ORDER ); in silk_process_NLSFs()
DNLSF_VQ_weights_laroia.c51 silk_assert( D > 0 ); in silk_NLSF_VQ_weights_laroia()
52 silk_assert( ( D & 1 ) == 0 ); in silk_NLSF_VQ_weights_laroia()
60 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()
Dsort.c51 silk_assert( K > 0 ); in silk_insertion_sort_increasing()
52 silk_assert( L > 0 ); in silk_insertion_sort_increasing()
53 silk_assert( L >= K ); in silk_insertion_sort_increasing()
99 silk_assert( K > 0 ); in silk_insertion_sort_decreasing_int16()
100 silk_assert( L > 0 ); in silk_insertion_sort_decreasing_int16()
101 silk_assert( L >= K ); in silk_insertion_sort_decreasing_int16()
144 silk_assert( L > 0 ); in silk_insertion_sort_increasing_all_values_int16()
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.c64 silk_assert( rc_mult1_Q30 > ( 1 << 15 ) ); /* reduce A_LIMIT if fails */ in LPC_inverse_pred_gain_QA()
65 silk_assert( rc_mult1_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA()
74 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA()
75 silk_assert( invGain_Q30 <= ( 1 << 30 ) ); in LPC_inverse_pred_gain_QA()
102 silk_assert( invGain_Q30 >= 0 ); in LPC_inverse_pred_gain_QA()
103 silk_assert( invGain_Q30 <= 1<<30 ); in LPC_inverse_pred_gain_QA()
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
DNLSF_VQ.c46 silk_assert( LPC_order <= 16 ); in silk_NLSF_VQ()
47 silk_assert( ( LPC_order & 1 ) == 0 ); in silk_NLSF_VQ()
63 silk_assert( sum_error_Q26 >= 0 ); in silk_NLSF_VQ()
64 silk_assert( sum_error_Q30 >= 0 ); in silk_NLSF_VQ()
DVAD.c103 silk_assert( VAD_N_BANDS == 4 ); in silk_VAD_GetSA_Q8_c()
104 silk_assert( MAX_FRAME_LENGTH >= psEncC->frame_length ); in silk_VAD_GetSA_Q8_c()
105 silk_assert( psEncC->frame_length <= 512 ); in silk_VAD_GetSA_Q8_c()
106 silk_assert( psEncC->frame_length == 8 * silk_RSHIFT( psEncC->frame_length, 3 ) ); in silk_VAD_GetSA_Q8_c()
177 silk_assert( sumSquared >= 0 ); in silk_VAD_GetSA_Q8_c()
323 silk_assert( nl >= 0 ); in silk_VAD_GetNoiseLevels()
327 silk_assert( nrg > 0 ); in silk_VAD_GetNoiseLevels()
331 silk_assert( inv_nrg >= 0 ); in silk_VAD_GetNoiseLevels()
347 silk_assert( psSilk_VAD->inv_NL[ k ] >= 0 ); in silk_VAD_GetNoiseLevels()
351 silk_assert( nl >= 0 ); in silk_VAD_GetNoiseLevels()
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()
Ddecoder_set_fs.c43 silk_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_decoder_set_fs()
44 silk_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); in silk_decoder_set_fs()
89 silk_assert( 0 ); in silk_decoder_set_fs()
104 silk_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); in silk_decoder_set_fs()
Dstereo_encode_pred.c44 silk_assert( n < 25 ); in silk_stereo_encode_pred()
47 silk_assert( ix[ n ][ 0 ] < 3 ); in silk_stereo_encode_pred()
48 silk_assert( ix[ n ][ 1 ] < STEREO_QUANT_SUB_STEPS ); in silk_stereo_encode_pred()
DLPC_analysis_filter.c61 silk_assert( d >= 6 ); in silk_LPC_analysis_filter()
62 silk_assert( (d & 1) == 0 ); in silk_LPC_analysis_filter()
63 silk_assert( d <= len ); in silk_LPC_analysis_filter()
66 silk_assert( d <= SILK_MAX_ORDER_LPC ); in silk_LPC_analysis_filter()
Dcontrol_codec.c242 silk_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_setup_fs()
243 silk_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); in silk_setup_fs()
308 silk_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ); in silk_setup_fs()
321 silk_assert( Complexity >= 0 && Complexity <= 10 ); in silk_setup_complexity()
384 silk_assert( psEncC->pitchEstimationLPCOrder <= MAX_FIND_PITCH_LPC_ORDER ); in silk_setup_complexity()
385 silk_assert( psEncC->shapingLPCOrder <= MAX_SHAPE_LPC_ORDER ); in silk_setup_complexity()
386 silk_assert( psEncC->nStatesDelayedDecision <= MAX_DEL_DEC_STATES ); in silk_setup_complexity()
387 silk_assert( psEncC->warping_Q16 <= 32767 ); in silk_setup_complexity()
388 silk_assert( psEncC->la_shape <= LA_SHAPE_MAX ); in silk_setup_complexity()
389 silk_assert( psEncC->shapeWinLength <= SHAPE_LPC_WIN_MAX ); in silk_setup_complexity()
[all …]
DNLSF2A.c88 silk_assert( LSF_COS_TAB_SZ_FIX == 128 ); in silk_NLSF2A()
89 silk_assert( d==10||d==16 ); 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()
Dresampler.c94 silk_assert( 0 ); in silk_resampler_init()
101 silk_assert( 0 ); in silk_resampler_init()
154 silk_assert( 0 ); in silk_resampler_init()
184 silk_assert( inLen >= S->Fs_in_kHz ); in silk_resampler()
186 silk_assert( S->inputDelay <= S->Fs_in_kHz ); in silk_resampler()
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()
/external/libopus/silk/fixed/
Dpitch_analysis_core_FIX.c123 silk_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); in silk_pitch_analysis_core()
126 silk_assert( complexity >= SILK_PE_MIN_COMPLEX ); in silk_pitch_analysis_core()
127 silk_assert( complexity <= SILK_PE_MAX_COMPLEX ); in silk_pitch_analysis_core()
129 silk_assert( search_thres1_Q16 >= 0 && search_thres1_Q16 <= (1<<16) ); in silk_pitch_analysis_core()
130 silk_assert( search_thres2_Q13 >= 0 && search_thres2_Q13 <= (1<<13) ); in silk_pitch_analysis_core()
149 silk_assert( Fs_kHz == 8 ); in silk_pitch_analysis_core()
186 silk_assert( target_ptr >= frame_4kHz ); in silk_pitch_analysis_core()
187 silk_assert( target_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core()
192 silk_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core()
193 silk_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core()
[all …]
Dapply_sine_window_FIX.c60 silk_assert( win_type == 1 || win_type == 2 ); in silk_apply_sine_window()
63 silk_assert( length >= 16 && length <= 120 ); in silk_apply_sine_window()
64 silk_assert( ( length & 3 ) == 0 ); in silk_apply_sine_window()
68 silk_assert( k >= 0 && k <= 26 ); in silk_apply_sine_window()
73 silk_assert( c_Q16 >= -32768 ); in silk_apply_sine_window()
Dresidual_energy16_FIX.c50 silk_assert( D >= 0 ); in silk_residual_energy16_covar_FIX()
51 silk_assert( D <= 16 ); in silk_residual_energy16_covar_FIX()
52 silk_assert( cQ > 0 ); in silk_residual_energy16_covar_FIX()
53 silk_assert( cQ < 16 ); in silk_residual_energy16_covar_FIX()
69silk_assert( silk_abs(cn[i]) <= ( silk_int16_MAX + 1 ) ); /* Check that silk_SMLAWB can be used */ in silk_residual_energy16_covar_FIX()
Dwarped_autocorrelation_FIX.c59 silk_assert( ( order & 1 ) == 0 ); in silk_warped_autocorrelation_FIX()
60 silk_assert( 2 * QS - QC >= 0 ); in silk_warped_autocorrelation_FIX()
83 silk_assert( *scale >= -30 && *scale <= 12 ); in silk_warped_autocorrelation_FIX()
93 silk_assert( corr_QC[ 0 ] >= 0 ); /* If breaking, decrease QC*/ in silk_warped_autocorrelation_FIX()
/external/libopus/silk/float/
Dpitch_analysis_core_FLP.c112 silk_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); in silk_pitch_analysis_core_FLP()
115 silk_assert( complexity >= SILK_PE_MIN_COMPLEX ); in silk_pitch_analysis_core_FLP()
116 silk_assert( complexity <= SILK_PE_MAX_COMPLEX ); in silk_pitch_analysis_core_FLP()
118 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()
151 silk_assert( Fs_kHz == 8 ); in silk_pitch_analysis_core_FLP()
172 silk_assert( target_ptr >= frame_4kHz ); in silk_pitch_analysis_core_FLP()
173 silk_assert( target_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core_FLP()
178 silk_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core_FLP()
179 silk_assert( basis_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core_FLP()
[all …]
Dsort_FLP.c50 silk_assert( K > 0 ); in silk_insertion_sort_decreasing_FLP()
51 silk_assert( L > 0 ); in silk_insertion_sort_decreasing_FLP()
52 silk_assert( L >= K ); in silk_insertion_sort_decreasing_FLP()

1234