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

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

?? cvt-head.c

?? Reference Implementation of G.711 standard and other voice codecs
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*                                                              v1.0 18.Jan.99  ============================================================================  CVT-HEAD.C  ~~~~~~~~~~  Description:   ~~~~~~~~~~~~  Program that converts a serial bitstream from the old STL92 format  back/to STL96 format.  The STL92 format for BS was SYNC_FLAG followed by softbits. The  STL96 uses the G.192 bistream format, in which a sync HEADER is used  (a sync header is composed of a sync flag followed by the frame  length).  Initial suppositions:   - input file has a header (either STL92 or STL96)  Usage:  cvt-head   Options:  -n ............. number of frames to process  -start ......... first frame to start operation  -frame ......... payload size in no. of softbits  -nosync ........ don't use sync headers in output file  -sync .......... use sync headers in output file [default]  -nofer ......... revert any frame erasure flags (0x6B20) to 0x6B21  -q ............. quiet operation  -help, -? ...... display help message  Original author:   ~~~~~~~~~~~~~~~~  Simao Ferraz de Campos Neto, Sr.MTS  *All comments are strictly my own*  COMSAT Laboratories                  Tel:    +1-301-428-4516  22300 Comsat Drive                   Fax:    +1-301-428-9287  Clarksburg MD 20871 - USA            E-mail: simao.campos@comsat.com                                            History  ~~~~~~~  18.Jan.99 v1.0 Created  ============================================================================*//* ..... Generic include files ..... */#include <stdio.h>                      /* Standard I/O Definitions */#include <stdlib.h>                     /* for atoi(), atol() */#include <string.h>                     /* for strstr() */#include <math.h>                       /* for ceil() */#include "ugstdemo.h"                   /* general UGST definitions *//* ..... Specific include files ..... */#if defined(VMS)		/* for checking file sizes */#include <stat.h>#else#include <sys/stat.h>#endif#if defined (unix) && !defined(MSDOS)/*                 ^^^^^^^^^^^^^^^^^^ This strange construction is necessary                                      for DJGPP, because "unix" is defined,				      even it being MSDOS! */#if defined(__ALPHA)#include <unistd.h>		/* for SEEK_... definitions used by fseek() */#else#include <sys/unistd.h>		/* for SEEK_... definitions used by fseek() */#endif#endif/* ..... Module definition files ..... */#include "ugst-utl.h"                   /* format conversion functions *//* ..... Module definition files ..... */#include "softbit.h"            /* Soft bit definitions and prototypes *//* ... Local function prototypes ... */char check_bs_format ARGS((FILE *F, char *file, char *type));int check_sync ARGS((FILE *F, char *file, char *bs_type, long *fr_len,		     char *bs_format));void display_usage ARGS((int level));/* ......... End of local function prototypes ......... */ /* ... Local defines, pseudo-functions ... */#define OVERHEAD_STL92 1 /* Overhead is sync word */#define OVERHEAD_STL96 2 /* Overhead is sync word and length word*//* Operating modes */enum STL_versions {raw, STL92, STL96};/* ************************* AUXILIARY FUNCTIONS ************************* *//*  --------------------------------------------------------------------------  char check_bs_format (FILE *F, char *file, char *type);  ~~~~~~~~~~~~~~~~~~~~  Function that checks the format (g192, byte, bit) in a given  bitstream, and tries to guess the type of data (bit stream or frame  erasure pattern)  Parameter:  ~~~~~~~~~~  F ...... FILE * structure to file to be checked  file ... name of file to be checked  type ... pointer to guessed data type in file:           NO_HEADER for headerless BS           HAS_HEADER for sync header (sync flag followed by frame length)            HAS_FLAG_ONLY for BS with sync flag only, but no frame length)  Returned value:  ~~~~~~~~~~~~~~~  Returns the data format (g192, byte, bit) found in file.  Original author: <simao.campos@comsat.com>  ~~~~~~~~~~~~~~~~  History:  ~~~~~~~~  20.Aug.97  v.1.0  Created.  18.Jan.99  v.1.1  Added case for HAS_FLAG_ONLY <simao>  -------------------------------------------------------------------------- */char check_bs_format(F, file, type)FILE *F;char *file;char *type;{  short word;  char ret_val;  /* Get a 16-bit word from the file */  fread(&word, sizeof(short), 1, F);  /* Use some heuristics to determine what type of file is this */  switch((unsigned)word)  {  case 0x7F7F:  case 0x7F81:  case 0x817F:  case 0x8181:    /* Byte-oriented G.192 bitstream */     *type = NO_HEADER;    ret_val = byte;    break;  case 0x2020:  case 0x2021:  case 0x2120:  case 0x2121:    /* Byte-oriented G.192 syncs */    *type = HAS_HEADER;    ret_val = byte;    break;  case 0x007F:  case 0x0081:    /* G.192 bitstream in natural order */    *type = NO_HEADER;    ret_val = g192;    break;  case 0x6B21:  case 0x6B20:    /* G.192 sync header in natural order */    *type = HAS_HEADER;    ret_val = g192;    break;  case 0x7F00:  case 0x8100:  case 0x216B:  case 0x206B:    /* G.192 format that needs to be byte-swapped */    fprintf(stderr, "File %s needs to be byte-swapped! Aborted.\n", file);    exit(8);  default:    /* Assuming it is compact bit mode */   *type = nil; /* Not possible to infer type for binary format! */    ret_val = compact;  }  /* Final check to see if the input bitstream is a byte-oriented G.192     bitstream. In this case, the first byte is 0x2n (n=0..F) and the     second byte must be the frame length */  if ((((unsigned)word>>8) & 0xF0) == 0x20)  {     *type = HAS_HEADER;     ret_val = byte;  }  /* Rewind file & and return format identifier */  fseek(F, 0l, SEEK_SET);  return(ret_val);}/* ...................... End of check_bs_format() ...................... *//*   ------------------------------------------------------------------------  int check_sync (FILE *F, char *file, char *bs_type,                 long *fr_len, *bs_format);  Check that the bit stream has a synchronization flag and header,  returning the length of the overhead. For headerless BS, it is 0,  for STL96 is 2, for STL92 is 1.  Parameter:  ~~~~~~~~~~  F ...... FILE * structure to file to be checked  file ... name of file to be checked  bs_type  .... pointer to type of bitstream (G192, BYTE, or COMPACT)  fr_len ...... pointer to frame length, in number of (soft)bits  bs_format ... pointer to guessed data type in file:                - NO_HEADER for headerless BS		- HAS_HEADER for sync header (sync flag followed by		  frame length)		- HAS_FLAG_ONLY for BS with sync flag only, but no		  frame length)  Returned value:  ~~~~~~~~~~~~~~~  Returns whether a synchonization HEADER was found in the  bitstream. Also changes the bs_type, fr_len, and bs_format input  variables. The file pointer is rewinded to the beginning of the  file.  Original author: <simao.campos@comsat.com>  ~~~~~~~~~~~~~~~~  History:  ~~~~~~~~  20.Aug.97  v.1.0  Created.  18.Jan.99  v.1.1  Added case for HAS_FLAG_ONLY <simao>  -------------------------------------------------------------------------- */int check_sync(F, file, bs_type, fr_len, bs_format)FILE *F;char *file;char *bs_type, *bs_format;long *fr_len;{  long i;  char sync_header, sync_flag;  /* Initializes expecting a non-G.192-compliant BS */  sync_header = sync_flag = 0;  /* Get info on bitstream */  *bs_format = check_bs_format(F, file, bs_type);  /* If the BS seems to have a header, search for two consecutive     ones. If it finds, determines which is the frame size */  if (*bs_type == HAS_HEADER)  {    /* It has a sync flag, but is it a full sync header? */    sync_flag = 1;    /* The input BS may have a G.192 synchronization header - verify */    if (*bs_format == g192)    {      short tmp[2];      /* Get presumed first G.192 sync header */      fread(tmp, sizeof(short), 2, F);      /* tmp[1] should have the frame length */      i = tmp[1];      /* advance file to the (presumed) next G.192 sync header */      fseek(F, (long)(tmp[1])*sizeof(short), SEEK_CUR);      /* get (presumed) next G.192 sync header */      fread(tmp, sizeof(short), 2, F);      /* Verify whether ... */      if (((tmp[0] & 0xF0) == 0x20) && (i == tmp[1]))      {	/* ... found a sync header */	*fr_len = i;	sync_flag = 1;	sync_header = 2;       }      else	sync_header = 1;    }    else if (*bs_format == byte)    {      char tmp[2];      /* Get presumed first byte-wise G.192 sync header */      fread(tmp, sizeof(char), 2, F);      /* tmp[1] should have the frame length */      i = tmp[1];      /* advance file to the (presumed) next byte-wise G.192 sync header */      fseek(F, (long)tmp[1], SEEK_CUR);      /* get (presumed) next G.192 sync header */      fread(tmp, sizeof(char), 2, F);      /* Verify */      if (((tmp[0] & 0xF0) == 0x20) && (i == tmp[1]))      {	*fr_len = i;	sync_flag = 1;	sync_header = 2;       }      else	sync_header = 1;    }    else      sync_header = sync_flag = 0;    /* Rewind file */    fseek(F, 0l, SEEK_SET);  }  else    /* BS type is COMPACT; return 0 */    return(0);  /* Check the case when it has sync flag but not sync header */  if (sync_flag==sync_header)  {    int tmp = 0x20;    long flen = -1;    /* Search first occurence of LSB of sync flag in BS */    while ((getc(F)&0xF0)!=tmp && !feof(F));    /* Search next occurence of LSB of sync flag in BS */    while ((getc(F)&0xF0)!=tmp && !feof(F))      flen++; /* Increase counter */    /* Use the one found; use as no.of bytes read if BYTE of no.of words       if G192 */    *fr_len = (*bs_format == g192)? flen/2: flen;    *bs_type = HAS_FLAG_ONLY;    /* Rewind file */    fseek(F, 0l, SEEK_SET);  }  /* Return info on whether or not a frame sync header was found */  return(sync_header);}/*  --------------------------------------------------------------------------  display_usage()  Shows program usage.  History:  ~~~~~~~~  20/Aug/1997  v1.0 Created <simao>  --------------------------------------------------------------------------*/#define P(x) printf xvoid display_usage(level)int level;{}#undef P/* .................. End of display_usage() ....................... */ /*  ------------------------------------------------------------------------  Return a string with the version of bitstream  ------------------------------------------------------------------------*/char *cvt_type(i)int i;{  switch(i)  {  case raw:    return "Headerless";    break;  case STL92:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
1024成人网色www| 久久综合久久综合九色| 狠狠v欧美v日韩v亚洲ⅴ| 久久久精品中文字幕麻豆发布| 日本高清不卡aⅴ免费网站| 麻豆精品视频在线| 一区二区三区欧美亚洲| 久久久www成人免费毛片麻豆| 欧美日韩视频在线第一区| 成人午夜激情在线| 麻豆精品视频在线观看视频| 亚洲成人在线免费| 午夜精品爽啪视频| 日本一区二区综合亚洲| 欧美一区二区精品| 欧美午夜精品久久久| 成人毛片视频在线观看| 国产精一品亚洲二区在线视频| 91精品国产综合久久精品麻豆 | 色素色在线综合| 亚洲日本免费电影| 国产目拍亚洲精品99久久精品| 日韩一级精品视频在线观看| 欧美色图在线观看| 97超碰欧美中文字幕| 高清不卡在线观看| 国内精品伊人久久久久av影院| 视频一区二区三区入口| 亚洲综合色在线| 欧美精品一区男女天堂| 一区二区日韩av| 亚洲第一狼人社区| 亚洲综合久久久久| 国产精品午夜在线观看| 欧美性色黄大片| 日韩影视精彩在线| 精品国产欧美一区二区| 亚洲视频资源在线| 国产精品国产三级国产普通话99| 2021中文字幕一区亚洲| 欧美一级在线视频| 在线综合亚洲欧美在线视频 | 成人国产亚洲欧美成人综合网 | 国产精品主播直播| 国产在线视频精品一区| 韩国av一区二区| 欧美日韩日本视频| 免费成人美女在线观看| 欧美aⅴ一区二区三区视频| 日本va欧美va欧美va精品| 日本不卡123| 国内外成人在线视频| 精品国产乱码久久久久久闺蜜 | 精品视频在线免费看| 91在线国产观看| 日韩精品三区四区| 中文字幕不卡的av| 国产日韩欧美一区二区三区乱码 | 国产精品乱人伦中文| 久久久影视传媒| 中文字幕精品一区二区精品绿巨人 | 色综合网色综合| 91免费视频网| 久久精品国产一区二区| 一区二区三区 在线观看视频 | 精品日韩一区二区三区免费视频| 日韩女同互慰一区二区| 国产欧美精品区一区二区三区| 亚洲精品自拍动漫在线| 久久av老司机精品网站导航| 在线观看国产一区二区| 91精品黄色片免费大全| 国产精品国产自产拍高清av王其 | 日韩久久一区二区| 日本不卡一区二区| 欧美日韩色一区| 777欧美精品| 欧美成人性战久久| 久久婷婷综合激情| 欧美国产乱子伦| 亚洲一区二区三区视频在线| 中文字幕一区在线观看视频| 亚洲欧美日韩一区| 男人的天堂亚洲一区| 国产老妇另类xxxxx| 91豆麻精品91久久久久久| 日韩三级视频在线看| 成人免费小视频| 久久精品国产久精国产| 一本色道**综合亚洲精品蜜桃冫| 欧美电视剧在线看免费| 日韩av中文在线观看| 欧美精品第一页| 成人爽a毛片一区二区免费| 中文字幕一区二区三区在线不卡| 成人夜色视频网站在线观看| 欧美日韩亚洲综合在线 | 日韩欧美国产三级| 亚洲一区二区三区四区不卡| 国产最新精品免费| 欧美视频一区在线| 亚洲国产成人一区二区三区| 石原莉奈一区二区三区在线观看| 成人久久18免费网站麻豆| 日韩欧美三级在线| 一区二区三区资源| 国产成人av电影在线| 欧美成人女星排名| 日韩电影在线免费看| 色天使色偷偷av一区二区| 久久久午夜电影| 奇米色777欧美一区二区| 91国偷自产一区二区三区观看| 久久久久久久av麻豆果冻| 丝袜美腿高跟呻吟高潮一区| 一本色道a无线码一区v| 国产精品人成在线观看免费 | 国产精品亚洲成人| 欧美不卡一二三| 欧美aaaaaa午夜精品| 欧美人与禽zozo性伦| 亚洲永久精品大片| 99久久伊人网影院| 久久久国产精品午夜一区ai换脸| 麻豆精品一区二区综合av| 欧美日韩成人综合在线一区二区| 亚洲另类在线一区| 99re热视频这里只精品| 国产精品成人免费在线| 成人v精品蜜桃久久一区| 国产亚洲一区二区在线观看| 国产主播一区二区三区| 日韩丝袜美女视频| 麻豆成人在线观看| 欧美一卡二卡三卡| 国产精品资源站在线| 久久女同性恋中文字幕| 国产一区二区美女诱惑| 国产亚洲综合性久久久影院| 国产不卡视频在线观看| 欧美极品美女视频| 成人精品一区二区三区中文字幕| 中文字幕一区三区| 在线这里只有精品| 亚洲成av人在线观看| 精品一区二区在线观看| 成人网在线播放| 欧美一区二区人人喊爽| 处破女av一区二区| 亚洲欧美国产三级| 亚洲国产成人91porn| 亚洲国产一二三| 1024亚洲合集| 91国偷自产一区二区三区观看 | 精品国产一区二区三区久久久蜜月| 免费在线看一区| 久久久久久夜精品精品免费| 国产suv一区二区三区88区| 国产精品久久久久影院老司 | 国产亚洲欧美一区在线观看| 狠狠色丁香婷婷综合| 久久99国产精品麻豆| 亚洲高清三级视频| 日韩美女精品在线| 欧美国产精品久久| 精品久久久久久久久久久久久久久| 在线一区二区视频| 国产99久久久久久免费看农村| 视频一区在线视频| 亚洲一二三四久久| 亚洲午夜在线视频| 一区二区三区高清在线| 中文字幕中文字幕一区二区| 日本一区二区电影| 国产精品久久久久国产精品日日| 国产喷白浆一区二区三区| 精品免费视频.| 中文字幕精品三区| 国产精品久久久久久久久搜平片 | 久久精品国产久精国产| 一区二区三区日韩欧美精品| 国产精品理论片在线观看| 91精品国模一区二区三区| 欧美揉bbbbb揉bbbbb| 欧美绝品在线观看成人午夜影视| 欧美乱熟臀69xxxxxx| 亚洲在线观看免费视频| 日韩欧美一级二级三级久久久| 激情综合五月天| 日本在线观看不卡视频| 日本一区二区三区视频视频| 在线观看三级视频欧美| 激情另类小说区图片区视频区| 国产麻豆9l精品三级站| 亚洲日本乱码在线观看| 欧美一区二区二区| 一个色综合网站| 日韩精品五月天| 日韩亚洲欧美在线| 亚洲欧美影音先锋|