Home
last modified time | relevance | path

Searched refs:celt_assert (Results 1 – 25 of 84) sorted by relevance

1234

/external/libopus/celt/
Dfixed_debug.h77 celt_assert(0); in NEG16()
85 celt_assert(0); in NEG16()
98 celt_assert(0); in NEG32()
106 celt_assert(0); in NEG32()
121 celt_assert(0); in EXTRACT16_()
137 celt_assert(0); in EXTEND32_()
153 celt_assert(0); in SHR16_()
161 celt_assert(0); in SHR16_()
175 celt_assert(0); in SHL16_()
183 celt_assert(0); in SHL16_()
[all …]
Dcwrs.c434 celt_assert(_maxk>0); in get_required_bits()
444 celt_assert(_n>=2); in icwrs()
459 celt_assert(_k>0); in encode_pulses()
469 celt_assert(_k>0); in cwrsi()
470 celt_assert(_n>1); in cwrsi()
585 celt_assert(len>=3); in ncwrs_urow()
590 celt_assert(_n>=2); in ncwrs_urow()
592 celt_assert(_k>0); in ncwrs_urow()
609 celt_assert(_n>0); in cwrsi()
651 celt_assert(_n>=2); in icwrs()
[all …]
Dlaplace.c88 celt_assert(fl+fs<=32768); in ec_laplace_encode()
89 celt_assert(fs>0); in ec_laplace_encode()
128 celt_assert(fl<32768); in ec_laplace_decode()
129 celt_assert(fs>0); in ec_laplace_decode()
130 celt_assert(fl<=fm); in ec_laplace_decode()
131 celt_assert(fm<IMIN(fl+fs,32768)); in ec_laplace_decode()
Dcelt_decoder.c118 celt_assert(st->mode == opus_custom_mode_create(48000, 960, NULL)); in validate_celt_decoder()
119 celt_assert(st->overlap == 120); in validate_celt_decoder()
121 celt_assert(st->channels == 1 || st->channels == 2); in validate_celt_decoder()
122 celt_assert(st->stream_channels == 1 || st->stream_channels == 2); in validate_celt_decoder()
123 celt_assert(st->downsample > 0); in validate_celt_decoder()
124 celt_assert(st->start == 0 || st->start == 17); in validate_celt_decoder()
125 celt_assert(st->start < st->end); in validate_celt_decoder()
126 celt_assert(st->end <= 21); in validate_celt_decoder()
128 celt_assert(st->arch >= 0); in validate_celt_decoder()
129 celt_assert(st->arch <= OPUS_ARCHMASK); in validate_celt_decoder()
[all …]
Drate.c200 celt_assert(qb >= 0); in compute_pulse_cache()
215 celt_assert(qb >= 0); in compute_pulse_cache()
232 celt_assert(qb >= 0); in compute_pulse_cache()
236 celt_assert(max_bits >= 0); in compute_pulse_cache()
237 celt_assert(max_bits < 256); in compute_pulse_cache()
391 celt_assert(codedBands > start); in interp_bits2pulses()
442 celt_assert(bits[j] >= 0); in interp_bits2pulses()
513 celt_assert(bits[j] >= 0); in interp_bits2pulses()
514 celt_assert(ebits[j] >= 0); in interp_bits2pulses()
524 celt_assert(C*ebits[j]<<BITRES == bits[j]); in interp_bits2pulses()
/external/libopus/silk/
Dcheck_control_input.c41 celt_assert( encControl != NULL ); in check_control_input()
62 celt_assert( 0 ); in check_control_input()
69 celt_assert( 0 ); in check_control_input()
73 celt_assert( 0 ); in check_control_input()
77 celt_assert( 0 ); in check_control_input()
81 celt_assert( 0 ); in check_control_input()
85 celt_assert( 0 ); in check_control_input()
89 celt_assert( 0 ); in check_control_input()
93 celt_assert( 0 ); in check_control_input()
97 celt_assert( 0 ); in check_control_input()
[all …]
Dsort.c51 celt_assert( K > 0 ); in silk_insertion_sort_increasing()
52 celt_assert( L > 0 ); in silk_insertion_sort_increasing()
53 celt_assert( L >= K ); in silk_insertion_sort_increasing()
99 celt_assert( K > 0 ); in silk_insertion_sort_decreasing_int16()
100 celt_assert( L > 0 ); in silk_insertion_sort_decreasing_int16()
101 celt_assert( L >= K ); in silk_insertion_sort_decreasing_int16()
144 celt_assert( L > 0 ); in silk_insertion_sort_increasing_all_values_int16()
DLPC_analysis_filter.c67 celt_assert( d >= 6 ); in silk_LPC_analysis_filter()
68 celt_assert( (d & 1) == 0 ); in silk_LPC_analysis_filter()
69 celt_assert( d <= len ); in silk_LPC_analysis_filter()
72 celt_assert( d <= SILK_MAX_ORDER_LPC ); in silk_LPC_analysis_filter()
Ddecoder_set_fs.c43 celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_decoder_set_fs()
44 celt_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); in silk_decoder_set_fs()
89 celt_assert( 0 ); in silk_decoder_set_fs()
104 celt_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH ); in silk_decoder_set_fs()
Dcontrol_codec.c241 celt_assert( fs_kHz == 8 || fs_kHz == 12 || fs_kHz == 16 ); in silk_setup_fs()
242 celt_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); in silk_setup_fs()
302 celt_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ); in silk_setup_fs()
315 celt_assert( Complexity >= 0 && Complexity <= 10 ); in silk_setup_complexity()
393 celt_assert( psEncC->pitchEstimationLPCOrder <= MAX_FIND_PITCH_LPC_ORDER ); in silk_setup_complexity()
394 celt_assert( psEncC->shapingLPCOrder <= MAX_SHAPE_LPC_ORDER ); in silk_setup_complexity()
395 celt_assert( psEncC->nStatesDelayedDecision <= MAX_DEL_DEC_STATES ); in silk_setup_complexity()
396 celt_assert( psEncC->warping_Q16 <= 32767 ); in silk_setup_complexity()
397 celt_assert( psEncC->la_shape <= LA_SHAPE_MAX ); in silk_setup_complexity()
398 celt_assert( psEncC->shapeWinLength <= SHAPE_LPC_WIN_MAX ); in silk_setup_complexity()
Dstereo_encode_pred.c44 celt_assert( n < 25 ); in silk_stereo_encode_pred()
47 celt_assert( ix[ n ][ 0 ] < 3 ); in silk_stereo_encode_pred()
48 celt_assert( ix[ n ][ 1 ] < STEREO_QUANT_SUB_STEPS ); in silk_stereo_encode_pred()
Dresampler.c94 celt_assert( 0 ); in silk_resampler_init()
101 celt_assert( 0 ); in silk_resampler_init()
154 celt_assert( 0 ); in silk_resampler_init()
184 celt_assert( inLen >= S->Fs_in_kHz ); in silk_resampler()
186 celt_assert( S->inputDelay <= S->Fs_in_kHz ); in silk_resampler()
Ddecode_frame.c58 celt_assert( L > 0 && L <= MAX_FRAME_LENGTH ); in silk_decode_frame()
94 celt_assert( psDec->prevSignalType >= 0 && psDec->prevSignalType <= 2 ); in silk_decode_frame()
107 celt_assert( psDec->ltp_mem_length >= psDec->frame_length ); in silk_decode_frame()
Dprocess_NLSFs.c51celt_assert( psEncC->useInterpolatedNLSFs == 1 || psEncC->indices.NLSFInterpCoef_Q2 == ( 1 << 2 ) … in silk_process_NLSFs()
63 celt_assert( NLSF_mu_Q20 > 0 ); in silk_process_NLSFs()
104 celt_assert( psEncC->predictLPCOrder <= MAX_LPC_ORDER ); in silk_process_NLSFs()
Denc_API.c85 celt_assert( 0 ); in silk_InitEncoder()
94 celt_assert( 0 ); in silk_InitEncoder()
170 celt_assert( 0 ); in silk_Encode()
206 celt_assert( 0 ); in silk_Encode()
222 celt_assert( !ret ); in silk_Encode()
235 celt_assert( 0 ); in silk_Encode()
241 celt_assert( 0 ); in silk_Encode()
262celt_assert( encControl->nChannelsInternal == 1 || psEnc->state_Fxx[ 0 ].sCmn.fs_kHz == psEnc->sta… in silk_Encode()
320 celt_assert( encControl->nChannelsAPI == 1 && encControl->nChannelsInternal == 1 ); in silk_Encode()
336celt_assert( psEnc->state_Fxx[ 0 ].sCmn.inputBufIx == psEnc->state_Fxx[ 0 ].sCmn.frame_length ); in silk_Encode()
[all …]
Dinterpolate.c45 celt_assert( ifact_Q2 >= 0 ); in silk_interpolate()
46 celt_assert( ifact_Q2 <= 4 ); in silk_interpolate()
/external/libopus/silk/float/
Dpitch_analysis_core_FLP.c112 celt_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); in silk_pitch_analysis_core_FLP()
115 celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); in silk_pitch_analysis_core_FLP()
116 celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); in silk_pitch_analysis_core_FLP()
151 celt_assert( Fs_kHz == 8 ); in silk_pitch_analysis_core_FLP()
172 celt_assert( target_ptr >= frame_4kHz ); in silk_pitch_analysis_core_FLP()
173 celt_assert( target_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core_FLP()
178 celt_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core_FLP()
179 celt_assert( basis_ptr + sf_length_8kHz <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core_FLP()
218 celt_assert( 3 * length_d_srch <= PE_D_SRCH_LENGTH ); in silk_pitch_analysis_core_FLP()
241 celt_assert( length_d_srch > 0 ); in silk_pitch_analysis_core_FLP()
[all …]
Dsort_FLP.c50 celt_assert( K > 0 ); in silk_insertion_sort_decreasing_FLP()
51 celt_assert( L > 0 ); in silk_insertion_sort_decreasing_FLP()
52 celt_assert( L >= K ); in silk_insertion_sort_decreasing_FLP()
/external/libopus/silk/fixed/
Dpitch_analysis_core_FIX.c125 celt_assert( Fs_kHz == 8 || Fs_kHz == 12 || Fs_kHz == 16 ); in silk_pitch_analysis_core()
128 celt_assert( complexity >= SILK_PE_MIN_COMPLEX ); in silk_pitch_analysis_core()
129 celt_assert( complexity <= SILK_PE_MAX_COMPLEX ); in silk_pitch_analysis_core()
167 celt_assert( Fs_kHz == 8 ); in silk_pitch_analysis_core()
191 celt_assert( target_ptr >= frame_4kHz ); in silk_pitch_analysis_core()
192 celt_assert( target_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core()
197 celt_assert( basis_ptr >= frame_4kHz ); in silk_pitch_analysis_core()
198 celt_assert( basis_ptr + SF_LENGTH_8KHZ <= frame_4kHz + frame_length_4kHz ); in silk_pitch_analysis_core()
252 celt_assert( 3 * length_d_srch <= PE_D_SRCH_LENGTH ); in silk_pitch_analysis_core()
277 celt_assert( length_d_srch > 0 ); in silk_pitch_analysis_core()
[all …]
Dapply_sine_window_FIX.c60 celt_assert( win_type == 1 || win_type == 2 ); in silk_apply_sine_window()
63 celt_assert( length >= 16 && length <= 120 ); in silk_apply_sine_window()
64 celt_assert( ( length & 3 ) == 0 ); in silk_apply_sine_window()
68 celt_assert( k >= 0 && k <= 26 ); in silk_apply_sine_window()
Dresidual_energy16_FIX.c50 celt_assert( D >= 0 ); in silk_residual_energy16_covar_FIX()
51 celt_assert( D <= 16 ); in silk_residual_energy16_covar_FIX()
52 celt_assert( cQ > 0 ); in silk_residual_energy16_covar_FIX()
53 celt_assert( cQ < 16 ); in silk_residual_energy16_covar_FIX()
/external/libopus/celt/arm/
Darmcpu.c164 celt_assert(arch == OPUS_ARCH_ARM_V4); in opus_select_arch()
170 celt_assert(arch == OPUS_ARCH_ARM_EDSP); in opus_select_arch()
176 celt_assert(arch == OPUS_ARCH_ARM_MEDIA); in opus_select_arch()
181 celt_assert(arch == OPUS_ARCH_ARM_NEON); in opus_select_arch()
Dpitch_neon_intr.c69 celt_assert(celt_inner_prod_c(x, y, N) == xy); in celt_inner_prod_neon()
123 celt_assert(xy1_c == *xy1); in dual_inner_prod_neon()
124 celt_assert(xy2_c == *xy2); in dual_inner_prod_neon()
228 celt_assert(ABS32(celt_inner_prod_neon_float_c_simulation(x, y, N) - xy) <= VERY_SMALL); in celt_inner_prod_neon()
284 celt_assert(ABS32(xy1_c - *xy1) <= VERY_SMALL); in dual_inner_prod_neon()
285 celt_assert(ABS32(xy2_c - *xy2) <= VERY_SMALL); in dual_inner_prod_neon()
/external/libopus/src/
Dopus_decoder.c84 celt_assert(st->channels == 1 || st->channels == 2); in validate_opus_decoder()
85celt_assert(st->Fs == 48000 || st->Fs == 24000 || st->Fs == 16000 || st->Fs == 12000 || st->Fs == … in validate_opus_decoder()
86 celt_assert(st->DecControl.API_sampleRate == st->Fs); in validate_opus_decoder()
87celt_assert(st->DecControl.internalSampleRate == 0 || st->DecControl.internalSampleRate == 16000 |… in validate_opus_decoder()
88 celt_assert(st->DecControl.nChannelsAPI == st->channels); in validate_opus_decoder()
89celt_assert(st->DecControl.nChannelsInternal == 0 || st->DecControl.nChannelsInternal == 1 || st->… in validate_opus_decoder()
90celt_assert(st->DecControl.payloadSize_ms == 0 || st->DecControl.payloadSize_ms == 10 || st->DecCo… in validate_opus_decoder()
92 celt_assert(st->arch >= 0); in validate_opus_decoder()
93 celt_assert(st->arch <= OPUS_ARCHMASK); in validate_opus_decoder()
95 celt_assert(st->stream_channels == 1 || st->stream_channels == 2); in validate_opus_decoder()
[all …]
Dmapping_matrix.c72 celt_assert(align(data_size) == align(rows * cols * sizeof(opus_int16))); in mapping_matrix_init()
98 celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); in mapping_matrix_multiply_channel_in_float()
134 celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); in mapping_matrix_multiply_channel_out_float()
169 celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); in mapping_matrix_multiply_channel_in_short()
210 celt_assert(input_rows <= matrix->cols && output_rows <= matrix->rows); in mapping_matrix_multiply_channel_out_short()

1234