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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? softbit.c

?? Reference Implementation of G.711 standard and other voice codecs
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*                                                          V.1.1 - 01.JUN.05  ===========================================================================   The file containing an encoded speech bitstream can be in a compact   binary format, in the G.192 serial bitstream format (which uses   16-bit softbits), or in the byte-oriented G.192 format.   The file containing the error pattern will be in one of three   possible formats: G.192 16-bit softbit format (without synchronism   header for bit errors), byte-oriented version of the G.192 format,   and compact, hard-bit binary (bit) mode. These are described in the   following.   The headerless G.192 serial bitstream format is as described in   G.192, with the exceptions listed below. The main feature is that   the softbits and frame erasure indicators are right-aligned at   16-bit word boundaries (unsigned short):    '0'=0x007F and '1'=0x0081, and good/bad frame = 0x6B21/0x6B20   In the byte-oriented softbit serial bitstream, only the lower byte   of the softbits defined in G.192 are used. Hence:   '0'=0x7F and '1'=0x81, and good/bad frame = 0x21/0x20   In the compact (bit) mode, only hard bits are saved. Each byte will   have information about eight bits or frames. The LBbs will refer to   bits or frames that occur first in time. Here, '1' means that a bit   is in error or that a frame should be erased, and a '0', otherwise.   Conventions:   ~~~~~~~~~~~~   Bitstreams can be disturbed in two ways: by bit errors, or by frame   erasures. The STL EID supports three basic modes: bit errors using   Gilbert's model (labeled BER), frame erasures using Gilbert's model   (labeled FER), and Bellcore model burst frame erasure (labeled   BFER). Here are some conventions that apply to the particular   formats for each of these three EID operating modes.   BER: bitstream generated by this program are composed of bits 1/0,        *without* synchronism headers or any other frame delimitation        (i.e., only bits affecting the payload are present). Frame        boundaries are defined by the user's application only. The        following applies:        G.192 mode: file will contain either 0x007F (no disturbance) or	            0x0081 (bit error)        Byte mode:  file will contain either 0x7F (no disturbance) or	            0x81 (bit error)        Compact mode: each bit in the file will indicate whether a	            disturbance occurred (bit 1) or not (bit 0).		    Lower order bits apply to bits occurring first	            in time.   FER/BFER: bitstream generate by this program is composed only by        the indication of whether a frame should be erased or not. No        payload is present. The following applies:        G.192 mode: file will contain either 0x6B21 (no disturbance) or	            0x6B20 (frame erasure)        Byte mode:  file will contain either 0x21 (no disturbance) or	            0x20 (frame erasure)        Compact mode: each bit in the file will indicate whether a	            frame erasure occurred (bit 1) or not (bit 0).		    Lower order bits apply to bits occurring first	            in time.  ===========================================================================*//* ..... Generic include files ..... */#include "ugstdemo.h"		/* general UGST definitions */#include <stdio.h>		/* Standard I/O Definitions */#include <math.h>#include <stdlib.h>#include <string.h>		/* memset */#include <ctype.h>		/* toupper *//* ..... OS-specific include files ..... */#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/* Specific includes */#include "softbit.h"/*    -------------------------------------------------------------------------   long read_g192 (short *patt, long n, FILE *F);   ~~~~~~~~~~~~~~   Read a G.192-compliant 16-bit serial bitstream error pattern.   Parameter:   ~~~~~~~~~~   patt .... G.192 array with the softbits representing              the bit error/frame erasure pattern   n ....... number of softbits in the pattern   F ....... pointer to FILE where the pattern should be readd   Return value:    ~~~~~~~~~~~~~   Returns a long with the number of shorts softbits from file. On error,    returns -1.   Original author: <simao.campos@comsat.com>   ~~~~~~~~~~~~~~~~   History:   ~~~~~~~~   13.Aug.97  v.1.0  Created.   ------------------------------------------------------------------------- */long read_g192(patt, n, F)short *patt;long n;FILE *F;{  long i;  /* Read words from file */  i=fread(patt, sizeof(short), n, F);  /* Return no.of samples read or error */  return(ferror(F)? -1l : i);}/* ....................... End of read_g192() ....................... *//*  -------------------------------------------------------------------------  Read bit error pattern from a file in compressed binary (bit)  format. This is a front-end function for the more generic read_bit()  function.  ------------------------------------------------------------------------- */long read_bit_ber(patt, n, F)short *patt;long n;FILE *F;{  return(read_bit(patt, n, F, BER));}/* ....................... End of read_bit_ber() ....................... *//*  -------------------------------------------------------------------------  Read frame erasure pattern from a file in compressed binary (bit)  format. This is a front-end function for the more generic read_bit()  function.  ------------------------------------------------------------------------- */long read_bit_fer(patt, n, F)short *patt;long n;FILE *F;{  return(read_bit(patt, n, F, FER));}/* ....................... End of read_bit_fer() ....................... *//*    -------------------------------------------------------------------------   long read_bit (short *patt, long n, FILE *F, char type);   ~~~~~~~~~~~~~   Read a bit-oriented file where the LSb corresponds to the bit that   occurs first in time and saves into a headerless G.192 array.   Parameter:   ~~~~~~~~~~   patt .... returned G.192 array with the softbits representing             the bit error/frame erasure pattern   n ....... number of softbits in the pattern   F ....... pointer to FILE where the pattern should be read   type .... bitstream type (FER or BER). The user need to provide             this infoprmation, since it can not be inferred from	     a compact binary bitstream file   Return value:    ~~~~~~~~~~~~~   Returns a long with the number of softbits read from a file. On error,    returns -1.   Original author: <simao.campos@comsat.com>   ~~~~~~~~~~~~~~~~   History:   ~~~~~~~~   15.Aug.97  v.1.0  Created.   ------------------------------------------------------------------------- */long read_bit(patt, n, F, type)short *patt;long n;FILE *F;char type;{  char *bits;  short *p = patt;  long bitno, j, k, nbytes, rbytes, ret_val;  /* Skip function if no samples are to be read */  if (n==0)    return(0);  /* Calculate number of bytes necessary in the compact bitstream */  if (n%8)  {    fprintf(stderr, "The number of errors is not byte-aligned. \n");    fprintf(stderr, "Zero insertion is supposed!\n");  }  nbytes= (long)(ceil(n/8.0));  /* Allocate memory */  if ((bits = (char *)calloc(nbytes, sizeof(char)))==NULL)    HARAKIRI ("Cannot allocate memory to read compact binary bitstream\n", 6);  /* Reset memory to zero */  memset(patt, 0, sizeof(short) * n);  /* Read words from file; return on error */  rbytes = fread(bits, sizeof(char), nbytes, F);  /* Perform action according to returned no. of items */  if (ferror(F))    ret_val = -1l;  /*  else if (feof(F))    ret_val = 0;    */  else  {    /* Convert compact bit oriented data to byte-oriented data */    for (p = patt, bitno=j=0; j<rbytes; j++)    {      /* Get first bit */      *p++ = bits[j] & 0x0001;      bitno++; /* One bit less to go! */      /* "Expand" bits into hard bit words ... */      for (k=1; k<8 && bitno<n; k++, bitno++)	*p++ = (bits[j]>>k) & 0x0001;    }    /* Convert hard bits to soft bits, frame sync or frame erasure */    switch(type)    {    case BER:      for (p = patt, j=0; j<bitno; j++, p++)	*p = (*p)? 0x0081 : 0x007F;      break;    case FER:      for (p = patt, j=0; j<bitno; j++, p++)	*p = (*p)? 0x6B20 : 0x6B21;      break;    }    ret_val = bitno;  }  /* Free memory and quit */  free(bits);  return(ret_val);}/* ....................... End of read_bit() ....................... *//*    -------------------------------------------------------------------------   long read_byte (short *patt, long n, FILE *F);   ~~~~~~~~~~~~~~~   Read a G.192 error pattern from a file containing byte-oriented   serial bitstream error pattern. The follwoing map is used:   0x007F <- 0x7F ('0' softbit)   0x0081 <- 0x81 ('1' softbit)   0x0021 <- 0x21 (Frame OK)   0x0020 <- 0x20 (Frame erasure)   NOTE: The user is responsible for having only these four values in         the input file. The code will NOT check for compliance.   Parameter:   ~~~~~~~~~~   patt .... char array with the softbits representing the 16-bit              bit error softbit/frame erasure pattern   n ....... number of softbits to be read   F ....... pointer to FILE where the pattern should be read   Return value:    ~~~~~~~~~~~~~   Returns a long with the number of softbits read from a file. On error,    returns -1.   Original author: <simao.campos@comsat.com>   ~~~~~~~~~~~~~~~~   History:   ~~~~~~~~   15.Aug.97  v.1.0  Created.   ------------------------------------------------------------------------- */long read_byte(patt, n, F)short *patt;long n;FILE *F;{  char *byte;  long i;  unsigned char register tmp;  /* Skip function if no samples are to be read */  if (n==0)    return(0);  /* Allocate memory */  if ((byte = (char *)calloc(n, sizeof(char)))==NULL)    HARAKIRI ("Cannot allocate memory to read data as byte bitstream\n", 6);    /* Read words from file */  i = fread(byte, sizeof(char), n, F);  if (i<n)  {    /* the read operation returned less samples than expected */    if (i<=0)      return(i); /* Error or EOF */    else      n = i;     /* Frame is shorter than expected */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女屁股眼交| 国产日韩欧美精品在线| 国产一区在线观看麻豆| 国产精品国产精品国产专区不片| 欧美女孩性生活视频| 成人免费高清在线观看| 日本不卡免费在线视频| 亚洲情趣在线观看| 2020国产成人综合网| 欧美色图免费看| jlzzjlzz欧美大全| 国内精品写真在线观看| 精品一二线国产| 亚洲成av人片| 一区在线中文字幕| 久久久精品国产免大香伊| 欧美人伦禁忌dvd放荡欲情| 91亚洲资源网| 高清不卡在线观看| 国产资源精品在线观看| 日韩影院在线观看| 亚洲成a人片在线不卡一二三区| 国产精品久久夜| 国产色一区二区| 26uuu另类欧美亚洲曰本| 欧美蜜桃一区二区三区| 91成人免费电影| 91论坛在线播放| 成人综合婷婷国产精品久久蜜臀 | 国产精品欧美一区二区三区| 精品第一国产综合精品aⅴ| 91麻豆精品国产91久久久久久久久| 成人涩涩免费视频| 懂色av一区二区夜夜嗨| 国产成a人亚洲| 国产一区 二区 三区一级| 韩国一区二区三区| 国产又黄又大久久| 黑人巨大精品欧美一区| 日韩国产精品91| 日欧美一区二区| 亚洲第一电影网| 亚洲chinese男男1069| 亚洲专区一二三| 亚洲一区二区在线观看视频| 亚洲国产精品一区二区www| 一区二区成人在线观看| 亚洲乱码国产乱码精品精可以看| 亚洲女人****多毛耸耸8| 国产福利视频一区二区三区| 国产一区在线不卡| 丰满亚洲少妇av| 91麻豆免费观看| 在线看国产一区二区| 欧美视频一区二区三区四区| 欧美日韩高清一区二区| 日韩欧美一区电影| 久久久精品中文字幕麻豆发布| 国产午夜一区二区三区| 国产精品国产三级国产普通话三级 | 成人性生交大片免费看视频在线| 粗大黑人巨茎大战欧美成人| 99久久er热在这里只有精品66| 99精品国产视频| 欧美日韩亚洲综合在线 | 精品一区二区在线播放| 国产一区不卡视频| 色综合久久88色综合天天免费| 欧美影院一区二区| 欧美精品1区2区| 久久你懂得1024| 亚洲三级久久久| 奇米在线7777在线精品| 国产一区二区按摩在线观看| 99久久精品久久久久久清纯| 欧美日韩一区国产| 久久亚洲精华国产精华液| 日韩毛片一二三区| 免费在线看一区| 成人激情校园春色| 欧美日韩国产成人在线91| 久久无码av三级| 亚洲国产综合在线| 国模冰冰炮一区二区| 色综合久久久久| 26uuu国产一区二区三区| 综合中文字幕亚洲| 久久99精品久久久久久国产越南 | 国产精品久久久久久久久久免费看 | 精品剧情在线观看| 亚洲免费观看高清完整版在线| 美腿丝袜亚洲三区| 色偷偷一区二区三区| 精品国免费一区二区三区| 亚洲美女淫视频| 狠狠色丁香久久婷婷综合_中| 色婷婷亚洲婷婷| 国产亚洲精品aa| 日韩主播视频在线| 99这里只有久久精品视频| 欧美大尺度电影在线| 洋洋成人永久网站入口| 国产成人av一区| 欧美一区二区视频在线观看2022| 国产精品久久久久影院| 激情丁香综合五月| 884aa四虎影成人精品一区| 亚洲三级小视频| 成人视屏免费看| 久久久久久久久一| 日本大胆欧美人术艺术动态| 色欧美日韩亚洲| 中文字幕一区二| 国精产品一区一区三区mba桃花| 欧美日韩一区视频| 亚洲一区二区三区小说| 99久久免费视频.com| 国产精品网站在线| 狠狠色2019综合网| 精品国产网站在线观看| 日本一区中文字幕| 欧美喷潮久久久xxxxx| 亚洲在线视频网站| 欧美性生活影院| 亚洲一区日韩精品中文字幕| av网站一区二区三区| 日本一区二区三区电影| 国产精品一线二线三线精华| 欧美大片拔萝卜| 久久机这里只有精品| 日韩女优毛片在线| 美女一区二区视频| 日韩一区国产二区欧美三区| 午夜精品久久久久久久久久| 欧美亚洲国产一卡| 亚洲 欧美综合在线网络| 欧美日韩精品欧美日韩精品一| 亚洲成人精品影院| 91精品国产综合久久精品图片 | 日韩中文字幕一区二区三区| 欧美三级一区二区| 舔着乳尖日韩一区| 欧美一区二区视频免费观看| 蜜臀av亚洲一区中文字幕| 欧美大尺度电影在线| 经典三级一区二区| 中文文精品字幕一区二区| 成人免费毛片aaaaa**| ●精品国产综合乱码久久久久 | 99国产精品久久久久| 亚洲三级电影网站| 欧美日本在线视频| 蜜臀av国产精品久久久久 | 日韩欧美成人一区| 国产成人一级电影| 亚洲女人的天堂| 欧美顶级少妇做爰| 狠狠色丁香九九婷婷综合五月| 亚洲国产精品传媒在线观看| 成人av网站免费| 亚洲最大成人网4388xx| 欧美日韩在线播| 精品一区二区三区日韩| 欧美国产亚洲另类动漫| 日本高清免费不卡视频| 美国三级日本三级久久99| 国产亚洲一二三区| 91久久精品一区二区| 热久久免费视频| 国产精品国产自产拍高清av王其| 在线精品视频一区二区| 精品一区二区三区久久| 国产精品国产馆在线真实露脸 | 91香蕉视频mp4| 无码av免费一区二区三区试看 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 精品免费99久久| 9久草视频在线视频精品| 丝袜a∨在线一区二区三区不卡| 欧美xxxxxxxx| 色欧美日韩亚洲| 激情深爱一区二区| 亚洲一区二区中文在线| 久久久久亚洲蜜桃| 91成人在线观看喷潮| 国产麻豆日韩欧美久久| 亚洲人成精品久久久久久| 欧美一级片免费看| 91蝌蚪porny九色| 麻豆精品久久精品色综合| 亚洲欧美欧美一区二区三区| 精品第一国产综合精品aⅴ| 欧美中文字幕一区二区三区亚洲| 国产一区二区视频在线播放| 亚洲国产精品精华液网站| 久久久高清一区二区三区| 欧美日本韩国一区二区三区视频 | 国产69精品久久久久毛片| 日韩在线a电影| 亚洲精品国产品国语在线app|