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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? long_term.c

?? GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)GSM模塊函數(shù)
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/* * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. *//* $Header: /cvsroot/linphone/linphone/gsmlib/long_term.c,v 1.1.1.1 2001/11/19 19:50:11 smorlat Exp $ */#include <stdio.h>#include <assert.h>#include "private.h"#include "gsm.h"#include "proto.h"/* *  4.2.11 .. 4.2.12 LONG TERM PREDICTOR (LTP) SECTION *//* * This module computes the LTP gain (bc) and the LTP lag (Nc) * for the long term analysis filter.   This is done by calculating a * maximum of the cross-correlation function between the current * sub-segment short term residual signal d[0..39] (output of * the short term analysis filter; for simplification the index * of this array begins at 0 and ends at 39 for each sub-segment of the * RPE-LTP analysis) and the previous reconstructed short term * residual signal dp[ -120 .. -1 ].  A dynamic scaling must be * performed to avoid overflow. */ /* The next procedure exists in six versions.  First two integer  * version (if USE_FLOAT_MUL is not defined); then four floating  * point versions, twice with proper scaling (USE_FLOAT_MUL defined),  * once without (USE_FLOAT_MUL and FAST defined, and fast run-time  * option used).  Every pair has first a Cut version (see the -C  * option to toast or the LTP_CUT option to gsm_option()), then the  * uncut one.  (For a detailed explanation of why this is altogether  * a bad idea, see Henry Spencer and Geoff Collyer, ``#ifdef Considered  * Harmful''.)  */#ifndef  USE_FLOAT_MUL#ifdef	LTP_CUTstatic void Cut_Calculation_of_the_LTP_parameters P5((st, d,dp,bc_out,Nc_out),	struct gsm_state * st,	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;	word		wt[40];	longword	L_result;	longword	L_max, L_power;	word		R, S, dmax, scal, best_k;	word		ltp_cut;	register word	temp, wt_k;	/*  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;			best_k = k;		}	}	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);	/* Search for the maximum cross-correlation and coding of the LTP lag	 */	L_max = 0;	Nc    = 40;	/* index for the maximum cross-correlation */	wt_k  = SASR(d[best_k], scal);	for (lambda = 40; lambda <= 120; lambda++) {		L_result = (longword)wt_k * dp[best_k - lambda];		if (L_result > L_max) {			Nc    = lambda;			L_max = L_result;		}	}	*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;}#endif 	/* LTP_CUT */static void 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;	word		wt[40];	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 <= 39; k++) wt[k] = SASR( d[k], scal );	/* 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++) {# undef STEP#		define STEP(k) 	(longword)wt[k] * dp[k - lambda]		register longword L_result;		L_result  = STEP(0)  ; L_result += STEP(1) ;		L_result += STEP(2)  ; L_result += STEP(3) ;		L_result += STEP(4)  ; L_result += STEP(5)  ;		L_result += STEP(6)  ; L_result += STEP(7)  ;		L_result += STEP(8)  ; L_result += STEP(9)  ;		L_result += STEP(10) ; L_result += STEP(11) ;		L_result += STEP(12) ; L_result += STEP(13) ;		L_result += STEP(14) ; L_result += STEP(15) ;		L_result += STEP(16) ; L_result += STEP(17) ;		L_result += STEP(18) ; L_result += STEP(19) ;		L_result += STEP(20) ; L_result += STEP(21) ;		L_result += STEP(22) ; L_result += STEP(23) ;		L_result += STEP(24) ; L_result += STEP(25) ;		L_result += STEP(26) ; L_result += STEP(27) ;		L_result += STEP(28) ; L_result += STEP(29) ;		L_result += STEP(30) ; L_result += STEP(31) ;		L_result += STEP(32) ; L_result += STEP(33) ;		L_result += STEP(34) ; L_result += STEP(35) ;		L_result += STEP(36) ; L_result += STEP(37) ;		L_result += STEP(38) ; L_result += STEP(39) ;		if (L_result > L_max) {			Nc    = lambda;			L_max = L_result;		}	}	*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;}#else	/* USE_FLOAT_MUL */#ifdef	LTP_CUTstatic void Cut_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;	word		Nc, bc;	word		ltp_cut;	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);	ltp_cut = (longword)SASR(dmax, scal) * st->ltp_cut / 100; 	/*  Initialization of a working array wt	 */	for (k = 0; k < 40; k++) {		register word w = SASR( d[k], scal );		if (w < 0 ? w > -ltp_cut : w < ltp_cut) {			wt_float[k] = 0.0;		}		else {			wt_float[k] =  w;		}	}	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) \			if ((W = wt_float[K]) != 0.0) {	\			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; } else (a = lp[K])#		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;}#endif /* LTP_CUT */static void 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	*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久99精品久久| 亚洲在线视频一区| 欧美主播一区二区三区美女| 男人的j进女人的j一区| 亚洲免费视频中文字幕| 久久午夜免费电影| 欧美日韩五月天| www.日韩在线| 国产一区二区导航在线播放| 午夜不卡在线视频| 亚洲卡通动漫在线| 中文字幕欧美日韩一区| 日韩欧美精品在线| 4438x亚洲最大成人网| 色综合久久99| 国产成人啪午夜精品网站男同| 久久精品国产澳门| 五月婷婷综合网| 一区二区免费在线播放| 中文字幕一区不卡| 久久久久久久久99精品| 精品国产乱码久久久久久老虎| 欧美精品xxxxbbbb| 欧美日韩一区二区三区免费看| 91美女在线观看| 91小视频免费看| 成人激情动漫在线观看| 国产精品一区二区男女羞羞无遮挡| 日韩精品高清不卡| 亚洲18色成人| 日韩制服丝袜先锋影音| 丝袜美腿一区二区三区| 香蕉久久夜色精品国产使用方法| 亚洲激情网站免费观看| 亚洲卡通欧美制服中文| 亚洲综合激情网| 一区二区三区精品在线观看| 有坂深雪av一区二区精品| 亚洲人成在线观看一区二区| 国产精品国产成人国产三级| ...av二区三区久久精品| 成人欧美一区二区三区1314| 亚洲欧美一区二区不卡| 一区二区三区丝袜| 亚瑟在线精品视频| 免费观看91视频大全| 精品在线一区二区| 国产精品原创巨作av| 成人免费毛片app| 97精品超碰一区二区三区| 色婷婷精品久久二区二区蜜臀av| 日本高清视频一区二区| 欧美日韩一区三区四区| 欧美一级日韩不卡播放免费| 亚洲精品一区二区三区精华液 | 91精品黄色片免费大全| 3atv在线一区二区三区| 精品国产髙清在线看国产毛片| 精品伦理精品一区| 国产精品久久久久影视| 曰韩精品一区二区| 免费的国产精品| 国产不卡视频在线播放| 91丨porny丨中文| 欧美日本一区二区三区| 久久久美女毛片| 日韩一区中文字幕| 日韩制服丝袜av| 国产成人av影院| 一本到高清视频免费精品| 欧美精品tushy高清| 国产三级欧美三级日产三级99 | 成人美女在线视频| 欧美亚洲自拍偷拍| 精品国产污网站| 国产精品久久午夜| 日韩精品电影一区亚洲| 成人自拍视频在线| 欧美美女视频在线观看| 2024国产精品视频| 一区二区三区久久久| 国产麻豆精品95视频| 欧美艳星brazzers| 久久精品一级爱片| 天天免费综合色| 99久久精品国产毛片| 欧美电影免费观看完整版| 亚洲蜜桃精久久久久久久| 国内精品国产三级国产a久久| 在线观看成人小视频| 亚洲国产精品黑人久久久| 奇米四色…亚洲| 在线观看视频一区二区| 日本一区二区三区视频视频| 日韩国产一二三区| 色综合天天综合给合国产| 久久综合一区二区| 亚洲成人综合网站| 91网站最新网址| 国产女主播一区| 日产欧产美韩系列久久99| 91免费观看视频| 国产精品网友自拍| 老汉av免费一区二区三区| 欧美色视频在线观看| 中文字幕一区三区| 国产精品18久久久久久久久久久久| 欧美日韩成人一区二区| 亚洲欧美日韩国产综合| 国产成人av一区二区| 欧美成人aa大片| 日韩av一区二区在线影视| 日本精品视频一区二区| 国产精品乱码一区二三区小蝌蚪| 狠狠色综合日日| 日韩欧美一区二区视频| 丝袜a∨在线一区二区三区不卡| 91天堂素人约啪| 中文无字幕一区二区三区| 国产精一区二区三区| 精品日韩一区二区三区| 天堂久久一区二区三区| 欧美乱妇15p| 亚洲高清中文字幕| 欧美亚洲综合在线| 亚洲国产wwwccc36天堂| 欧美三级视频在线| 亚洲成国产人片在线观看| 欧美偷拍一区二区| 午夜视频在线观看一区| 欧美在线小视频| 亚洲一区二区欧美| 欧美制服丝袜第一页| 亚洲高清视频在线| 91.xcao| 日日噜噜夜夜狠狠视频欧美人| 7777精品伊人久久久大香线蕉经典版下载| 亚洲人成网站影音先锋播放| 日本高清无吗v一区| 亚洲国产精品一区二区尤物区| 欧美日韩大陆一区二区| 日韩vs国产vs欧美| 欧美大白屁股肥臀xxxxxx| 久久国产精品99久久久久久老狼| 日韩欧美国产精品一区| 久久精品国产色蜜蜜麻豆| www久久久久| 9久草视频在线视频精品| 亚洲免费资源在线播放| 欧美日本韩国一区二区三区视频| 视频一区二区三区中文字幕| 日韩欧美一级二级三级久久久| 精品亚洲免费视频| 国产精品久久午夜| 欧美午夜精品久久久| 久久精品国产一区二区三区免费看| 精品成人一区二区三区四区| 东方欧美亚洲色图在线| 亚洲精品菠萝久久久久久久| 欧美福利电影网| 狠狠色狠狠色合久久伊人| 国产精品国产自产拍高清av王其| 在线免费观看视频一区| 热久久免费视频| 国产精品麻豆欧美日韩ww| 在线观看av一区| 麻豆国产精品视频| 国产精品色哟哟| 在线播放中文一区| 国产高清在线精品| 一区二区三区在线观看网站| 日韩精品一区二区三区在线观看| 国产成人aaa| 亚洲va欧美va天堂v国产综合| 久久亚洲精品小早川怜子| 99国产欧美另类久久久精品| 蜜臀av国产精品久久久久| 国产精品久久久久久久岛一牛影视 | 欧美日韩一区二区三区视频| 国产麻豆精品theporn| 亚洲制服丝袜一区| 久久精品一区二区三区不卡牛牛| 欧美性生交片4| 国产一区二区三区免费看| 亚洲在线视频网站| 国产亚洲制服色| 欧美精品欧美精品系列| www.亚洲色图| 蜜桃久久久久久| 一区二区三区国产| 久久久一区二区三区捆绑**| 欧美三级三级三级爽爽爽| 国产精品影视网| 热久久免费视频| 亚洲精品日韩一| 亚洲国产精品传媒在线观看| 日韩一级片网站| 在线看日本不卡| 成人av午夜影院| 国模少妇一区二区三区|