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

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

?? lag.c

?? Reference Implementation of G.711 standard and other voice codecs
?? C
字號:
/**************************************************************************                (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.Systems Research LaboratoriesChicago Corporate Research and Development CenterMotorola Inc.**************************************************************************//*-------------------------------------------------------------*//**//*	lag_search.c -- Long-term predictor lag determination.*//**//*-------------------------------------------------------------*//**//*	Written by: Matt Hartman*//**//*-------------------------------------------------------------*//*	inclusions*//**/#include "vparams.h"/*#include "stdlib.h"*//*	function declarations*//**/static void     i_resp();/*FTYPE *htPtr*/int             LAG_SEARCH(){  FTYPE          *ht;		/* Points to truncated impulse response */  FTYPE          *zl;		/* Points to zl vector, the weighted section				 * of the */  /* ltp state that will be overlapped and added to */  /* get bl, the weighted pitch excitation for lag l */  FTYPE          *bl;		/* Points to the weighted pitch excitation				 * for lag l */  FTYPE          *r;		/* Points one past the end of the ltp state				 * (for */  /* correct indexing of the r array) */  FTYPE           Cl;		/* Holds the cross correlation between bl and				 * P, the */  /* weighted speech, for lag l */  FTYPE           Gl;		/* Holds the energy in bl */  FTYPE           E;		/* Holds the partial energy of bl for lags				 * greater */  /* than S_LEN */  FTYPE           ClBest = 0.0;	/* Holds the value of Cl for the current best */  /* Cl**2 / Gl */  FTYPE           GlBest = 1.0;	/* Holds the value of Gl for the current best */  /* Cl**2 / Gl */  FTYPE           rVal;		/* Temporary storage place for r(-L) */  int             lag;		/* the current lag */  int             lagBest = 0;	/* holds the value of l for the current best */  /* Cl**2 / Gl */  FTYPE          *tmpPtr, *tmpPtr2, *tmpPtr3, *endPtr;  int             n, i;  ht = (FTYPE *) malloc(PLEN * sizeof(FTYPE));  zl = (FTYPE *) calloc(S_LEN, sizeof(FTYPE));  bl = (FTYPE *) malloc(S_LEN * sizeof(FTYPE));  r = T_P_STATE + LMAX;/*	compute truncated impulse response of H(z)*//**/  i_resp(ht);/*	compute initial zl array*//**/  for (n = 0; n < LMIN; n++)  {    for (i = 0; i <= n; i++)      *(zl + n) += *(r + i - LMIN) * *(ht + n - i);  }  for (n = LMIN; n < PLEN; n++)  {    for (i = 0; i < LMIN; i++)      *(zl + n) += *(r + i - LMIN) * *(ht + n - i);  }  for (n = PLEN; n < PLEN + LMIN - 1; n++)  {    for (i = n - PLEN + 1; i < LMIN; i++)      *(zl + n) += *(r + i - LMIN) * *(ht + n - i);  }  if (LMIN + PLEN - 1 < S_LEN)  {    for (n = PLEN + LMIN - 1; n < S_LEN; n++)      *(zl + n) = 0.0;  }/*	lag search loop*//**/  for (lag = LMIN; lag <= LMAX; lag++)  {    /* get bl from zl (overlap and add) */    /**/    endPtr = bl + S_LEN;    tmpPtr = bl;		/* copy zl into bl */    tmpPtr2 = zl - 1;    for (; tmpPtr < endPtr; tmpPtr++)      *tmpPtr = *++tmpPtr2;    tmpPtr = bl + lag;		/* compute bl elements which have */    tmpPtr2 = zl - 1;		/* at least two terms (if any) */    for (; tmpPtr < endPtr; tmpPtr++)      *tmpPtr += *++tmpPtr2;    tmpPtr = bl + 2 * lag;	/* compute bl elements which have */    tmpPtr2 = zl - 1;		/* three terms (if any) */    for (; tmpPtr < endPtr; tmpPtr++)      *tmpPtr += *++tmpPtr2;    /* compute cross-correlation between weighted speech and bl */    /**/    Cl = 0.0;    tmpPtr = bl;    tmpPtr2 = P;    for (endPtr = tmpPtr + S_LEN; tmpPtr < endPtr; tmpPtr++, tmpPtr2++)      Cl += *tmpPtr * *tmpPtr2;    /* compute energy in bl (with recursion, if appilcable) */    /**/    Gl = 0.0;    if (lag < S_LEN)    {      tmpPtr = bl;      for (endPtr = tmpPtr + S_LEN; tmpPtr < endPtr; tmpPtr++)	Gl += *tmpPtr * *tmpPtr;    }    else if (lag > S_LEN)    {      Gl = E;      tmpPtr = bl;      for (endPtr = tmpPtr + PLEN; tmpPtr < endPtr; tmpPtr++)	Gl += *tmpPtr * *tmpPtr;      E += *(zl + PLEN - 1) * *(zl + PLEN - 1) - *(zl + S_LEN - 1) * *(zl + S_LEN - 1);    }    else    {      /* lag = S_LEN: initialize partial energy E, and calculate */      /* energy in bl. */      /**/      E = 0.0;      tmpPtr = bl + PLEN;      for (endPtr = bl + S_LEN; tmpPtr < endPtr; tmpPtr++)	E += *tmpPtr * *tmpPtr;      Gl = E;      tmpPtr = bl;      for (endPtr = tmpPtr + PLEN; tmpPtr < endPtr; tmpPtr++)	Gl += *tmpPtr * *tmpPtr;      E += *(zl + PLEN - 1) * *(zl + PLEN - 1) - *(zl + S_LEN - 1) * *(zl + S_LEN - 1);    }    /* compare C**2/G and save max */    /**/    if (Cl > 0.0)    {      if (Cl * Cl * GlBest > ClBest * ClBest * Gl)      {	ClBest = Cl;	GlBest = Gl;	lagBest = lag;      }    }    /* update zl array unless done */    /**/    if (lag == LMAX)      break;    rVal = *(r - lag - 1);    tmpPtr = zl + S_LEN - 1;    tmpPtr2 = tmpPtr;    for (endPtr = zl + PLEN; tmpPtr >= endPtr; tmpPtr--)      *tmpPtr = *--tmpPtr2;    tmpPtr3 = ht + PLEN;    for (endPtr = zl + 1; tmpPtr >= endPtr; tmpPtr--)      *tmpPtr = *--tmpPtr2 + rVal * *--tmpPtr3;    *zl = rVal * *ht;  }  free(ht);  free(zl);  free(bl);  return lagBest;}/*	truncated impulse response function*//**/static void     i_resp(htPtr)  FTYPE          *htPtr;{  FTYPE          *cP, *tmpPtr, *endPtr, *freePtr, impulse = 1.0;  int             i;  freePtr = (FTYPE *) calloc(PLEN + NP, sizeof(FTYPE));  tmpPtr = freePtr;  tmpPtr += NP;/*	calculate response*//**/  for (endPtr = tmpPtr + PLEN; tmpPtr < endPtr; tmpPtr++)  {    cP = W_COEF - 1;    for (i = 1; i <= NP; i++)      *tmpPtr -= *(cP + i) * *(tmpPtr - i);    *tmpPtr += impulse;    impulse = 0.0;    *htPtr = *tmpPtr;    htPtr++;  }  free(freePtr);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品性色| 国产福利视频一区二区三区| 成人看片黄a免费看在线| 94色蜜桃网一区二区三区| 精品91自产拍在线观看一区| 丝袜脚交一区二区| 欧美日韩免费在线视频| 亚洲美女在线一区| 99精品久久免费看蜜臀剧情介绍| 久久久久九九视频| 国产精品影视网| 国产精品人妖ts系列视频| 韩国一区二区三区| 久久久久久久精| 91丨porny丨首页| 中文字幕色av一区二区三区| 粉嫩av一区二区三区在线播放| 日韩精品一区二区三区中文精品| 美国毛片一区二区三区| 日韩精品自拍偷拍| 精品一区二区三区香蕉蜜桃| 99精品黄色片免费大全| 中文字幕一区二区三区在线观看| 99久久精品99国产精品| 一区二区三区不卡视频在线观看 | 久久亚区不卡日本| 免费成人在线网站| 精品国产乱码久久久久久蜜臀 | 欧美日本高清视频在线观看| 一区二区激情小说| 欧美日本一区二区| 国产毛片精品视频| 亚洲欧洲99久久| 在线观看免费亚洲| 青青国产91久久久久久| 7777精品伊人久久久大香线蕉完整版| 人人狠狠综合久久亚洲| 日韩一卡二卡三卡四卡| 国产成人精品一区二区三区网站观看| 中文字幕精品一区| 欧美亚洲综合一区| 久久 天天综合| 成人欧美一区二区三区黑人麻豆| 色偷偷久久一区二区三区| 亚洲va欧美va人人爽| 欧美精品一区二区高清在线观看| 成人精品视频.| 丝袜美腿亚洲综合| 国产日产欧产精品推荐色| 色婷婷精品大在线视频| 亚洲一区成人在线| 久久这里只有精品视频网| 99re这里只有精品6| 日韩国产一二三区| 婷婷激情综合网| 日本一区二区三区dvd视频在线| 国产成人精品免费网站| 亚洲国产裸拍裸体视频在线观看乱了| 日韩免费观看高清完整版| 国产在线国偷精品产拍免费yy| 亚洲卡通动漫在线| 久久久久青草大香线综合精品| 在线看日韩精品电影| 国产999精品久久久久久绿帽| 婷婷久久综合九色综合伊人色| 精品国产一区二区三区久久久蜜月| eeuss影院一区二区三区| 免费的国产精品| 亚洲国产视频a| 国产精品理论在线观看| 欧美电影免费观看高清完整版在| 久久精品国产一区二区| 一区二区在线观看不卡| 国产喷白浆一区二区三区| 欧美精品一二三区| 色综合一区二区三区| 韩国成人精品a∨在线观看| 亚洲国产综合人成综合网站| 中文字幕欧美日本乱码一线二线| 91精品麻豆日日躁夜夜躁| 色综合天天综合色综合av | 亚洲国产wwwccc36天堂| 国产精品久久久久久一区二区三区| 日本久久一区二区三区| 成人av免费在线观看| 国产精品一区二区在线观看不卡 | 欧美老人xxxx18| 色婷婷亚洲精品| 99热在这里有精品免费| 国产精品小仙女| 国产精品自拍三区| 国产一区日韩二区欧美三区| 日韩av中文字幕一区二区| 一区二区激情小说| 亚洲在线一区二区三区| 一区二区三区欧美| 亚洲精品老司机| 18成人在线视频| 国产精品久久久久久久久快鸭| 久久久精品综合| 久久精品网站免费观看| 精品国精品国产| 欧美精品高清视频| 欧美精品高清视频| 日韩亚洲欧美一区二区三区| 这里是久久伊人| 在线电影国产精品| 日韩一区二区在线看| 精品国精品国产| 国产亲近乱来精品视频| 国产精品素人一区二区| 中文字幕精品在线不卡| 亚洲欧洲av在线| 亚洲一区二区欧美日韩| 亚洲国产精品尤物yw在线观看| 午夜亚洲国产au精品一区二区| 久久草av在线| 色婷婷精品大在线视频| 欧美成人a∨高清免费观看| 最新热久久免费视频| 天天av天天翘天天综合网色鬼国产 | 日本亚洲一区二区| 成人涩涩免费视频| 欧美女孩性生活视频| 国产欧美一区二区精品性色超碰| 亚洲一区二区中文在线| 国产精品18久久久久久久久久久久| 91视频www| 久久先锋影音av| 亚洲一区在线播放| 成人中文字幕电影| 精品少妇一区二区三区视频免付费 | 日本亚洲天堂网| 91丝袜国产在线播放| 精品精品国产高清一毛片一天堂| 亚洲欧洲精品一区二区精品久久久 | 国产精品久久久久影院老司| 日韩精品亚洲专区| 91色乱码一区二区三区| 久久五月婷婷丁香社区| 婷婷六月综合亚洲| 91色婷婷久久久久合中文| 久久久久国产精品麻豆| 天天爽夜夜爽夜夜爽精品视频| 成人丝袜18视频在线观看| 欧美大肚乱孕交hd孕妇| 亚洲成人免费在线观看| 972aa.com艺术欧美| 国产日本亚洲高清| 国产麻豆欧美日韩一区| 欧美一区二区视频在线观看2020| 自拍av一区二区三区| 国产成人啪午夜精品网站男同| 欧美一卡2卡三卡4卡5免费| 一区二区日韩电影| 91在线观看视频| 国产精品五月天| 高清不卡在线观看av| 久久网站热最新地址| 美国毛片一区二区| 欧美一卡二卡三卡| 热久久免费视频| 91麻豆精品国产| 五月综合激情婷婷六月色窝| 欧美在线一二三四区| 亚洲另类春色校园小说| 91猫先生在线| 亚洲视频一区二区在线| 色综合天天综合在线视频| 亚洲欧美日韩人成在线播放| 99精品偷自拍| ...av二区三区久久精品| 色综合色综合色综合| 亚洲国产精品精华液ab| av网站免费线看精品| 亚洲色欲色欲www| 色综合久久中文综合久久牛| 亚洲欧美激情在线| 欧美亚洲图片小说| 日韩精品一级二级| 久久综合一区二区| 成人一区二区三区视频在线观看| 国产精品视频一二三区| 99热99精品| 亚洲精品日产精品乱码不卡| 一本一道久久a久久精品综合蜜臀| 《视频一区视频二区| 欧美日韩色综合| 久久黄色级2电影| 国产日韩在线不卡| 色综合视频在线观看| 亚洲国产精品一区二区尤物区| 日韩一区二区在线播放| 国产精品自拍av| 一区二区三区免费| 欧美成人激情免费网| fc2成人免费人成在线观看播放| 一二三区精品视频| 欧美大胆一级视频| 97se亚洲国产综合自在线不卡|