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

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

?? c712demo.c

?? Reference Implementation of G.711 standard and other voice codecs
?? C
字號:
/*                                                            22.SEP.1994 v1.0  ============================================================================  C712DEMO.C  ~~~~~~~~~~  Description:  ~~~~~~~~~~~~  Example program for testing the correct implementation of the  IIR G.712 filtering without rate conversion using the IIR-G.712 module.  Usage:  ~~~~~~  $ IIRDEMO ! ---> HELP text is printed to screen  or  $ IIRDEMO [-options] ifile ofile [lseg]  where:  ifile: .. INPUT  FILE with short data (binary files)  ofile: .. OUTPUT FILE with short data (binary files)  lseg: ... number of samples per processing block            (default is LSEG0=256)  Options:  ~~~~~~~~  -skip no ... skips saving to file the fG.712t `no' processed samples   -lseg l .... defines as `l' the number of samples per processing block  Compilation:  ~~~~~~~~~~~  The test program is implemented for segment-wise filtering. To  test the  dependency of the segment length, the user must enter  a value for the  segment length (from 1 ... LSEGMAX).  VAX/VMS:  $ CC IIRDEMO  $ link IIRDEMO  $ IIRDEMO :== $iirdemo_Disk:[iirdemo_Dir]IIRDEMO  $ IIRDEMO ifile ofile 0 1_2 2_1 133  The data from file "ifile" are processed in the  following way, being equivalent to the asynchronous filtering  needed to simulating the return from digital to analogue  domains, and the way back:  1) segments with 133 samples are read from file "ifile"  2) the G.712 filtering just keep the input data as is;  3) the second stage will take the data of the previous stage     as sampled at 8 kHz, filter by the std.PCM and     upsample to 16 kHz;  4) the output of the second stage is taken as 16 kHz data,     which is filtered by the std.PCM filter and down-sampled     back to 8 kHz.  5) the output of the third stage is rounded and saved to     file `ofile'.  Turbo-C, Turbo-C++:  > tcc iirdemo  > iirdemo ifile ofile 1_1 1_1 2_1 1024  The data from file "ifile" are processed in the following way:  1) segments with 1024 samples are read from file "ifile"  2) PCM filtering for 1st stage keeping the rate at 16 kHz;  3) the same for the second;  4) the output of the second step is then filtered and     down-sampled (decimated) to 8 kHz.  5) the output of the third filter is then saved to file using rounding.  HighC (MetaWare, version R2.32):  > hc386 -stack 16384 iirdemo.c  > Run386 iirdemo ifile ofile 2_1 1_2 0 133  In our test some C-implementations have shown errors, which  could be eliminated by increasing the stack size (at compile time).  SunC (BSD Unix)  # cc -o iirdemo iirdemo.c  # iirdemo  Original author:  ~~~~~~~~~~~~~~~~  Simao Ferraz de Campos Neto  Comsat Laboratories                  Tel:    +1-301-428-4516  22300 Comsat Drive                   Fax:    +1-301-428-9287  Clarksburg MD 20871 - USA            E-mail: simao@ctd.comsat.com  History:  ~~~~~~~~  22.Sep.94 v1.0 Created  ============================================================================*//* * ......... INCLUDES ......... */#include <stdio.h>		  /* UNIX Standard I/O Definitions */#include <stdlib.h>		  /* atoi() */#include "ugstdemo.h"		  /* private defines for user interface */#include "ugst-utl.h"		  /* conversion from float -> short */#include "iirflt.h"		  /* G.712 IIR filtering functions *//* * ......... Definitions for this test program ......... */#define LSEG0    256	/* default segment length for segment-wise filtering */#define LSEGMAX 2048	/* max. number of samples to be proc. *//*  ============================================================================        void display_usage (void);        ~~~~~~~~~~~~~~~~~~        Description:        ~~~~~~~~~~~~        Display usage of this demo program and exit;        Return value:        ~~~~~~~~~~~~~        Returns the number of longs read.        Author: <hf@pkinbg.uucp>        ~~~~~~~        History:        ~~~~~~~~        26.Feb.92 v1.0 Release of 1st version <hf@pkinbg.uucp>        30.Oct.94 v2.0 Revamped <simao@ctd.comsat.com> ============================================================================*/#define P(x) printf xvoid display_usage(){  P(("C712DEMO.C - Version 1.0 of 30/Oct/1994 \n\n"));   P((" Example program for testing the correct implementation of theIIR\n"));  P((" G.712 filtering without rate change using the IIR-G.712 module.\n"));  P((" Input signal must be at 8kHz; output signal will be at 8kHz\n"));  P(("\n"));  P((" Usage:\n"));  P((" ~~~~~~\n"));  P((" $ IIRDEMO ! ---> HELP text is printed to screen\n"));  P((" or\n"));  P((" $ IIRDEMO [-options] ifile ofile [lseg]\n"));  P((" where:\n"));  P((" ifile: .. INPUT  FILE with short data (binary files)\n"));  P((" ofile: .. OUTPUT FILE with short data (binary files)\n"));  P((" lseg: ... number of samples per processing block\n"));  P(("           (default is LSEG0=256)\n"));  P(("\n"));  P((" Options:\n"));  P((" ~~~~~~~~\n"));  P((" -skip no ... don't save to file the 1st `no' processed samples \n"));  P((" -lseg l .... set as `l' the number of samples per processing block\n"));  /* Quit program */  exit(-128);}#undef P/* ...................... End of display_usage() ........................... *//* ......................... Begin of main() .............................. *//* ************************************************************************** ************************************************************************** ***                                                                    *** ***        Test-Program for testing the correct implementation         *** ***               and to show how to use the programs                  *** ***                                                                    *** ************************************************************************** ***************************************************************************/int main(argc, argv)  int             argc;  char           *argv[];{/* * ......... Define symbols of type  CASCADE_IIR for each filter ......... */  CASCADE_IIR        *typ1_ptr;  /* ......... signal arrays ......... */  short           sh_buff[8 * LSEGMAX];	/* 16-bit buffer */  float           fl_buff[LSEGMAX];	/* float buffer */  float           buff1[2 * LSEGMAX];	/* output of 1. filter */  /* ......... File related variables ......... */  char            inpfil[127], outfil[127];  FILE           *inpfilptr, *outfilptr;#if defined(VMS)  static char     mrs[15] = "mrs=";#endif  /* ......... other auxiliary variables ......... */  clock_t         t1, t2;	  /* aux. for CPU-time measurement */  long            lseg=LSEG0, lsegx, lseg1;  long            noverflows1 = 0;  long            nsam = 0;  long skip=0;  /* ......... PRINT INFOS ......... */  printf("%s%s", "*** V1.1 DEMO-Program: G.712 Up/Down Sampling ",                 "Filter, with IIR - 30-Sep-1994 ***\n");/* * ......... PARAMETERS FOR PROCESSING ......... */  /* GETTING OPTIONS */  if (argc < 2)    display_usage();  else  {    while (argc > 1 && argv[1][0] == '-')      if (strcmp(argv[1], "-skip") == 0)      {	/* No reset */	skip = atoi(argv[2]);	/* Update argc/argv to next valid option/argument */	argv+=2;	argc-=2;      }      else if (strcmp(argv[1], "-len") == 0)      {	lseg = atoi(argv[2]);	/* If max.seg.length is exceeded, display warning */	if (lseg > LSEGMAX)	{	  lseg = LSEGMAX;	  fprintf(stderr, "Warning! lseg limited to max of %ld\n", lseg);	}	/* Update argc/argv to next valid option/argument */	argv+=2;	argc-=2;      }      else if (strcmp(argv[1], "-?") == 0 || strcmp(argv[1], "-help") == 0)      {	/* Print help */	display_usage();      }      else      {	fprintf(stderr, "ERROR! Invalid option \"%s\" in command line\n\n",		argv[1]);	display_usage();      }  }  /* ......... GETTING PARAMETERS ......... */#ifdef VMS  sprintf(&mrs[4], "%d", 2 * 256);/* mrs definition for VMS */#endif  GET_PAR_S(1, "_BIN-File to be processed: ............... ", inpfil);  if ((inpfilptr = fopen(inpfil, RB)) == NULL)    HARAKIRI("\n   Error opening input file", 1);  GET_PAR_S(2, "_BIN-Output File: ........................ ", outfil);  if ((outfilptr = fopen(outfil, WB)) == NULL)    HARAKIRI("\n   Error opening output file", 1);  FIND_PAR_L(3, "_Segment Length for Filtering: ........... ", lseg, lseg);  if (lseg > LSEGMAX)  {    /* If max.seg.length is exceeded, display warning */    lseg = LSEGMAX;    fprintf(stderr, "Warning! lseg limited to max of %ld\n", lseg);  }/*   * ... INITIALIZE SELECTED IIR-STRUCTURE FOR UP-/DOWNSAMPLING ...   */  if ((typ1_ptr = iir_G712_8khz_init()) == 0)    HARAKIRI("Filter 1: initialization failure iir_G712_8khz()", 1);/*   * ......... CARRY OUT FILTERING .........   */  /* measure CPU-time */  t1 = clock();  lsegx = lseg;  while (lsegx == lseg)  {    /* Read input buffer */    lsegx = fread(sh_buff, sizeof(short), lseg, inpfilptr);    /* convert short data to float in normalized range */    sh2fl_16bit(lsegx, sh_buff, fl_buff, 1);    /* IIR filtering */    lseg1 =			  /* Returned: number of output samples */	cascade_iir_kernel(		  /* cascade form IIR filter */		      lsegx,	  /* In   : number of input samples */		      fl_buff,	  /* In   : array with input samples */		      typ1_ptr,	  /* InOut: pointer to IIR struct */		      buff1	  /* Out  : array with output samples */	);    /* Convert to integer for testing overflows -- do not save! */    noverflows1 += fl2sh_16bit(lseg1, buff1, sh_buff, (int) 0);    /* Skip samples if requested */    if (lseg1 > skip)    {      /* Write samples to output file */      nsam += fwrite(&sh_buff[skip], sizeof(short), (lseg1-skip), outfilptr);    }    else      skip -= lseg1;  }/*   * ......... FINALIZATIONS .........   */  /* Print time statistics - Include file I/O! */  t2 = clock();  printf("\nDONE: %f sec CPU-time for %ld generated samples\n",	 (t2 - t1) / (double) CLOCKS_PER_SEC, nsam);  /* Print overflow statistics */  if (noverflows1 == 0)    printf("\t # NO overflows occurred\n");  else  {    printf("\t # Overflow in %ld samples\n", noverflows1);  }  /* Release memory allocated to IIR structures */  if (typ1_ptr != (CASCADE_IIR *) NULL)    cascade_iir_free(typ1_ptr);  /* Close files */  fclose(outfilptr);  fclose(inpfilptr);#ifndef VMS  return 0;#endif}/* ......................... End of main() ......................... */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲卡通欧美制服中文| 91精品国产综合久久久蜜臀图片| 91丨九色丨蝌蚪丨老版| 91精品国产一区二区| 中文字幕一区二区三区视频| 麻豆精品国产91久久久久久| 91免费精品国自产拍在线不卡| 91精品国产福利| 一区二区日韩av| 成人影视亚洲图片在线| 精品第一国产综合精品aⅴ| 亚洲欧美一区二区久久| 日韩成人av影视| 热久久国产精品| 欧美群妇大交群中文字幕| 精品sm捆绑视频| 蜜桃91丨九色丨蝌蚪91桃色| 成人av片在线观看| 欧美国产日本韩| 日韩国产欧美在线视频| 欧美日韩在线播放一区| 国产精品大尺度| 秋霞av亚洲一区二区三| 欧美日韩国产在线观看| 亚洲欧洲制服丝袜| 99在线热播精品免费| 2023国产精品| 国产精品一区二区91| 日韩视频一区二区三区| 蜜桃视频在线一区| 欧美日韩一区二区三区四区| 亚洲综合激情另类小说区| av中文一区二区三区| 欧美一区二区免费视频| 欧美日韩中文精品| 成人一区二区三区中文字幕| 日韩精品一二区| 国产亚洲一区二区三区在线观看| 国产精品夜夜爽| 视频一区视频二区在线观看| 欧美精品粉嫩高潮一区二区| 国产一区二区视频在线| 香蕉成人啪国产精品视频综合网| 久久久亚洲高清| 国产偷国产偷亚洲高清人白洁| 91亚洲精品一区二区乱码| 欧美大白屁股肥臀xxxxxx| 精彩视频一区二区三区| 日韩精品中文字幕在线不卡尤物| 精品在线免费视频| 精品国产91乱码一区二区三区| 国产乱人伦偷精品视频免下载| 精品999久久久| 亚洲福中文字幕伊人影院| 欧美男男青年gay1069videost| 一二三区精品福利视频| 日韩丝袜美女视频| 极品销魂美女一区二区三区| 国产精品视频你懂的| 成人av免费网站| 亚洲成人第一页| 日韩欧美国产一区在线观看| 国产91在线观看| 亚洲黄色尤物视频| 欧美伊人精品成人久久综合97| 亚洲成人动漫精品| 日韩女优av电影在线观看| 成人爱爱电影网址| 亚洲男人天堂av网| 欧美一区二区三区日韩视频| 国产一区二区中文字幕| 亚洲激情图片一区| 日韩欧美在线影院| 在线精品视频小说1| 免费在线看成人av| 亚洲少妇30p| 久久久天堂av| 777奇米成人网| 国产a精品视频| 蜜臀久久99精品久久久画质超高清| 久久久五月婷婷| 7878成人国产在线观看| 国产成人av电影| 麻豆91在线看| 亚洲黄色尤物视频| 国产精品久久久久永久免费观看| 国产精品一区二区无线| 亚洲一区二区av在线| 欧洲在线/亚洲| 国内一区二区视频| 日韩精品三区四区| 亚洲三级在线免费| 国产色产综合色产在线视频| 欧美亚洲愉拍一区二区| 99精品一区二区| 精品一区二区三区免费毛片爱 | 久久久国产午夜精品| 在线免费不卡视频| 色94色欧美sute亚洲线路一ni| 蜜臀av性久久久久av蜜臀妖精| 亚洲一区在线播放| 自拍偷拍国产亚洲| 国产三级一区二区| 91精品国产全国免费观看| 91亚洲国产成人精品一区二三| 热久久久久久久| 亚洲午夜免费视频| 精品国产乱码久久久久久久| 97久久超碰国产精品| 国产麻豆91精品| 日本一道高清亚洲日美韩| 亚洲免费视频成人| 国产精品三级av| 国产精品护士白丝一区av| 久久久99免费| 中文字幕欧美激情| 日本一区二区三区电影| 欧美国产精品一区二区| 久久久久久久久免费| 久久综合色鬼综合色| 91精品国产色综合久久ai换脸 | 一区二区视频免费在线观看| 国产嫩草影院久久久久| 中文字幕中文字幕一区二区| 久久久久国产精品麻豆ai换脸| 久久久亚洲精品石原莉奈| 精品国产污污免费网站入口| 久久久久国产免费免费| 亚洲免费观看在线观看| 亚洲国产一区在线观看| 亚洲国产欧美一区二区三区丁香婷| 亚洲超碰97人人做人人爱| 一区二区三区毛片| 天天综合日日夜夜精品| 香蕉成人啪国产精品视频综合网| 免费日本视频一区| 久久精品国产亚洲一区二区三区| 国产一区二区福利| 国产麻豆欧美日韩一区| 91美女在线视频| 欧美在线免费观看亚洲| 欧美电影免费观看完整版| 欧美xfplay| 亚洲少妇30p| 亚洲国产美女搞黄色| 老司机免费视频一区二区| 美女视频黄久久| www.一区二区| 欧美亚洲综合在线| 国产欧美综合在线| 综合久久久久综合| 香蕉av福利精品导航| 激情欧美日韩一区二区| 美女视频网站久久| av色综合久久天堂av综合| 91免费精品国自产拍在线不卡| 色爱区综合激月婷婷| 欧美美女黄视频| 中文字幕一区二区三区四区不卡 | 91麻豆精品国产| 中文字幕乱码一区二区免费| 亚洲免费观看高清完整版在线观看| 午夜影视日本亚洲欧洲精品| 精品一区二区国语对白| 色播五月激情综合网| 日韩视频免费直播| 一区二区三区精密机械公司| 秋霞国产午夜精品免费视频| 在线视频一区二区三| 欧美变态tickle挠乳网站| 亚洲成人三级小说| 国产精品99久久久久久似苏梦涵 | 精品一区二区三区的国产在线播放| 9人人澡人人爽人人精品| 欧美最猛性xxxxx直播| 亚洲黄一区二区三区| 久久99久久99小草精品免视看| 成人禁用看黄a在线| 欧美一区中文字幕| 亚洲欧洲精品成人久久奇米网| 日产精品久久久久久久性色| 大陆成人av片| 中文字幕第一区综合| 美女视频黄 久久| 91精品国产乱码| 国产欧美日韩激情| 国精品**一区二区三区在线蜜桃| 欧美妇女性影城| 一区二区三区成人| 91猫先生在线| 国产精品美女www爽爽爽| 狠狠色丁香久久婷婷综合_中 | 国产福利一区二区三区视频 | 亚洲成在人线在线播放| 成人国产亚洲欧美成人综合网| 久久久久国产精品人| 欧美96一区二区免费视频| 制服丝袜激情欧洲亚洲| 又紧又大又爽精品一区二区| 色悠久久久久综合欧美99|