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

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

?? ehwutl.c

?? 完整的EVRC壓縮解壓縮算法源碼,附帶一個簡單的例子程序。
?? C
字號:
/**********************************************************************
Each of the companies; Lucent, Motorola, Nokia, and Qualcomm (hereinafter 
referred to individually as "Source" or collectively as "Sources") do 
hereby state:

To the extent to which the Source(s) may legally and freely do so, the 
Source(s), upon submission of a Contribution, grant(s) a free, 
irrevocable, non-exclusive, license to the Third Generation Partnership 
Project 2 (3GPP2) and its Organizational Partners: ARIB, CCSA, TIA, TTA, 
and TTC, under the Source's copyright or copyright license rights in the 
Contribution, to, in whole or in part, copy, make derivative works, 
perform, display and distribute the Contribution and derivative works 
thereof consistent with 3GPP2's and each Organizational Partner's 
policies and procedures, with the right to (i) sublicense the foregoing 
rights consistent with 3GPP2's and each Organizational Partner's  policies 
and procedures and (ii) copyright and sell, if applicable) in 3GPP2's name 
or each Organizational Partner's name any 3GPP2 or transposed Publication 
even though this Publication may contain the Contribution or a derivative 
work thereof.  The Contribution shall disclose any known limitations on 
the Source's rights to license as herein provided.

When a Contribution is submitted by the Source(s) to assist the 
formulating groups of 3GPP2 or any of its Organizational Partners, it 
is proposed to the Committee as a basis for discussion and is not to 
be construed as a binding proposal on the Source(s).  The Source(s) 
specifically reserve(s) the right to amend or modify the material 
contained in the Contribution. Nothing contained in the Contribution 
shall, except as herein expressly provided, be construed as conferring 
by implication, estoppel or otherwise, any license or right under (i) 
any existing or later issuing patent, whether or not the use of 
information in the document necessarily employs an invention of any 
existing or later issued patent, (ii) any copyright, (iii) any 
trademark, or (iv) any other intellectual property right.

With respect to the Software necessary for the practice of any or 
all Normative portions of the Enhanced Variable Rate Codec (EVRC) as 
it exists on the date of submittal of this form, should the EVRC be 
approved as a Specification or Report by 3GPP2, or as a transposed 
Standard by any of the 3GPP2's Organizational Partners, the Source(s) 
state(s) that a worldwide license to reproduce, use and distribute the 
Software, the license rights to which are held by the Source(s), will 
be made available to applicants under terms and conditions that are 
reasonable and non-discriminatory, which may include monetary compensation, 
and only to the extent necessary for the practice of any or all of the 
Normative portions of the EVRC or the field of use of practice of the 
EVRC Specification, Report, or Standard.  The statement contained above 
is irrevocable and shall be binding upon the Source(s).  In the event 
the rights of the Source(s) in and to copyright or copyright license 
rights subject to such commitment are assigned or transferred, the 
Source(s) shall notify the assignee or transferee of the existence of 
such commitments.
*******************************************************************/
 
/*======================================================================*/
/*     Enhanced Variable Rate Codec - Bit-Exact C Specification         */
/*     Copyright (C) 1997-1998 Telecommunications Industry Association. */
/*     All rights reserved.                                             */
/*----------------------------------------------------------------------*/
/* Note:  Reproduction and use of this software for the design and      */
/*     development of North American Wideband CDMA Digital              */
/*     Cellular Telephony Standards is authorized by the TIA.           */
/*     The TIA does not authorize the use of this software for any      */
/*     other purpose.                                                   */
/*                                                                      */
/*     The availability of this software does not provide any license   */
/*     by implication, estoppel, or otherwise under any patent rights   */
/*     of TIA member companies or others covering any use of the        */
/*     contents herein.                                                 */
/*                                                                      */
/*     Any copies of this software or derivative works must include     */
/*     this and all other proprietary notices.                          */
/*======================================================================*/

#include "ehwutl.h"
#include "mathevrc.h"
#include <math.h>

static nfirst;
double sFrct[32 + 8];
double dFrct[32 + 8];
static double maxSfrct;
static double minSfrct;
static int msb ={15};
static int lsb ={0};
char line[200];

static void init()
{
	int n;
	nfirst = 1;
	/*printf("%d %d signed max\n",INT_MAX,INT_MIN);
	 * printf("%U unsigned max\n",UINT_MAX);
	 * if (UINT_MAX < 4294967295U){
	 * printf("you need to convert ints to long ints \n");
	 * exit(1);
	 * }
	 */
	for (n = 0; n < 16; n++)
	{
		sFrct[n] = pow(2.0, -((double) 15.0 - (double) n));
	}
	maxSfrct = 1.0 - sFrct[0];
	minSfrct = -1.0;

	for (n = 0; n < 32; n++)
	{
		dFrct[n] = pow(2.0, -((double) 31.0 - (double) n));
	}
	for (n = 31; n < 40; n++)
	{
		dFrct[n] = pow(2.0, -(31.0 - (double) n));
	}
}

