亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? long_ter.c

?? voice GSM 1.0 Codec
?? C
?? 第 1 頁 / 共 2 頁
字號:
){	register int  	k, lambda;	word		Nc, bc;	float		wt_float[40];	float		dp_float_base[120], * dp_float = dp_float_base + 120;	longword	L_max, L_power;	word		R, S, dmax, scal;	register word	temp;	/*  Search of the optimum scaling of d[0..39].	 */	dmax = 0;	for (k = 0; k <= 39; k++) {		temp = d[k];		temp = GSM_ABS( temp );		if (temp > dmax) dmax = temp;	}	temp = 0;	if (dmax == 0) scal = 0;	else {		assert(dmax > 0);		temp = gsm_norm( (longword)dmax << 16 );	}	if (temp > 6) scal = 0;	else scal = 6 - temp;	assert(scal >= 0);	/*  Initialization of a working array wt	 */	for (k =    0; k < 40; k++) wt_float[k] =  SASR( d[k], scal );	for (k = -120; k <  0; k++) dp_float[k] =  dp[k];	/* Search for the maximum cross-correlation and coding of the LTP lag	 */	L_max = 0;	Nc    = 40;	/* index for the maximum cross-correlation */	for (lambda = 40; lambda <= 120; lambda += 9) {		/*  Calculate L_result for l = lambda .. lambda + 9.		 */		register float *lp = dp_float - lambda;		register float	W;		register float	a = lp[-8], b = lp[-7], c = lp[-6],				d = lp[-5], e = lp[-4], f = lp[-3],				g = lp[-2], h = lp[-1];		register float  E; 		register float  S0 = 0, S1 = 0, S2 = 0, S3 = 0, S4 = 0,				S5 = 0, S6 = 0, S7 = 0, S8 = 0;#		undef STEP#		define	STEP(K, a, b, c, d, e, f, g, h) \			W = wt_float[K];		\			E = W * a; S8 += E;		\			E = W * b; S7 += E;		\			E = W * c; S6 += E;		\			E = W * d; S5 += E;		\			E = W * e; S4 += E;		\			E = W * f; S3 += E;		\			E = W * g; S2 += E;		\			E = W * h; S1 += E;		\			a  = lp[K];			\			E = W * a; S0 += E#		define	STEP_A(K)	STEP(K, a, b, c, d, e, f, g, h)#		define	STEP_B(K)	STEP(K, b, c, d, e, f, g, h, a)#		define	STEP_C(K)	STEP(K, c, d, e, f, g, h, a, b)#		define	STEP_D(K)	STEP(K, d, e, f, g, h, a, b, c)#		define	STEP_E(K)	STEP(K, e, f, g, h, a, b, c, d)#		define	STEP_F(K)	STEP(K, f, g, h, a, b, c, d, e)#		define	STEP_G(K)	STEP(K, g, h, a, b, c, d, e, f)#		define	STEP_H(K)	STEP(K, h, a, b, c, d, e, f, g)		STEP_A( 0); STEP_B( 1); STEP_C( 2); STEP_D( 3);		STEP_E( 4); STEP_F( 5); STEP_G( 6); STEP_H( 7);		STEP_A( 8); STEP_B( 9); STEP_C(10); STEP_D(11);		STEP_E(12); STEP_F(13); STEP_G(14); STEP_H(15);		STEP_A(16); STEP_B(17); STEP_C(18); STEP_D(19);		STEP_E(20); STEP_F(21); STEP_G(22); STEP_H(23);		STEP_A(24); STEP_B(25); STEP_C(26); STEP_D(27);		STEP_E(28); STEP_F(29); STEP_G(30); STEP_H(31);		STEP_A(32); STEP_B(33); STEP_C(34); STEP_D(35);		STEP_E(36); STEP_F(37); STEP_G(38); STEP_H(39);		if (S0 > L_max) { L_max = S0; Nc = lambda;     }		if (S1 > L_max) { L_max = S1; Nc = lambda + 1; }		if (S2 > L_max) { L_max = S2; Nc = lambda + 2; }		if (S3 > L_max) { L_max = S3; Nc = lambda + 3; }		if (S4 > L_max) { L_max = S4; Nc = lambda + 4; }		if (S5 > L_max) { L_max = S5; Nc = lambda + 5; }		if (S6 > L_max) { L_max = S6; Nc = lambda + 6; }		if (S7 > L_max) { L_max = S7; Nc = lambda + 7; }		if (S8 > L_max) { L_max = S8; Nc = lambda + 8; }	}	*Nc_out = Nc;	L_max <<= 1;	/*  Rescaling of L_max	 */	assert(scal <= 100 && scal >=  -100);	L_max = L_max >> (6 - scal);	/* sub(6, scal) */	assert( Nc <= 120 && Nc >= 40);	/*   Compute the power of the reconstructed short term residual	 *   signal dp[..]	 */	L_power = 0;	for (k = 0; k <= 39; k++) {		register longword L_temp;		L_temp   = SASR( dp[k - Nc], 3 );		L_power += L_temp * L_temp;	}	L_power <<= 1;	/* from L_MULT */	/*  Normalization of L_max and L_power	 */	if (L_max <= 0)  {		*bc_out = 0;		return;	}	if (L_max >= L_power) {		*bc_out = 3;		return;	}	temp = gsm_norm( L_power );	R = SASR( L_max   << temp, 16 );	S = SASR( L_power << temp, 16 );	/*  Coding of the LTP gain	 */	/*  Table 4.3a must be used to obtain the level DLB[i] for the	 *  quantization of the LTP gain b to get the coded version bc.	 */	for (bc = 0; bc <= 2; bc++) if (R <= gsm_mult(S, gsm_DLB[bc])) break;	*bc_out = bc;}#ifdef	FAST#ifdef	LTP_CUTstatic void Cut_Fast_Calculation_of_the_LTP_parameters P5((st,							d,dp,bc_out,Nc_out),	struct gsm_state * st,		/*              IN	*/	register word	* d,		/* [0..39]	IN	*/	register word	* dp,		/* [-120..-1]	IN	*/	word		* bc_out,	/* 		OUT	*/	word		* Nc_out	/* 		OUT	*/){	register int  	k, lambda;	register float	wt_float;	word		Nc, bc;	word		wt_max, best_k, ltp_cut;	float		dp_float_base[120], * dp_float = dp_float_base + 120;	register float	L_result, L_max, L_power;	wt_max = 0;	for (k = 0; k < 40; ++k) {		if      ( d[k] > wt_max) wt_max =  d[best_k = k];		else if (-d[k] > wt_max) wt_max = -d[best_k = k];	}	assert(wt_max >= 0);	wt_float = (float)wt_max;	for (k = -120; k < 0; ++k) dp_float[k] = (float)dp[k];	/* Search for the maximum cross-correlation and coding of the LTP lag	 */	L_max = 0;	Nc    = 40;	/* index for the maximum cross-correlation */	for (lambda = 40; lambda <= 120; lambda++) {		L_result = wt_float * dp_float[best_k - lambda];		if (L_result > L_max) {			Nc    = lambda;			L_max = L_result;		}	}	*Nc_out = Nc;	if (L_max <= 0.)  {		*bc_out = 0;		return;	}	/*  Compute the power of the reconstructed short term residual	 *  signal dp[..]	 */	dp_float -= Nc;	L_power = 0;	for (k = 0; k < 40; ++k) {		register float f = dp_float[k];		L_power += f * f;	}	if (L_max >= L_power) {		*bc_out = 3;		return;	}	/*  Coding of the LTP gain	 *  Table 4.3a must be used to obtain the level DLB[i] for the	 *  quantization of the LTP gain b to get the coded version bc.	 */	lambda = L_max / L_power * 32768.;	for (bc = 0; bc <= 2; ++bc) if (lambda <= gsm_DLB[bc]) break;	*bc_out = bc;}#endif /* LTP_CUT */static void Fast_Calculation_of_the_LTP_parameters P4((d,dp,bc_out,Nc_out),	register word	* d,		/* [0..39]	IN	*/	register word	* dp,		/* [-120..-1]	IN	*/	word		* bc_out,	/* 		OUT	*/	word		* Nc_out	/* 		OUT	*/){	register int  	k, lambda;	word		Nc, bc;	float		wt_float[40];	float		dp_float_base[120], * dp_float = dp_float_base + 120;	register float	L_max, L_power;	for (k = 0; k < 40; ++k) wt_float[k] = (float)d[k];	for (k = -120; k <= 0; ++k) dp_float[k] = (float)dp[k];	/* Search for the maximum cross-correlation and coding of the LTP lag	 */	L_max = 0;	Nc    = 40;	/* index for the maximum cross-correlation */	for (lambda = 40; lambda <= 120; lambda += 9) {		/*  Calculate L_result for l = lambda .. lambda + 9.		 */		register float *lp = dp_float - lambda;		register float	W;		register float	a = lp[-8], b = lp[-7], c = lp[-6],				d = lp[-5], e = lp[-4], f = lp[-3],				g = lp[-2], h = lp[-1];		register float  E; 		register float  S0 = 0, S1 = 0, S2 = 0, S3 = 0, S4 = 0,				S5 = 0, S6 = 0, S7 = 0, S8 = 0;#		undef STEP#		define	STEP(K, a, b, c, d, e, f, g, h) \			W = wt_float[K];		\			E = W * a; S8 += E;		\			E = W * b; S7 += E;		\			E = W * c; S6 += E;		\			E = W * d; S5 += E;		\			E = W * e; S4 += E;		\			E = W * f; S3 += E;		\			E = W * g; S2 += E;		\			E = W * h; S1 += E;		\			a  = lp[K];			\			E = W * a; S0 += E#		define	STEP_A(K)	STEP(K, a, b, c, d, e, f, g, h)#		define	STEP_B(K)	STEP(K, b, c, d, e, f, g, h, a)#		define	STEP_C(K)	STEP(K, c, d, e, f, g, h, a, b)#		define	STEP_D(K)	STEP(K, d, e, f, g, h, a, b, c)#		define	STEP_E(K)	STEP(K, e, f, g, h, a, b, c, d)#		define	STEP_F(K)	STEP(K, f, g, h, a, b, c, d, e)#		define	STEP_G(K)	STEP(K, g, h, a, b, c, d, e, f)#		define	STEP_H(K)	STEP(K, h, a, b, c, d, e, f, g)		STEP_A( 0); STEP_B( 1); STEP_C( 2); STEP_D( 3);		STEP_E( 4); STEP_F( 5); STEP_G( 6); STEP_H( 7);		STEP_A( 8); STEP_B( 9); STEP_C(10); STEP_D(11);		STEP_E(12); STEP_F(13); STEP_G(14); STEP_H(15);		STEP_A(16); STEP_B(17); STEP_C(18); STEP_D(19);		STEP_E(20); STEP_F(21); STEP_G(22); STEP_H(23);		STEP_A(24); STEP_B(25); STEP_C(26); STEP_D(27);		STEP_E(28); STEP_F(29); STEP_G(30); STEP_H(31);		STEP_A(32); STEP_B(33); STEP_C(34); STEP_D(35);		STEP_E(36); STEP_F(37); STEP_G(38); STEP_H(39);		if (S0 > L_max) { L_max = S0; Nc = lambda;     }		if (S1 > L_max) { L_max = S1; Nc = lambda + 1; }		if (S2 > L_max) { L_max = S2; Nc = lambda + 2; }		if (S3 > L_max) { L_max = S3; Nc = lambda + 3; }		if (S4 > L_max) { L_max = S4; Nc = lambda + 4; }		if (S5 > L_max) { L_max = S5; Nc = lambda + 5; }		if (S6 > L_max) { L_max = S6; Nc = lambda + 6; }		if (S7 > L_max) { L_max = S7; Nc = lambda + 7; }		if (S8 > L_max) { L_max = S8; Nc = lambda + 8; }	}	*Nc_out = Nc;	if (L_max <= 0.)  {		*bc_out = 0;		return;	}	/*  Compute the power of the reconstructed short term residual	 *  signal dp[..]	 */	dp_float -= Nc;	L_power = 0;	for (k = 0; k < 40; ++k) {		register float f = dp_float[k];		L_power += f * f;	}	if (L_max >= L_power) {		*bc_out = 3;		return;	}	/*  Coding of the LTP gain	 *  Table 4.3a must be used to obtain the level DLB[i] for the	 *  quantization of the LTP gain b to get the coded version bc.	 */	lambda = L_max / L_power * 32768.;	for (bc = 0; bc <= 2; ++bc) if (lambda <= gsm_DLB[bc]) break;	*bc_out = bc;}#endif	/* FAST 	 */#endif	/* USE_FLOAT_MUL *//* 4.2.12 */static void Long_term_analysis_filtering P6((bc,Nc,dp,d,dpp,e),	word		bc,	/* 					IN  */	word		Nc,	/* 					IN  */	register word	* dp,	/* previous d	[-120..-1]		IN  */	register word	* d,	/* d		[0..39]			IN  */	register word	* dpp,	/* estimate	[0..39]			OUT */	register word	* e	/* long term res. signal [0..39]	OUT */)/* *  In this part, we have to decode the bc parameter to compute *  the samples of the estimate dpp[0..39].  The decoding of bc needs the *  use of table 4.3b.  The long term residual signal e[0..39] *  is then calculated to be fed to the RPE encoding section. */{	register int      k;	register longword ltmp;#	undef STEP#	define STEP(BP)					\	for (k = 0; k <= 39; k++) {			\		dpp[k]  = GSM_MULT_R( BP, dp[k - Nc]);	\		e[k]	= GSM_SUB( d[k], dpp[k] );	\	}	switch (bc) {	case 0:	STEP(  3277 ); break;	case 1:	STEP( 11469 ); break;	case 2: STEP( 21299 ); break;	case 3: STEP( 32767 ); break; 	}}void Gsm_Long_Term_Predictor P7((S,d,dp,e,dpp,Nc,bc), 	/* 4x for 160 samples */	struct gsm_state	* S,	word	* d,	/* [0..39]   residual signal	IN	*/	word	* dp,	/* [-120..-1] d'		IN	*/	word	* e,	/* [0..39] 			OUT	*/	word	* dpp,	/* [0..39] 			OUT	*/	word	* Nc,	/* correlation lag		OUT	*/	word	* bc	/* gain factor			OUT	*/){	assert( d  ); assert( dp ); assert( e  );	assert( dpp); assert( Nc ); assert( bc );#if defined(FAST) && defined(USE_FLOAT_MUL)	if (S->fast) #if   defined (LTP_CUT)		if (S->ltp_cut)			Cut_Fast_Calculation_of_the_LTP_parameters(S,				d, dp, bc, Nc);		else#endif /* LTP_CUT */			Fast_Calculation_of_the_LTP_parameters(d, dp, bc, Nc );	else #endif /* FAST & USE_FLOAT_MUL */#ifdef LTP_CUT		if (S->ltp_cut)			Cut_Calculation_of_the_LTP_parameters(S, d, dp, bc, Nc);		else#endif			Calculation_of_the_LTP_parameters(d, dp, bc, Nc);	Long_term_analysis_filtering( *bc, *Nc, dp, d, dpp, e );}/* 4.3.2 */void Gsm_Long_Term_Synthesis_Filtering P5((S,Ncr,bcr,erp,drp),	struct gsm_state	* S,	word			Ncr,	word			bcr,	register word		* erp,	   /* [0..39]		  	 IN */	register word		* drp	   /* [-120..-1] IN, [-120..40] OUT */)/* *  This procedure uses the bcr and Ncr parameter to realize the *  long term synthesis filtering.  The decoding of bcr needs *  table 4.3b. */{	register longword	ltmp;	/* for ADD */	register int 		k;	word			brp, drpp, Nr;	/*  Check the limits of Nr.	 */	Nr = Ncr < 40 || Ncr > 120 ? S->nrp : Ncr;	S->nrp = Nr;	assert(Nr >= 40 && Nr <= 120);	/*  Decoding of the LTP gain bcr	 */	brp = gsm_QLB[ bcr ];	/*  Computation of the reconstructed short term residual 	 *  signal drp[0..39]	 */	assert(brp != MIN_WORD);	for (k = 0; k <= 39; k++) {		drpp   = GSM_MULT_R( brp, drp[ k - Nr ] );		drp[k] = GSM_ADD( erp[k], drpp );	}	/*	 *  Update of the reconstructed short term residual signal	 *  drp[ -1..-120 ]	 */	for (k = 0; k <= 119; k++) drp[ -120 + k ] = drp[ -80 + k ];}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 日本少妇一区二区| 美女视频黄a大片欧美| 国产精品1区2区| 99精品视频在线观看| 欧美日韩免费电影| 精品国产一区a| 亚洲靠逼com| 久久成人免费日本黄色| 97久久超碰精品国产| 欧美一级久久久久久久大片| 国产不卡一区视频| 色综合激情久久| 日韩久久久精品| 中文字幕在线不卡| 另类调教123区| 91原创在线视频| www久久精品| 五月天网站亚洲| 暴力调教一区二区三区| 日韩免费福利电影在线观看| 亚洲美女视频一区| 国产成人99久久亚洲综合精品| 欧美日韩aaaaa| 亚洲在线视频网站| 懂色av噜噜一区二区三区av| 日韩欧美专区在线| 首页国产欧美久久| 欧美日韩一区二区三区四区 | 亚洲在线观看免费视频| 国产美女精品人人做人人爽| 在线成人av影院| 婷婷久久综合九色综合伊人色| 99vv1com这只有精品| 国产精品视频在线看| 国产美女视频91| 国产亚洲精品7777| 国模一区二区三区白浆| 欧美电影精品一区二区 | 欧洲一区在线观看| 亚洲五码中文字幕| 欧美日韩国产综合久久| 午夜亚洲国产au精品一区二区| 欧美视频在线播放| 免费视频最近日韩| 亚洲精品一线二线三线无人区| 蜜臀av一区二区在线观看| 精品国产在天天线2019| 风流少妇一区二区| 亚洲同性同志一二三专区| 在线一区二区三区四区五区| 亚洲国产va精品久久久不卡综合| 日韩欧美国产午夜精品| 国产精品亚洲专一区二区三区| 国产精品区一区二区三区| av欧美精品.com| 丝袜美腿高跟呻吟高潮一区| 2020国产精品久久精品美国| 国产99一区视频免费| 亚洲国产精品久久人人爱| 日韩视频在线观看一区二区| 成人一区在线看| 午夜成人免费电影| 欧美性色欧美a在线播放| 日本v片在线高清不卡在线观看| 久久嫩草精品久久久精品一| 欧美在线不卡一区| 国产精品一二三四五| 亚洲成a人在线观看| 久久久99久久| 日韩一级黄色大片| 色呦呦国产精品| 成人av在线观| 国产一区二区按摩在线观看| 亚洲电影你懂得| 亚洲婷婷在线视频| 亚洲国产精品成人综合| 欧美不卡激情三级在线观看| 在线视频你懂得一区| 成人免费视频caoporn| 九九视频精品免费| 日本中文在线一区| 五月婷婷激情综合网| 亚洲一区成人在线| 亚洲综合久久久久| 亚洲一区二区精品3399| 伊人色综合久久天天| 亚洲免费av在线| 一区二区三区在线观看视频| 一区二区中文视频| 夜夜精品浪潮av一区二区三区| 国产精品久久久久国产精品日日| 国产亚洲综合av| 国产精品伦理一区二区| 国产精品福利影院| 亚洲免费看黄网站| 亚洲国产美国国产综合一区二区| 亚洲va欧美va天堂v国产综合| 亚洲成人av福利| 蜜臀av亚洲一区中文字幕| 久久国产精品99精品国产| 国产剧情av麻豆香蕉精品| 国产丶欧美丶日本不卡视频| 成人午夜大片免费观看| 91麻豆免费观看| 91 com成人网| 久久综合色综合88| 国产精品久久久久永久免费观看| 亚洲黄色在线视频| 人人超碰91尤物精品国产| 国产精品69久久久久水密桃| 91免费视频观看| 欧美成人三级电影在线| 国产精品色哟哟| 婷婷综合久久一区二区三区| 韩日欧美一区二区三区| 色综合天天做天天爱| 日韩欧美一级精品久久| 综合久久给合久久狠狠狠97色| 日本亚洲最大的色成网站www| 国产一区在线不卡| 欧美日本一区二区| 国产精品短视频| 精品亚洲免费视频| 欧美亚日韩国产aⅴ精品中极品| 日韩一卡二卡三卡四卡| 欧美在线|欧美| 欧美疯狂性受xxxxx喷水图片| 日本一区二区三区国色天香 | 亚洲一区在线看| 激情五月激情综合网| 一本到一区二区三区| 中文字幕精品在线不卡| 开心九九激情九九欧美日韩精美视频电影 | 久久久精品国产免费观看同学| 亚洲精品免费在线播放| 经典三级一区二区| 日韩欧美一二区| 99久久久久久| 1000精品久久久久久久久| 国产成人自拍在线| 国产亚洲女人久久久久毛片| 久久精品国产99国产| 欧美一区二区三区在线看| 午夜精品在线看| 日韩一区二区在线看片| 麻豆91精品视频| 精品女同一区二区| 久久99深爱久久99精品| 日韩欧美激情四射| 国产黄色精品视频| 1000部国产精品成人观看| 成人av在线一区二区三区| 综合亚洲深深色噜噜狠狠网站| 91色porny蝌蚪| 亚洲国产毛片aaaaa无费看 | 国产精品不卡在线观看| 91在线观看美女| 亚洲成人先锋电影| 日韩女优电影在线观看| 国产精品一区免费在线观看| 国产精品久久久久婷婷| 色综合天天综合色综合av| 亚洲伊人色欲综合网| 精品国产91乱码一区二区三区| 国产精品一区在线观看你懂的| 国产精品久久久久国产精品日日| 在线观看免费视频综合| 久久国产精品99久久久久久老狼| 国产视频一区二区三区在线观看| 色婷婷一区二区三区四区| 免费在线观看一区二区三区| 久久精品人人做人人爽人人| 欧美综合一区二区三区| 久久丁香综合五月国产三级网站| 日韩码欧中文字| www国产精品av| 欧美精品一卡二卡| www.成人网.com| 久久99日本精品| 亚洲自拍偷拍av| 国产精品久久久久aaaa樱花| 欧美一区二区免费视频| 91蜜桃视频在线| 国产成人免费9x9x人网站视频| 视频一区免费在线观看| 国产精品久久久久久久久免费桃花| 日韩欧美成人午夜| 欧美一二三区在线| 国产一区二区中文字幕| 亚洲一区二区三区小说| 欧美激情一区二区三区四区| 欧美夫妻性生活| 欧美日韩美少妇| 欧美久久久一区| 欧美视频一区二区三区四区| 色综合久久久网| 91福利国产成人精品照片| 91久久精品午夜一区二区| 97精品电影院|