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

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

?? vselp.c

?? Reference Implementation of G.711 standard and other voice codecs
?? C
?? 第 1 頁 / 共 2 頁
字號:
/**************************************************************************                (C) Copyright 1990, Motorola Inc., U.S.A.Note:  Reproduction and use for the development of North American digital       cellular standards or development of digital speech coding       standards within the International Telecommunications Union -       Telecommunications Standardization Sector is authorized by Motorola        Inc.  No other use is intended or authorized.       The availability of this material does not provide any license       by implication, estoppel, or otherwise under any patent rights       of Motorola Inc. or others covering any use of the contents       herein.       Any copies or derivative works must incude this and all other       proprietary notices.       Permision has been granted to include this software in ITU-T       Software Tool Library, for the only purpose of helping the       development of new ITU standards.Systems Research LaboratoriesChicago Corporate Research and Development CenterMotorola Inc.************************************************************************* *//*  -------------------------------------------------------------------------  vselp.c  ~~~~~~~  C Language Version of the IS54 VSELP Speech Coder. Reference  implementation carried out by Motorola.  Original author: Matt Hartman  Adapted to ITU-TSS Software Tool Library by: Simao F.Campos Neto  Usage:  vselp [-urf urffile] [-bin obsfile] [-hex obsfile] [-log logfile]        [-nolog] [-pf] [enc] [-dec]        srcfile decfile logfile obsfile, OR (WHEN -enc USED)        srcfile ibsfile logfile,         OR (WHEN -dec USED)        srcfile decfile logfile          (DEFAULT)  where:  srcfile ........ name of input file  decfile ........ name of output, decoded file [ignored for encode_only mode]  ibsfile ........ input bitstream file [ignored for encode_only|encode+decode]  logfile ........ log file name  obsfile ........ bitstream gen'd for srcfile [only w/encode_only|encode+decode]  Options:  -urf urffile ... use the user's response file "urffile"  -bin ........... coded bitstream should be saved to a binary file   -hex ........... coded bstream should be saved to an ascii hex file [default]  -log logfile ... log of processing results is to be saved in file "logfile"  -nolog ......... do not log results  -enc ........... run encoder only [default: run encode + decode]  -dec ........... run decoder only [default: run encode + decode]  -pf ............ use post-filter in decoder  History:  08/May/90 v.1.0  Created <Matt Hartman>  20/Mar/94 v.1.1  Adapted to UGST format <simao@cpqd.ansp.br>  08/Feb/95 v.1.2  Fixed error in self-documentation and help message                   <simao@ctd.comsat.com>  22/Feb/96 v.1.2  Adapted code for operation in a DEC Alpha/APX (after                    STEGMANN, FI/DBP Telekom) -------------------------------------------------------------------------*//* Include files */#include "vselp.h"#include "ugstdemo.h"#include "vparams.h"#ifdef __TURBOC__unsigned        _stklen = 50000;/* Set Stack Size for Turbo C */#endif#ifdef VMS#undef WT#define WT "w" /* Plain write file definition for fopen() in VMS */#endif/* Global vars for communication with other routines */int             apply_postfilter, encode_only, decode_only;/* ------------------------------------------------------------------------ */long swap_byte(shPtr, n)short *shPtr;long n;{  short *s_Ptr;  short register tmp;  long register count;    for (count=0; count<n; count++)  {    tmp = (*shPtr << 8) + ((*shPtr >> 8) & 0x00ff);    *shPtr++ = tmp;  }  return((long)count);}/* ......................... End of swap_byte() ............................ *//* ------------------------------------------------------------------------ */void initState(){  T_NEW.k = (FTYPE *) calloc(14 * NP, sizeof(FTYPE));	/* Note: it is  */  T_NEW.a = T_NEW.k + NP;	/* necessary that these coef sets be */  T_NEW.widen = T_NEW.a + NP;	/* stored sequentially. DONT REARRANGE. */  T_OLD.k = T_NEW.widen + NP;	/* Note: it is necessary that these */  T_OLD.a = T_OLD.k + NP;	/* coef sets be stored sequentially. */  T_OLD.widen = T_OLD.a + NP;	/* DONT REARRANGE. */  R_NEW.k = T_OLD.widen + NP;	/* Note: it is necessary that these */  R_NEW.a = R_NEW.k + NP;	/* coef sets be stored sequentially. */  R_NEW.widen = R_NEW.a + NP;	/* DONT REARRANGE. */  R_NEW.sst = R_NEW.widen + NP;  R_OLD.k = R_NEW.sst + NP;	/* Note: it is necessary that these */  R_OLD.a = R_OLD.k + NP;	/* coef sets be stored sequentially. */  R_OLD.widen = R_OLD.a + NP;	/* DONT REARRANGE. */  R_OLD.sst = R_OLD.widen + NP;}/* ......................... End of initState() ............................ *//* ------------------------------------------------------------------------ */#define P(x) printf xvoid            display_usage(){  P(("  vselp: version 1.10 of 14/Mar/1994 \n\n"));  P(("  C Language Version of the IS54 VSELP Speech Coder. Reference\n"));  P(("  implementation carried out by Motorola adapted to ITU-T Software\n"));  P(("  Tool Library by Simao F. Campos Neto\n"));  P(("\n"));  P(("  Original author: Matt Hartman\n"));  P(("\n"));  P(("\n"));  P(("  Usage:\n"));  P(("  vselp [-urf urffile] [-bin obsfile] [-hex obsfile] [-log logfile] [-nolog]\n"));  P(("        [-nolog] [-pf] [-enc] [-dec]\n"));  P(("        srcfile decfile logfile obsfile, OR (WHEN -enc USED)\n"));  P(("        srcfile ibsfile logfile,         OR (WHEN -dec USED)\n"));  P(("        srcfile decfile logfile          (DEFAULT)\n\n"));  P(("  where:\n"));  P(("  srcfile ........ name of input file\n"));  P(("  decfile ........ name of output, decoded file [ignored for encode_only mode]\n"));  P(("  ibsfile ........ input bitstream file [ignored for encode_only|encode+decode]\n"));  P(("  logfile ........ log file name\n"));  P(("  obsfile ........ bstream gen'd for srcfile [only w/encode_only|encode+decode]\n"));  P(("  Options:\n"));  P(("  -urf urffile ... use the user's response file \"urffile\"\n"));  P(("  -bin ........... coded bitstream should be saved to a binary file\n"));  P(("  -hex ........... coded bstream should be saved to an ascii hex file [default]\n"));  P(("  -log logfile ... log of processing results is to be saved in file \"logfile\"\n"));  P(("  -nolog ......... do not log results\n"));  P(("  -enc ........... run encoder only [default: run encode + decode]\n"));  P(("  -dec ........... run decoder only [default: run encode + decode]\n"));  P(("  -pf ............ use post-filter in decoder\n"));  P(("\n"));  /* Quit program */  exit(-128);}#undef P/* .......................... end of displau_usage() ......................... *//*-------------------------------------------------------------------------*//* main program*/int             main(argc, argv)  int             argc;  char           *argv[];{  /* Main's automatic variables */  FTYPE          *coefBuf;	/* Points to memory allocated for T_NEW,				 * T_OLD, R_NEW, and R_OLD coefficient				 * storage */  FTYPE           RQ_HOLD;	/* Temporary storage for the R0q value to use				 * in the middle subframe on the receive side */  FTYPE           RQ_TMP;	/* R0q value that gets passed to RES_ENG() */  FTYPE           inScale = 1.0 / 32768.0;	/* Scale factor used to						 * convert  integer input						 * samples to floating point						 * fractions */  int             us;		/* Unstable flag returned by INTERPOLATE(),				 * determines whether another RS will need to				 * be calculated */  short          *shBuf;	/* points to beginning of short I/O buffer */  FILE           *fpprm;	/* points to parameter set-up file (if given) */  FTYPE          *tmpPtr, *tmpPtr2, *endPtr, f1;  int             i, numRead;  short          *shPtr;  long		(*get_codes)(), (*put_codes)();  long            bs_read = 0, bs_saved = 0;  char            use_user_resp_file = 0;	/* Don't use user's response						 * file */  char            InpFile[120], OutFile[100], LogFile[100], PackedFile[100];#ifdef VMS  char mrs[15];  short *zero_vector;  long zero_values,lwrite;  #endif  /* Diagnostic variables for debugging */  int             finalCnt;  /* Progress indication */  static char     quiet, funny[9] = "|/-\\|/-\\";  /* SETTING DEFAULT OPTIONS */  decode_only = 0;		/* run encoder and decoder */  encode_only = 0;  packedStream = 1;		/* generate HEX-packed bitstreams */  performMeas = 1;		/* calculate performance measures */  makeLog = 1;  apply_postfilter = 0;  quiet = 0;  finalCnt = 0;			/* always process the complete file */  fpin = fpout = fpcode = fplog = fpstream = NULL;#ifdef VMS  sprintf (mrs, "mrs=%d", 512);#endif  /* GETTING OPTIONS */  if (argc < 2)    display_usage();  else  {    while (argc > 1 && argv[1][0] == '-')      if (strcmp(argv[1], "-urf") == 0)      {	/* User response file */	use_user_resp_file = 1;	fpprm = fopen(argv[2], "r");	getParams(fpprm);	fclose(fpprm);	/* Update argc/argv to next valid option/argument */	argv += 2;	argc -= 2;      }      else if (strcmp(argv[1], "-dec") == 0)      {	/* Run only the decoder */	decode_only = 1;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-enc") == 0)      {	/* Run only the encoder */	encode_only = 1;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-bin") == 0)      {	/* Save bitstream as an binary, 16-bit-word oriented file */	packedStream = 0;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-hex") == 0)      {	/* Save bitstream as an ascii HEXadecimal file */	packedStream = 1;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-log") == 0)      {	/* Do create log file (default) */	makeLog = 1;	/* Scan log file name */	strcpy(LogFile, argv[2]);	if ((fplog = fopen(argv[2], "w")) == NULL)	  HARAKIRI("ERROR creating log file\n", 2);	/* Move argv over the option to the next argument */	argv += 2;	argc -= 2;      }      else if (strcmp(argv[1], "-nolog") == 0)      {	/* Don't create log file */	makeLog = 0;	fplog = stderr;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-pf") == 0)      {	/* Apply post-filtering in the decoder */	apply_postfilter = 1;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else if (strcmp(argv[1], "-q") == 0)      {	/* Don't print progress indicator */	quiet = 1;	/* Move argv over the option to the next argument */	argv++;	argc--;      }      else      {	fprintf(stderr, "ERROR! Invalid option \"%s\" in command line\n\n",		argv[1]);	display_usage();      }  }  /* WELCOME! */  fprintf(stderr, "***************************************************************\n");  fprintf(stderr, "\n           (C) Copyright 1990, Motorola Inc., U.S.A.\n\n");  fprintf(stderr, "***************************************************************\n");  /* Get values for calculated parameters */  /* Three choices: */  /*  - enc+dec:  read inp-lin-file out-lin-file logfile */  /*  - enc-only: read inp-lin-file out-bitstream-file logfile */  /*  - dec-only: read inp-bitstream-file out-lin-file logfile */  if (!use_user_resp_file)  {    i = 1;    if (!decode_only && fpin == NULL)    {      GET_PAR_S(i, "Input speech file: ........ ", InpFile);      if ((fpin = fopen(InpFile, RB)) == NULL)	KILL(InpFile, 2);      i++;    }    if (decode_only && fpstream == NULL)    {      GET_PAR_S(i, "Input bit-stream file: .... ", InpFile);      i++;      if (packedStream)      {         if ((fpstream = fopen(InpFile, "r")) == NULL)	  HARAKIRI("Error opening code file\n", 2);      }      else      {        if ((fpstream = fopen(InpFile, RB)) == NULL)	  HARAKIRI("Error opening code file\n", 2);      }    }    if (encode_only && fpstream == NULL)    {      GET_PAR_S(i, "Output bit-stream file: ... ", OutFile);      i++;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美丰满嫩嫩电影| 国产免费久久精品| 国产91在线|亚洲| 亚洲永久精品国产| 欧美韩国日本不卡| 欧美精品色一区二区三区| 国产精品1区2区3区在线观看| 中文字幕日韩精品一区| 欧美不卡一区二区| 91福利在线看| 国产不卡在线播放| 麻豆精品一区二区| 亚洲国产精品一区二区www在线| 久久亚洲精华国产精华液| 欧美综合亚洲图片综合区| 国产成人午夜99999| 免费一级片91| 亚洲h动漫在线| 亚洲欧美在线视频| 久久奇米777| 欧美一级免费观看| 在线免费精品视频| av动漫一区二区| 国产夫妻精品视频| 久久国产麻豆精品| 日本vs亚洲vs韩国一区三区| 亚洲香蕉伊在人在线观| 亚洲精品免费播放| 亚洲欧洲色图综合| 国产精品第五页| 国产日韩精品一区二区浪潮av| 日韩免费成人网| 7777精品伊人久久久大香线蕉经典版下载 | 久久女同互慰一区二区三区| 欧美一级片免费看| 91精品国产综合久久精品app | 免费观看91视频大全| 亚洲一卡二卡三卡四卡| 亚洲桃色在线一区| 最新日韩在线视频| 亚洲欧洲另类国产综合| 国产精品久久久久久户外露出| 国产亚洲一二三区| 久久精品一级爱片| 国产视频一区在线观看 | 亚洲一区免费观看| 一区二区三区在线影院| 97久久人人超碰| 国v精品久久久网| 亚洲人成人一区二区在线观看| 免费观看日韩电影| 国产大片一区二区| 亚洲成人免费影院| 午夜精品一区二区三区免费视频| 亚洲综合免费观看高清完整版在线| 亚洲狼人国产精品| 亚洲综合一区二区三区| 亚洲国产成人精品视频| 五月激情综合婷婷| 蜜桃av一区二区在线观看| 激情综合色丁香一区二区| 久久aⅴ国产欧美74aaa| 国产激情精品久久久第一区二区| 成人综合在线观看| 91丨porny丨中文| 欧美日韩黄色影视| 日韩免费一区二区三区在线播放| 337p日本欧洲亚洲大胆精品| 国产欧美1区2区3区| 日韩毛片视频在线看| 亚洲国产精品久久一线不卡| 五月激情综合色| 国内国产精品久久| www.欧美色图| 欧美伦理影视网| 久久久一区二区三区| 亚洲卡通动漫在线| 免费在线观看一区二区三区| 国产成人精品一区二区三区网站观看| 成+人+亚洲+综合天堂| 欧美日韩一区成人| 久久久99久久精品欧美| 最好看的中文字幕久久| 三级成人在线视频| 国产成人自拍高清视频在线免费播放| 99久久精品费精品国产一区二区| 欧美精品精品一区| 国产欧美日韩激情| 亚洲电影一区二区三区| 国产精品18久久久久久久网站| 一本色道a无线码一区v| 欧美大片在线观看| 亚洲欧美日韩一区二区三区在线观看| 午夜精品在线看| 成人久久18免费网站麻豆 | 欧美日韩国产乱码电影| 久久综合狠狠综合| 亚洲一区二区三区在线播放| 国产精品一二三| 欧美日韩精品一二三区| 国产无人区一区二区三区| 亚洲va在线va天堂| 成人精品一区二区三区中文字幕| 欧美日韩一区小说| 亚洲三级在线播放| 国产一区二区不卡| 欧美久久久久久蜜桃| 一区视频在线播放| 国产精品资源站在线| 制服丝袜成人动漫| 亚洲精品视频在线看| 国产成人免费在线视频| 日韩欧美一级二级| 夜夜嗨av一区二区三区四季av| 国产精品一区二区91| 日韩无一区二区| 亚洲国产综合91精品麻豆| 99久久综合精品| 久久这里只有精品视频网| 天天操天天干天天综合网| 91麻豆精东视频| 国产精品日日摸夜夜摸av| 国产美女精品在线| 日韩欧美一级二级三级久久久| 亚洲va欧美va人人爽午夜| 91传媒视频在线播放| 国产精品成人免费在线| 国产成人精品免费视频网站| 久久综合五月天婷婷伊人| 久久99热这里只有精品| 欧美一区二区三区播放老司机| 一区二区不卡在线视频 午夜欧美不卡在| 成人午夜精品在线| 国产欧美日韩在线看| 国产美女精品一区二区三区| 精品国产免费久久| 国产在线精品不卡| 国产欧美视频一区二区| 高清国产一区二区| 国产精品女同一区二区三区| 岛国av在线一区| 国产精品视频麻豆| 99精品1区2区| 亚洲精品日产精品乱码不卡| 在线观看一区不卡| 亚洲成人免费在线| 欧美一卡二卡三卡| 另类的小说在线视频另类成人小视频在线 | 国产精品视频你懂的| 成人99免费视频| 亚洲精品国产品国语在线app| 色婷婷亚洲精品| 亚洲va国产va欧美va观看| 91精品在线观看入口| 免费美女久久99| 久久精品一区二区三区不卡| 成人h动漫精品一区二| 亚洲日本欧美天堂| 欧美日韩精品欧美日韩精品一| 日韩黄色小视频| 久久久久久久久99精品| 97精品国产露脸对白| 亚洲一区在线视频| 日韩久久免费av| 成人高清视频在线观看| 亚洲免费视频成人| 91精品国产一区二区三区| 国产一区在线精品| 亚洲精选在线视频| 欧美一区永久视频免费观看| 国产一区二区不卡在线| 亚洲欧洲制服丝袜| 欧美一二三四在线| 成人伦理片在线| 亚洲国产精品麻豆| 久久精品人人爽人人爽| 欧美在线不卡视频| 久久电影国产免费久久电影| 国产精品美女久久久久久2018| 色婷婷综合久久久中文一区二区| 免费欧美在线视频| 中文字幕一区二区在线观看| 欧美日韩久久一区| 成人精品免费视频| 麻豆国产精品777777在线| 日韩一区在线播放| 91精品国产麻豆| 成人中文字幕在线| 日韩va欧美va亚洲va久久| 国产欧美精品区一区二区三区 | 午夜在线电影亚洲一区| 国产欧美一区二区三区在线老狼| 欧美视频中文一区二区三区在线观看| 精品写真视频在线观看| 性久久久久久久久| 中文字幕一区二区视频| 亚洲精品在线免费播放| 欧美日韩一区二区电影| 91在线视频播放| 国产精品一区在线|