Lines Matching defs:Nc
23 * This module computes the LTP gain (bc) and the LTP lag (Nc)
60 word Nc, bc;
94 Nc = 40; /* index for the maximum cross-correlation */
100 Nc = lambda;
104 *Nc_out = Nc;
112 assert( Nc <= 120 && Nc >= 40);
122 L_temp = SASR( dp[k - Nc], 3 );
164 word Nc, bc;
201 Nc = 40; /* index for the maximum cross-correlation */
233 Nc = lambda;
238 *Nc_out = Nc;
247 assert( Nc <= 120 && Nc >= 40);
257 L_temp = SASR( dp[k - Nc], 3 );
302 word Nc, bc;
353 Nc = 40; /* index for the maximum cross-correlation */
407 if (S0 > L_max) { L_max = S0; Nc = lambda; }
408 if (S1 > L_max) { L_max = S1; Nc = lambda + 1; }
409 if (S2 > L_max) { L_max = S2; Nc = lambda + 2; }
410 if (S3 > L_max) { L_max = S3; Nc = lambda + 3; }
411 if (S4 > L_max) { L_max = S4; Nc = lambda + 4; }
412 if (S5 > L_max) { L_max = S5; Nc = lambda + 5; }
413 if (S6 > L_max) { L_max = S6; Nc = lambda + 6; }
414 if (S7 > L_max) { L_max = S7; Nc = lambda + 7; }
415 if (S8 > L_max) { L_max = S8; Nc = lambda + 8; }
418 *Nc_out = Nc;
427 assert( Nc <= 120 && Nc >= 40);
437 L_temp = SASR( dp[k - Nc], 3 );
479 word Nc, bc;
519 Nc = 40; /* index for the maximum cross-correlation */
573 if (S0 > L_max) { L_max = S0; Nc = lambda; }
574 if (S1 > L_max) { L_max = S1; Nc = lambda + 1; }
575 if (S2 > L_max) { L_max = S2; Nc = lambda + 2; }
576 if (S3 > L_max) { L_max = S3; Nc = lambda + 3; }
577 if (S4 > L_max) { L_max = S4; Nc = lambda + 4; }
578 if (S5 > L_max) { L_max = S5; Nc = lambda + 5; }
579 if (S6 > L_max) { L_max = S6; Nc = lambda + 6; }
580 if (S7 > L_max) { L_max = S7; Nc = lambda + 7; }
581 if (S8 > L_max) { L_max = S8; Nc = lambda + 8; }
583 *Nc_out = Nc;
592 assert( Nc <= 120 && Nc >= 40);
602 L_temp = SASR( dp[k - Nc], 3 );
648 word Nc, bc;
670 Nc = 40; /* index for the maximum cross-correlation */
675 Nc = lambda;
680 *Nc_out = Nc;
689 dp_float -= Nc;
720 word Nc, bc;
733 Nc = 40; /* index for the maximum cross-correlation */
787 if (S0 > L_max) { L_max = S0; Nc = lambda; }
788 if (S1 > L_max) { L_max = S1; Nc = lambda + 1; }
789 if (S2 > L_max) { L_max = S2; Nc = lambda + 2; }
790 if (S3 > L_max) { L_max = S3; Nc = lambda + 3; }
791 if (S4 > L_max) { L_max = S4; Nc = lambda + 4; }
792 if (S5 > L_max) { L_max = S5; Nc = lambda + 5; }
793 if (S6 > L_max) { L_max = S6; Nc = lambda + 6; }
794 if (S7 > L_max) { L_max = S7; Nc = lambda + 7; }
795 if (S8 > L_max) { L_max = S8; Nc = lambda + 8; }
797 *Nc_out = Nc;
807 dp_float -= Nc;
834 static void Long_term_analysis_filtering P6((bc,Nc,dp,d,dpp,e),
836 word Nc, /* IN */
855 dpp[k] = GSM_MULT_R( BP, dp[k - Nc]); \
867 void Gsm_Long_Term_Predictor P7((S,d,dp,e,dpp,Nc,bc), /* 4x for 160 samples */
876 word * Nc, /* correlation lag OUT */
881 assert( dpp); assert( Nc ); assert( bc );
888 d, dp, bc, Nc);
891 Fast_Calculation_of_the_LTP_parameters(d, dp, bc, Nc );
896 Cut_Calculation_of_the_LTP_parameters(S, d, dp, bc, Nc);
899 Calculation_of_the_LTP_parameters(d, dp, bc, Nc);
901 Long_term_analysis_filtering( *bc, *Nc, dp, d, dpp, e );