亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品毛片久久久久久久| 福利一区福利二区| 午夜激情综合网| 亚洲成a人v欧美综合天堂下载| 一区二区中文字幕在线| 国产精品区一区二区三| 国产精品麻豆网站| 亚洲三级在线免费| 亚洲制服丝袜av| 亚洲一区免费在线观看| 手机精品视频在线观看| 午夜精品久久久久久久久| 午夜欧美电影在线观看| 日本欧美一区二区三区乱码| 麻豆精品久久精品色综合| 奇米四色…亚洲| 国产自产高清不卡| 国产成人综合在线观看| av不卡免费在线观看| 色八戒一区二区三区| 欧美美女网站色| 日韩欧美电影一二三| 国产欧美精品一区aⅴ影院| 中文字幕日韩一区| 一区二区三区日韩精品| 日韩国产一二三区| 国产一区二区三区高清播放| hitomi一区二区三区精品| 在线观看视频一区| 欧美tk—视频vk| 日本一区二区三区电影| 亚洲精品videosex极品| 日本强好片久久久久久aaa| 国产剧情一区在线| 99久久精品免费精品国产| 欧美色图在线观看| 精品国产欧美一区二区| 亚洲人成精品久久久久| 日韩精品午夜视频| 国产成人一级电影| 欧美日韩性生活| 精品盗摄一区二区三区| 亚洲精品中文字幕乱码三区| 日本vs亚洲vs韩国一区三区二区 | 夜夜亚洲天天久久| 美女在线观看视频一区二区| 成人高清伦理免费影院在线观看| 欧美日韩美女一区二区| 国产欧美日韩另类视频免费观看 | av中文字幕在线不卡| 欧美丝袜丝交足nylons图片| 久久久久久麻豆| 亚洲一区二区在线播放相泽| 国产一区二区三区日韩| 在线影院国内精品| 国产色产综合产在线视频| 亚洲制服欧美中文字幕中文字幕| 国产在线国偷精品免费看| 欧美吞精做爰啪啪高潮| 久久久www免费人成精品| 亚洲韩国一区二区三区| 成人一区二区三区视频在线观看| 8x8x8国产精品| 亚洲天堂2016| 国产美女视频一区| 91精品国产入口| 日韩美女视频19| 韩国v欧美v日本v亚洲v| 欧美色手机在线观看| 国产精品久久久久毛片软件| 免费久久99精品国产| 91视频www| 国产香蕉久久精品综合网| 毛片av中文字幕一区二区| 在线一区二区三区做爰视频网站| 精品国产成人系列| 日韩国产欧美在线视频| 欧美亚洲国产一区在线观看网站| 国产精品久久久久天堂| 国产精品88av| 精品久久久久av影院| 日韩avvvv在线播放| 欧美在线视频你懂得| 国产精品卡一卡二卡三| 国产ts人妖一区二区| 精品久久久久久久久久久久久久久久久| 亚洲国产精品一区二区www| 99久久国产综合精品女不卡| 国产精品热久久久久夜色精品三区 | 3d动漫精品啪啪1区2区免费 | 韩国女主播成人在线| 日韩一区二区麻豆国产| 亚洲高清在线视频| 日本韩国一区二区| 亚洲免费电影在线| 色呦呦网站一区| 亚洲欧美经典视频| 91丨porny丨蝌蚪视频| 国产精品高潮久久久久无| 波多野结衣在线aⅴ中文字幕不卡| 久久新电视剧免费观看| 韩国精品一区二区| 欧美电视剧免费全集观看| 免费成人在线网站| 日韩一级视频免费观看在线| 日本vs亚洲vs韩国一区三区| 欧美一级生活片| 精品一区二区三区免费| 日韩免费一区二区| 国内欧美视频一区二区| 国产偷v国产偷v亚洲高清| 成人免费毛片片v| 中文字幕一区二区三区在线播放| 白白色 亚洲乱淫| 亚洲久草在线视频| 欧美亚洲精品一区| 日本人妖一区二区| 久久久亚洲精品石原莉奈| 大胆亚洲人体视频| 国产精品对白交换视频| 欧美专区亚洲专区| 男人的j进女人的j一区| 欧美成人一区二区三区片免费 | 精品免费一区二区三区| 狠狠色综合色综合网络| 国产喂奶挤奶一区二区三区| a4yy欧美一区二区三区| 亚洲一二三四区不卡| 欧美一区二区视频在线观看2022| 蜜桃视频免费观看一区| 国产无一区二区| 一本色道a无线码一区v| 视频一区二区三区在线| 精品久久久久香蕉网| 99久久精品情趣| 天天亚洲美女在线视频| 久久久久综合网| 日本高清成人免费播放| 蜜臀精品久久久久久蜜臀| 国产日韩欧美精品电影三级在线| 色先锋aa成人| 蜜桃久久精品一区二区| 日韩一区中文字幕| 7777女厕盗摄久久久| 国产不卡视频一区| 亚洲成人资源网| 国产午夜精品久久| 欧美男女性生活在线直播观看| 极品少妇一区二区| 亚洲精品一卡二卡| 精品电影一区二区三区| 色久优优欧美色久优优| 麻豆国产精品视频| 亚洲欧美日韩国产成人精品影院| 欧美电影免费观看高清完整版在 | www.欧美.com| 爽好多水快深点欧美视频| 国产精品乱码人人做人人爱 | 亚洲国产精品高清| 欧美午夜视频网站| 国产99一区视频免费| 亚洲18色成人| 国产精品久久久久久久久免费丝袜| 制服丝袜中文字幕亚洲| 成a人片国产精品| 激情综合色播激情啊| 亚洲国产日日夜夜| 中文字幕精品三区| 日韩一区二区三区视频在线 | 日韩欧美黄色影院| 日本韩国精品在线| 成人动漫在线一区| 韩国成人福利片在线播放| 偷拍一区二区三区| 亚洲欧美经典视频| 中文在线免费一区三区高中清不卡| 日韩一区二区三区视频在线| 欧洲精品一区二区| 91小视频免费看| 国产精品亚洲视频| 精品一区二区影视| 爽爽淫人综合网网站| 亚洲图片一区二区| 亚洲精品国产无套在线观| 国产精品理伦片| 亚洲国产经典视频| 国产夜色精品一区二区av| 日韩精品在线一区| 欧美群妇大交群中文字幕| 欧美在线影院一区二区| 97精品国产露脸对白| 成人三级在线视频| 国产成人精品三级| 九九九久久久精品| 美女网站视频久久| 麻豆91在线观看| 蜜臀av性久久久久av蜜臀妖精| 日韩av电影免费观看高清完整版 | 国产在线视视频有精品| 久久电影网站中文字幕|