static void pHex(char *in, int num)
{
	/* The first num characters are checked for ' ' and
	 * replaced with '0' */
	int i;
	for (i = 0; i < num; i++)
	{
		if (line[i] == ' ')
			printf("0");
		else
			printf("%c", line[i]);
	}
}
void xDispSw(Shortword in)
{
	printf("0x");
	sprintf(line, "%4x", in);
	pHex(line, 4);
	printf(" ");
}
void xDispSns(struct NormSw snsIn)
{

	printf("0x");
	sprintf(line, "%4x", snsIn.man);
	pHex(line, 4);
	printf(" ");

	sprintf(line, "%2d", snsIn.sh);
	pHex(line, 2);
	printf(" ");

}
void xDispLw(Longword in)
{

	printf("0x");
	sprintf(line, "%4x", (in >> 16) & 0xffff);
	pHex(line, 4);
	printf(" ");
	sprintf(line, "%4x", in & 0xffff);
	pHex(line, 4);
	printf(" ");

}
double toFloatLw(Longword lwIn)
{
	/* convert signed fractional number to a double */

	double output;
	int i;
	unsigned long mask;
	int negative;

	if (!nfirst)
		init();

	output = 0.0;
	negative = 0;

	if (lwIn < 0)
	{
		/* negative */
		negative = 1;
		lwIn = -lwIn;
	}
	if (lwIn >= 0)
	{
		/* now positive */
		for (mask = 0x1, i = 0; i < 32; i++)
		{
			if (mask & lwIn)
				output += dFrct[i];
			mask <<= 1;
		}
		if (negative)
			output *= -1.0;
	}
	else
	{
		output = -1.0;
	}
	return (output);
}
double toFloatSw(Shortword swIn)
{
	return (toFloatLw((Longword) swIn * (Longword) 0x10000));
}
double toFloatSns(struct NormSw snsIn)
{
	double dOut;
	dOut = toFloatSw(snsIn.man);
	if (snsIn.sh == 0)
		return (dOut);
	else if (snsIn.sh < 0)
		return (dOut * pow(2.0, -snsIn.sh));
	else
		return (dOut / pow(2.0, snsIn.sh));
}
void fDispSw(Shortword swIn)
{
	printf("%11.8f ", toFloatSw(swIn));
}
void fDispLw(Longword lwIn)
{
	printf("%11.8f ", toFloatLw(lwIn));
}
void fDispSns(struct NormSw snsIn)
{
	printf("%11.8f ", toFloatSns(snsIn));
}
Longword toLwFloat(double dIn)
{
	long l1;
	long int liExt, liInt;
	unsigned long ulExt = 0;
	Longword L_Out;

	if (dIn > -(double) (1 << 0) / 2147483648.0 && dIn < 0)
	{
		L_Out = 0;
	}
	else
	{
		liInt = dIn;			/* integer portion */

		if (liInt != 0)
		{
			if (liInt < 0)
			{
				L_Out = LW_MIN;
			}
			else
			{
				L_Out = LW_MAX;
			}
		}
		else
		{

			/*
			 *  shift up, perform limiting and convergent rounding
			 */

			dIn *= 2147483648.0;	/* 2**31 */

			/* round */
			dIn += (dIn >= 0.0) ? 0.5 : -0.5;
			l1 = dIn;
			if (dIn == (double) l1)
			{
				l1 -= l1 % 2;
			}
			/* assign the fractional portion to frac */
			L_Out = l1;
		}
	}
	return (L_Out);
}

