/external/libopus/silk/ |
decode_pitch.c | 43 const opus_int nb_subfr /* I number of sub frames */ 50 if( nb_subfr == PE_MAX_NB_SUBFR ) { 54 silk_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); 59 if( nb_subfr == PE_MAX_NB_SUBFR ) { 63 silk_assert( nb_subfr == PE_MAX_NB_SUBFR >> 1 ); 73 for( k = 0; k < nb_subfr; k++ ) {
|
decoder_set_fs.c | 44 silk_assert( psDec->nb_subfr == MAX_NB_SUBFR || psDec->nb_subfr == MAX_NB_SUBFR/2 ); 48 frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length ); 60 if( psDec->nb_subfr == MAX_NB_SUBFR ) { 66 if( psDec->nb_subfr == MAX_NB_SUBFR ) {
|
quant_LTP_gains.c | 43 const opus_int nb_subfr /* I number of subframes */ 78 for( j = 0; j < nb_subfr; j++ ) { 110 silk_memcpy( cbk_index, temp_idx, nb_subfr * sizeof( opus_int8 ) ); 121 for( j = 0; j < nb_subfr; j++ ) {
|
gain_quant.c | 44 const opus_int nb_subfr /* I number of subframes */ 49 for( k = 0; k < nb_subfr; k++ ) { 98 const opus_int nb_subfr /* I number of subframes */ 103 for( k = 0; k < nb_subfr; k++ ) { 129 const opus_int nb_subfr /* I number of subframes */ 136 for( k = 0; k < nb_subfr; k++ ) {
|
encode_indices.c | 83 for( i = 1; i < psEncC->nb_subfr; i++ ) { 107 if( psEncC->nb_subfr == MAX_NB_SUBFR ) { 145 silk_assert( ( psIndices->contourIndex < 34 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 4 ) || 146 ( psIndices->contourIndex < 11 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 4 ) || 147 ( psIndices->contourIndex < 12 && psEncC->fs_kHz > 8 && psEncC->nb_subfr == 2 ) || 148 ( psIndices->contourIndex < 3 && psEncC->fs_kHz == 8 && psEncC->nb_subfr == 2 ) ); 159 for( k = 0; k < psEncC->nb_subfr; k++ ) {
|
PLC.c | 61 psDec->sPLC.nb_subfr = 2; 111 for( j = 0; j * psDec->subfr_length < psDecCtrl->pitchL[ psDec->nb_subfr - 1 ]; j++ ) { 112 if( j == psDec->nb_subfr ) { 117 temp_LTP_Gain_Q14 += psDecCtrl->LTPCoef_Q14[ ( psDec->nb_subfr - 1 - j ) * LTP_ORDER + i ]; 122 &psDecCtrl->LTPCoef_Q14[ silk_SMULBB( psDec->nb_subfr - 1 - j, LTP_ORDER ) ], 125 psPLC->pitchL_Q8 = silk_LSHIFT( psDecCtrl->pitchL[ psDec->nb_subfr - 1 - j ], 8 ); 162 silk_memcpy( psPLC->prevGain_Q16, &psDecCtrl->Gains_Q16[ psDec->nb_subfr - 2 ], 2 * sizeof( opus_int32 ) ); 165 psPLC->nb_subfr = psDec->nb_subfr; 207 silk_SMULWW( psDec->exc_Q14[ i + ( k + psPLC->nb_subfr - 2 ) * psPLC->subfr_length ], prevGain_Q10[ k ] ), 8 ) ) [all...] |
decode_parameters.c | 47 &psDec->LastGainIndex, condCoding == CODE_CONDITIONALLY, psDec->nb_subfr ); 92 silk_decode_pitch( psDec->indices.lagIndex, psDec->indices.contourIndex, psDecCtrl->pitchL, psDec->fs_kHz, psDec->nb_subfr ); 97 for( k = 0; k < psDec->nb_subfr; k++ ) { 110 silk_memset( psDecCtrl->pitchL, 0, psDec->nb_subfr * sizeof( opus_int ) ); 111 silk_memset( psDecCtrl->LTPCoef_Q14, 0, LTP_ORDER * psDec->nb_subfr * sizeof( opus_int16 ) );
|
control_codec.c | 161 buf_length_ms = silk_LSHIFT( psEnc->sCmn.nb_subfr * 5, 1 ) + LA_SHAPE_MS; 218 psEnc->sCmn.nb_subfr = PacketSize_ms == 10 ? 2 : 1; 228 psEnc->sCmn.nb_subfr = MAX_NB_SUBFR; 243 silk_assert( psEnc->sCmn.nb_subfr == 2 || psEnc->sCmn.nb_subfr == 4 ); 266 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { 272 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { 286 psEnc->sCmn.frame_length = silk_SMULBB( psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr ); 290 if( psEnc->sCmn.nb_subfr == MAX_NB_SUBFR ) { 308 silk_assert( ( psEnc->sCmn.subfr_length * psEnc->sCmn.nb_subfr ) == psEnc->sCmn.frame_length ) [all...] |
/external/libopus/silk/fixed/ |
pitch_analysis_core_FIX.c | 64 opus_int nb_subfr, /* I number of subframes */ 74 opus_int nb_subfr, /* I number of subframes */ 92 const opus_int nb_subfr, /* I number of 5 ms subframes */ 132 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; 133 frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; 134 frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; 179 ALLOC( C, nb_subfr * CSTRIDE_8KHZ, opus_int16 ); 181 silk_memset( C, 0, (nb_subfr >> 1) * CSTRIDE_4KHZ * sizeof( opus_int16 ) ); 183 for( k = 0; k < nb_subfr >> 1; k++ ) { 228 if( nb_subfr == PE_MAX_NB_SUBFR ) [all...] |
find_pred_coefs_FIX.c | 55 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 58 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 77 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder 87 ALLOC( WLTP, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 ); 92 psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length, LTP_corrs_rshift ); 96 &psEnc->sCmn.sum_log_gain_Q7, WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr); 103 psEncCtrl->pitchL, invGains_Q16, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); 112 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 119 silk_memset( psEncCtrl->LTPCoef_Q14, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( opus_int16 ) ); 142 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ) [all...] |
residual_energy_FIX.c | 44 const opus_int nb_subfr, /* I Number of subframes */ 60 silk_assert( ( nb_subfr >> 1 ) * ( MAX_NB_SUBFR >> 1 ) == nb_subfr ); 61 for( i = 0; i < nb_subfr >> 1; i++ ) { 82 for( i = 0; i < nb_subfr; i++ ) {
|
find_LTP_FIX.c | 51 const opus_int nb_subfr, /* I number of subframes */ 75 for( k = 0; k < nb_subfr; k++ ) { 141 for( k = 0; k < nb_subfr; k++ ) { 150 for( k = 0; k < nb_subfr; k++ ) { 165 for( k = 0; k < nb_subfr; k++ ) { 178 for( k = 0; k < nb_subfr; k++ ) { 199 for( k = 0; k < nb_subfr; k++ ) { 207 for( k = 0; k < nb_subfr; k++ ) {
|
burg_modified_FIX.c | 37 #define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384 */ 49 const opus_int16 x[], /* I Input signal, length: nb_subfr * ( D + subfr_length ) */ 52 const opus_int nb_subfr, /* I Number of subframes stacked in x */ 67 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); 70 silk_sum_sqr_shift( &C0, &rshifts, x, nb_subfr * subfr_length ); 90 for( s = 0; s < nb_subfr; s++ ) { 98 for( s = 0; s < nb_subfr; s++ ) { 126 for( s = 0; s < nb_subfr; s++ ) { 147 for( s = 0; s < nb_subfr; s++ ) { 253 for( s = 0; s < nb_subfr; s++ ) [all...] |
process_gains_FIX.c | 50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 60 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 90 silk_memcpy( psEncCtrl->GainsUnq_Q16, psEncCtrl->Gains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); 95 &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr );
|
LTP_analysis_filter_FIX.c | 41 const opus_int nb_subfr, /* I Number of subframes */ 53 for( k = 0; k < nb_subfr; k++ ) {
|
/external/libopus/silk/float/ |
wrappers_FLP.c | 120 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 126 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 135 for( i = 0; i < psEnc->sCmn.nb_subfr * LTP_ORDER; i++ ) { 145 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 182 const opus_int nb_subfr /* I number of subframes */ 189 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) { 192 for( i = 0; i < nb_subfr * LTP_ORDER * LTP_ORDER; i++ ) { 196 silk_quant_LTP_gains( B_Q14, cbk_index, periodicity_index, sum_log_gain_Q7, W_Q18, mu_Q10, lowComplexity, nb_subfr ); 198 for( i = 0; i < nb_subfr * LTP_ORDER; i++ ) {
|
pitch_analysis_core_FLP.c | 50 opus_int nb_subfr, /* I number of subframes */ 60 opus_int nb_subfr, /* I number of subframes */ 69 opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ 78 const opus_int nb_subfr, /* I Number of 5 ms subframes */ 122 frame_length = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * Fs_kHz; 123 frame_length_4kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 4; 124 frame_length_8kHz = ( PE_LTP_MEM_LENGTH_MS + nb_subfr * PE_SUBFR_LENGTH_MS ) * 8; 168 silk_memset(C, 0, sizeof(silk_float) * nb_subfr * ((PE_MAX_LAG >> 1) + 5)); 170 for( k = 0; k < nb_subfr >> 1; k++ ) { 224 silk_memset( pitch_out, 0, nb_subfr * sizeof( opus_int ) ) [all...] |
find_LTP_FLP.c | 43 const opus_int nb_subfr, /* I number of subframes */ 58 for( k = 0; k < nb_subfr; k++ ) { 88 for( k = 0; k < nb_subfr; k++ ) { 100 for( k = 0; k < nb_subfr; k++ ) { 109 for( k = 0; k < nb_subfr; k++ ) { 113 for( k = 0; k < nb_subfr; k++ ) { 119 for( k = 0; k < nb_subfr; k++ ) {
|
find_pred_coefs_FLP.c | 52 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 66 psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length ); 70 &psEnc->sCmn.sum_log_gain_Q7, WLTP, psEnc->sCmn.mu_LTP_Q9, psEnc->sCmn.LTPQuantLowComplexity, psEnc->sCmn.nb_subfr ); 77 psEncCtrl->pitchL, invGains, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder ); 85 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 91 silk_memset( psEncCtrl->LTPCoef, 0, psEnc->sCmn.nb_subfr * LTP_ORDER * sizeof( silk_float ) ); 112 psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.predictLPCOrder );
|
burg_modified_FLP.c | 36 #define MAX_FRAME_SIZE 384 /* subfr_length * nb_subfr = ( 0.005 * 16000 + 16 ) * 4 = 384*/ 41 const silk_float x[], /* I input signal, length: nb_subfr*(D+L_sub) */ 44 const opus_int nb_subfr, /* I number of subframes stacked in x */ 55 silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE ); 58 C0 = silk_energy_FLP( x, nb_subfr * subfr_length ); 60 for( s = 0; s < nb_subfr; s++ ) { 77 for( s = 0; s < nb_subfr; s++ ) { 166 for( s = 0; s < nb_subfr; s++ ) {
|
process_gains_FLP.c | 50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 58 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 66 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 71 silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) ); 76 &psShapeSt->LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); 79 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
|
find_LPC_FLP.c | 59 res_nrg = silk_burg_modified_FLP( a, x, minInvGain, subfr_length, psEncC->nb_subfr, psEncC->predictLPCOrder ); 61 if( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) { 103 ( psEncC->useInterpolatedNLSFs && !psEncC->first_frame_after_reset && psEncC->nb_subfr == MAX_NB_SUBFR ) );
|
LTP_analysis_filter_FLP.c | 41 const opus_int nb_subfr, /* I number of subframes */ 53 for( k = 0; k < nb_subfr; k++ ) {
|
SigProc_FLP.h | 88 opus_int *pitch_out, /* O Pitch lag values [nb_subfr] */ 97 const opus_int nb_subfr, /* I Number of 5 ms subframes */ 111 const silk_float x[], /* I input signal, length: nb_subfr*(D+L_sub) */ 114 const opus_int nb_subfr, /* I number of subframes stacked in x */
|
encode_frame_FLP.c | 164 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); 274 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 281 &psEnc->sShape.LastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); 284 gainsID = silk_gains_ID( psEnc->sCmn.indices.GainsIndices, psEnc->sCmn.nb_subfr ); 287 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) { 305 psEnc->sCmn.prevLag = sEncCtrl.pitchL[ psEnc->sCmn.nb_subfr - 1 ]; 343 silk_memcpy( TempGains, psEncCtrl->Gains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ); 356 &psEnc->sCmn.LBRRprevLastGainIndex, condCoding == CODE_CONDITIONALLY, psEnc->sCmn.nb_subfr ); 359 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) { 370 silk_memcpy( psEncCtrl->Gains, TempGains, psEnc->sCmn.nb_subfr * sizeof( silk_float ) ) [all...] |