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

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

?? long_term.c

?? 一款基于GTK的internet phone 程序。程序分為服務器端和客戶端兩部分。服務器端維護用戶的IP
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* * 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: /cvs/phone/long_term.c,v 1.1 1999/12/30 17:35:32 cvs 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	*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩不卡免费| 日韩欧美你懂的| 久久久一区二区三区捆绑**| 一区二区三区不卡在线观看 | a级精品国产片在线观看| 67194成人在线观看| 一区二区三区日韩欧美精品| 爽爽淫人综合网网站| 欧美日韩在线电影| 香蕉久久一区二区不卡无毒影院| 另类小说视频一区二区| 欧美日韩国产一级二级| 2023国产精华国产精品| 91麻豆成人久久精品二区三区| 欧美精品一区二区高清在线观看| 亚洲欧美日韩国产综合| 91蝌蚪porny九色| 亚洲色图.com| 欧美无乱码久久久免费午夜一区| 亚洲黄色录像片| 免费成人你懂的| 欧美电视剧在线看免费| 色婷婷精品大视频在线蜜桃视频| 国产日韩精品久久久| 久久精品国产精品青草| 国产网站一区二区三区| 国产91在线观看| 亚洲成人综合视频| 久久久综合激的五月天| av一区二区三区在线| 久久国产视频网| 久久久亚洲欧洲日产国码αv| 亚洲成a天堂v人片| 欧美日韩国产系列| 亚洲a一区二区| 欧美美女直播网站| 性感美女极品91精品| 欧美亚洲愉拍一区二区| 亚洲国产一区二区三区青草影视| 欧美性xxxxxx少妇| 性做久久久久久免费观看欧美| 欧美在线观看一二区| 亚洲成a人在线观看| 538在线一区二区精品国产| 日韩精品电影在线| 日韩视频免费观看高清完整版在线观看 | 激情小说亚洲一区| 精品久久久久久亚洲综合网| 久久不见久久见中文字幕免费| 精品久久久久一区二区国产| 国产精品一区二区久久不卡 | 欧美日韩一区二区电影| 亚洲成人1区2区| 日韩欧美一二三四区| 国内精品嫩模私拍在线| 中文文精品字幕一区二区| 成人av免费在线观看| 一区二区三区资源| 欧美一区二区三区公司| 国产福利一区二区| 久久国内精品视频| 国产片一区二区| 色婷婷av一区二区三区之一色屋| 日韩中文字幕区一区有砖一区 | 国产一区二区三区免费播放 | 亚洲国产精品精华液网站| 欧美一区二区三区人| 成人性生交大片免费看视频在线| 亚洲美女在线国产| 日韩女优视频免费观看| 91网址在线看| 麻豆国产精品一区二区三区| 国产精品日韩精品欧美在线| 欧洲生活片亚洲生活在线观看| 狠狠色丁香婷综合久久| 一区二区三区不卡视频在线观看| 日韩欧美精品三级| 色系网站成人免费| 国产精一品亚洲二区在线视频| 亚洲蜜臀av乱码久久精品蜜桃| 欧美成人r级一区二区三区| 久久精品欧美一区二区三区麻豆| 久久久久久久性| 日韩午夜小视频| 粉嫩av一区二区三区在线播放 | 琪琪一区二区三区| 日本一区二区成人| 日韩视频在线观看一区二区| 91影视在线播放| 国产乱码精品一区二区三区五月婷| 一区二区国产视频| 国产精品欧美一级免费| 欧美电影免费提供在线观看| 欧美在线不卡视频| 成人三级伦理片| 国模一区二区三区白浆| 午夜久久久久久久久久一区二区| 国产精品久久久久久久蜜臀 | 九九久久精品视频| 亚洲va国产va欧美va观看| 亚洲色图欧美偷拍| 亚洲欧美视频在线观看| 欧美私人免费视频| 91小视频免费观看| 成人亚洲一区二区一| 狠狠网亚洲精品| 日本不卡在线视频| 日韩成人dvd| 日本在线不卡视频| 99久久国产综合精品麻豆| 激情六月婷婷综合| 经典三级视频一区| 久久精品噜噜噜成人88aⅴ| 日韩精品成人一区二区三区| 亚洲成人激情av| 丝袜美腿亚洲色图| 亚洲成人一区二区在线观看| 亚洲综合在线观看视频| 亚洲少妇30p| 亚洲综合激情另类小说区| 亚洲日韩欧美一区二区在线| 亚洲人成在线播放网站岛国| 亚洲视频 欧洲视频| 一区二区三区电影在线播| 亚洲一二三区视频在线观看| 天涯成人国产亚洲精品一区av| 午夜精品视频在线观看| 日韩福利电影在线观看| 久久精品国产色蜜蜜麻豆| 久久国产精品色| 丁香亚洲综合激情啪啪综合| aaa欧美大片| 在线免费不卡视频| 欧美精品成人一区二区三区四区| 欧美精品久久一区二区三区| 欧美mv日韩mv国产| 国产精品三级久久久久三级| 亚洲人成人一区二区在线观看 | 91在线国内视频| 亚洲国产精品黑人久久久| 国产精品久久久久久久浪潮网站 | 亚洲靠逼com| 偷窥少妇高潮呻吟av久久免费| 免费在线成人网| 国产毛片精品国产一区二区三区| 不卡一区二区三区四区| 欧美亚洲另类激情小说| 日韩欧美一区在线观看| 欧美国产日韩a欧美在线观看| 亚洲免费视频中文字幕| 日本vs亚洲vs韩国一区三区二区| 国产成人午夜99999| 欧美综合欧美视频| 26uuu久久综合| 一区二区在线看| 久久99精品国产麻豆不卡| 不卡一区二区三区四区| 91精品国产综合久久香蕉的特点| 久久久久久久电影| 夜夜嗨av一区二区三区四季av| 精品一区二区在线观看| 91国偷自产一区二区三区观看| 欧美一区二区久久| 亚洲另类在线视频| 国产老妇另类xxxxx| 欧美天堂一区二区三区| 国产午夜精品在线观看| 日本一不卡视频| 91在线视频免费91| 久久午夜电影网| 亚洲va韩国va欧美va精品 | 麻豆精品久久精品色综合| proumb性欧美在线观看| 日韩一区二区免费在线电影| 综合激情网...| 国产成人在线网站| 91精品国产91久久综合桃花| 亚洲男人的天堂av| 成人激情动漫在线观看| 日韩精品在线看片z| 亚洲成国产人片在线观看| 99久久国产综合精品女不卡| 国产日韩综合av| 久久99精品网久久| 91精品在线观看入口| 国产精品伊人色| 日韩写真欧美这视频| 亚洲福利视频一区二区| 在线亚洲精品福利网址导航| 亚洲欧洲在线观看av| 国产原创一区二区| 精品国产乱码久久久久久闺蜜| 天天做天天摸天天爽国产一区| 日本精品一区二区三区高清| 中文字幕在线播放不卡一区| 国产成人免费av在线| 久久久99精品久久| 国产一区二区三区香蕉| 久久综合九色综合久久久精品综合| 天天综合网 天天综合色|