Shortword toSwFloat(double dIn)
{

	return (round32(toLwFloat(dIn)));
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
jiyouzz国产精品久久| 成人av在线播放网站| 久久久久成人黄色影片| 色哟哟一区二区在线观看| 日韩精品免费视频人成| 国产喂奶挤奶一区二区三区| 精品写真视频在线观看| 一区二区三区不卡在线观看| 欧美一区二区精品| 99r国产精品| 久久国产生活片100| 亚洲欧洲日产国码二区| 精品成人免费观看| 精品视频色一区| 成人18视频日本| 麻豆国产欧美日韩综合精品二区| 久久无码av三级| 成人aa视频在线观看| 九九久久精品视频| 亚洲综合在线视频| 国产精品丝袜黑色高跟| 日韩欧美电影在线| 精品视频一区二区不卡| 99久久国产免费看| 久久99国内精品| 午夜久久久久久久久久一区二区| 国产精品福利一区二区三区| 日韩免费看网站| 欧美日韩国产电影| 日本道在线观看一区二区| 国产91在线|亚洲| 精品在线播放午夜| 午夜久久福利影院| 亚洲一卡二卡三卡四卡五卡| 国产精品久久久久三级| 久久久久久久一区| 欧美电视剧在线看免费| 91精品黄色片免费大全| 不卡视频在线看| 蜜乳av一区二区| 日本亚洲天堂网| 亚洲第一二三四区| 亚洲一二三专区| 亚洲激情一二三区| 亚瑟在线精品视频| 亚洲成人av一区| 午夜精品久久一牛影视| 中文字幕 久热精品 视频在线| 久久影音资源网| 久久午夜国产精品| 国产精品福利av| 日韩美女视频一区二区 | 亚洲国产精品成人综合 | 国产视频在线观看一区二区三区 | 美女视频一区在线观看| 午夜国产精品一区| 麻豆精品一二三| 精品一区二区在线视频| 久久99热这里只有精品| 强制捆绑调教一区二区| 热久久久久久久| 亚洲chinese男男1069| 日韩影院免费视频| 美国精品在线观看| 国模大尺度一区二区三区| 国产精品一级黄| 成人蜜臀av电影| 一本久道中文字幕精品亚洲嫩| 色婷婷久久久综合中文字幕| 欧美色视频在线| 日韩天堂在线观看| 精品粉嫩aⅴ一区二区三区四区| 91精品国产欧美一区二区| 欧美片网站yy| 精品免费国产一区二区三区四区| 久久色在线视频| 中文字幕一区二区三区色视频 | 国产精品一级黄| 色综合久久综合| 91精品国产综合久久久蜜臀图片| 欧美成人在线直播| 国产精品污污网站在线观看| 一区二区三区波多野结衣在线观看| 亚洲国产精品久久久久婷婷884 | 欧美揉bbbbb揉bbbbb| 欧美一级理论片| 国产精品萝li| 亚洲国产中文字幕| 国产精品乡下勾搭老头1| jlzzjlzz亚洲女人18| 欧美日韩黄色一区二区| 欧美精品一区二区三| 亚洲欧美激情小说另类| 亚洲国产精品久久久久秋霞影院 | 一区二区三区欧美日韩| 另类调教123区| av成人动漫在线观看| 在线电影院国产精品| 国产日韩av一区| 亚洲国产精品精华液网站| 成人av在线网| 日韩欧美你懂的| 亚洲国产成人91porn| 国产电影精品久久禁18| 一区二区久久久久久| 久久99国产精品成人| 91麻豆国产精品久久| 欧美xxxxxxxx| 亚洲福利电影网| 国产99精品视频| 欧美成va人片在线观看| 中文字幕制服丝袜成人av| 国产成人综合网站| 欧美一区二区在线视频| 亚洲天堂中文字幕| 国精产品一区一区三区mba桃花| 欧美影视一区在线| 亚洲国产电影在线观看| 日韩国产欧美三级| 在线影视一区二区三区| 亚洲日本中文字幕区| 美女视频网站久久| 99视频有精品| 中文一区一区三区高中清不卡| 天天综合天天做天天综合| 99re6这里只有精品视频在线观看| 2020国产精品自拍| 蜜桃视频一区二区| 欧美精品tushy高清| 亚洲午夜久久久| 色婷婷av一区二区三区大白胸| 国产日韩欧美电影| 国产一区在线看| 欧美一区二区在线观看| 亚洲1区2区3区视频| 91浏览器在线视频| 国产精品国产馆在线真实露脸| 国产成人免费视频网站| 久久综合久久鬼色| 国精产品一区一区三区mba桃花| 欧美一区二区三区爱爱| 日韩精品亚洲专区| 欧美妇女性影城| 婷婷综合另类小说色区| 在线精品视频一区二区三四| 日韩毛片视频在线看| 国产一区二区三区四区五区美女 | 丝袜亚洲另类欧美综合| 欧美综合一区二区三区| 一区二区三区中文字幕在线观看| 色哟哟精品一区| 亚洲综合色区另类av| 在线观看日韩一区| 亚洲三级在线观看| 欧美中文字幕亚洲一区二区va在线 | 亚洲精品在线三区| 蜜臂av日日欢夜夜爽一区| 精品福利av导航| 99热在这里有精品免费| 亚洲欧美日韩国产手机在线| 欧美日韩在线播放三区四区| 男女男精品视频网| 国产欧美视频一区二区| 一本大道av伊人久久综合| 日韩电影在线看| 日本一区二区三区免费乱视频| 91蝌蚪porny| 日本中文字幕一区二区视频| 久久久国产精品不卡| 91麻豆精品视频| 美女一区二区久久| 亚洲一二三级电影| 亚洲一区电影777| 精品久久久久av影院| 成人成人成人在线视频| 香蕉久久夜色精品国产使用方法| 日韩欧美在线影院| 福利电影一区二区| 亚洲高清免费视频| 国产精品午夜久久| 91麻豆精品91久久久久同性| 成人免费毛片高清视频| 日产欧产美韩系列久久99| 国产精品网站一区| 制服丝袜成人动漫| 99视频国产精品| 韩国欧美一区二区| 午夜精品视频在线观看| 国产精品国产馆在线真实露脸| 91精品久久久久久蜜臀| 99精品国产99久久久久久白柏| 极品少妇一区二区| 亚洲地区一二三色| 国产精品美日韩| 日韩精品中文字幕在线不卡尤物 | 亚洲午夜电影在线| 亚洲国产岛国毛片在线| 日韩视频国产视频| 欧美日韩一区二区三区免费看| 成人黄动漫网站免费app|