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

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

?? exc_lbc.c

?? ARM嵌入式應用開發典型實例配書光盤,希望對你有用!
?? C
?? 第 1 頁 / 共 5 頁
字號:
        /* Update all the others */        for ( i = ClPitchOrd-2 ; i >= 0 ; i -- ) {            FltBuf[i][0] = mult_r( RezBuf[i], (Word16) 0x2000 ) ;            for ( j = 1 ; j < SubFrLen ; j ++ ) {                Acc0 = L_deposit_h( FltBuf[i+1][j-1] ) ;                Acc0 = L_mac( Acc0, RezBuf[i], ImpResp[j] ) ;                FltBuf[i][j] = round( Acc0 ) ;            }        }        /* Compute the cross with the signal */        for ( i = 0 ; i < ClPitchOrd ; i ++ ) {            Acc1 = (Word32) 0 ;            for ( j = 0 ; j < SubFrLen ; j ++ ) {                Acc0 = L_mult( Tv[j], FltBuf[i][j] ) ;                Acc1 = L_add( Acc1, L_shr( Acc0, (Word16) 1 ) ) ;            }            *lPnt ++ = L_shl( Acc1, (Word16) 1 ) ;        }        /* Compute the energies */        for ( i = 0 ; i < ClPitchOrd ; i ++ ) {            Acc1 = (Word32) 0 ;            for ( j = 0 ; j < SubFrLen ; j ++ )                Acc1 = L_mac( Acc1, FltBuf[i][j], FltBuf[i][j] ) ;            *lPnt ++ = Acc1 ;        }        /* Compute the between crosses */        for ( i = 1 ; i < ClPitchOrd ; i ++ ) {            for ( j = 0 ; j < i ; j ++ ) {                Acc1 = (Word32) 0 ;                for ( l = 0 ; l < SubFrLen ; l ++ ) {                    Acc0 = L_mult( FltBuf[i][l], FltBuf[j][l] ) ;                    Acc1 = L_add( Acc1, L_shr( Acc0, (Word16) 1 ) ) ;                }                *lPnt ++ = L_shl( Acc1, (Word16) 2 ) ;            }        }    }    /* Find Max and normalize */    Acc1 = (Word32) 0 ;    for ( i = 0 ; i < Hb*20 ; i ++ ) {        Acc0 = L_abs(CorBuf[i]) ;        if ( Acc0 > Acc1 )            Acc1 = Acc0 ;    }    Exp = norm_l( Acc1 ) ;    /* Convert to shorts */    for ( i = 0 ; i < Hb*20 ; i ++ ) {        Acc0 = L_shl( CorBuf[i], Exp ) ;        CorVct[i] = round( Acc0 ) ;    }    /* Test potential error */    Lag1 = Olp-(Word16)Pstep;    Lag2 = Olp-(Word16)Pstep+ Hb -(Word16)1;    off_filt = Test_Err(Lag1, Lag2);    Bound[0] =  NbFilt085_min + shl(off_filt,2);    if(Bound[0] > NbFilt085) Bound[0] = NbFilt085;    Bound[1] =  NbFilt170_min + shl(off_filt,3);    if(Bound[1] > NbFilt170) Bound[1] = NbFilt170;    /* Init the search loop */    Acc1 = (Word32) 0 ;    for ( k = 0 ; k < (int) Hb ; k ++ ) {        /* Select Quantization tables */        l = 0 ;        if ( WrkRate == Rate63 ){            if ( (Sfc & (Word16) 1) == (Word16) 0 ) {                if ( (int)Olp-Pstep+k >= SubFrLen-2 )l ++ ;            }            else {                if ( (int)Olp >= SubFrLen-2 ) l ++ ;            }        }        else {            l = 1;        }        sPnt = AcbkGainTablePtr[l] ;        for ( i = 0 ; i < (int) Bound[l] ; i ++ ) {            Acc0 = (Word32) 0 ;            for ( j = 0 ; j < 20 ; j ++ )                Acc0 = L_add( Acc0, L_shr( L_mult(CorVct[k*20+j], *sPnt ++),(Word16) 1 ) ) ;            if ( Acc0 > Acc1 ) {                Acc1 = Acc0 ;                Gid = (Word16) i ;                Lid = (Word16) k ;	//	printf("l=%d at lid=%d gid=%d\n",l,k,i);            }        }    }    /* Modify Olp for even sub frames */    if ( (Sfc & (Word16) 1 ) == (Word16) 0 ) {        Olp = Olp - (Word16) Pstep + Lid ;        Lid = (Word16) Pstep ;    }    /* Save Gains and Olp */    (*Line).Sfs[Sfc].AcLg = Lid ;    (*Line).Sfs[Sfc].AcGn = Gid ;    (*Line).Olp[shr(Sfc, (Word16) 1)] = Olp ; //    printf(" lid=%d \n",Lid); //    printf(" gid=%d \n",Gid);    /* Decode the Acbk contribution and subtract it */    Decod_Acbk( RezBuf, PrevExc, Olp, Lid, Gid ) ; //   Write_lbc(RezBuf,SubFrLen+4,fp);    for ( i = 0 ; i < SubFrLen ; i ++ ) {        Acc0 = L_deposit_h( Tv[i] ) ;        Acc0 = L_shr( Acc0, (Word16) 1 ) ;        for ( j = 0 ; j <= i ; j ++ )            Acc0 = L_msu( Acc0, RezBuf[j], ImpResp[i-j] ) ;        Acc0 = L_shl( Acc0, (Word16) 1 ) ;        Tv[i] = round( Acc0 ) ;    }    return;}/***** Function:        Get_Rez()**** Description:     Gets delayed contribution from the previous excitation**                  vector.**** Links to text:   Sections 2.14, 2.18 & 3.4**** Arguments:****  Word16 *Tv      delayed excitation**  Word16 *PrevExc Previous excitation vector**  Word16 Lag      Closed loop pitch lag**** Outputs:****  Word16 *Tv      delayed excitation**** Return value:    None***/void  Get_Rez( Word16 *Tv, Word16 *PrevExc, Word16 Lag ){    int   i  ;    for ( i = 0 ; i < ClPitchOrd/2 ; i ++ )        Tv[i] = PrevExc[PitchMax - (int) Lag - ClPitchOrd/2 + i] ;    for ( i = 0 ; i < SubFrLen+ClPitchOrd/2 ; i ++ )        Tv[ClPitchOrd/2+i] = PrevExc[PitchMax - (int)Lag + i%(int)Lag] ;    return;}/***** Function:        Decod_Acbk()**** Description:     Computes the adaptive codebook contribution from the previous**                  excitation vector.**                  With the gain index, the closed loop pitch lag, the jitter**                  which when added to this pitch lag gives the actual closed**                  loop value, and after having selected the proper codebook,**                  the pitch contribution is reconstructed using the previous**                  excitation buffer.**** Links to text:   Sections 2.14, 2.18 & 3.4**** Arguments:****  Word16 *Tv      Reconstructed excitation vector**  Word16 *PrevExc Previous excitation vector**  Word16 Olp      closed-loop pitch period**  Word16 Lid      Jitter around pitch period**  Word16 Gid      Gain vector index in 5- dimensional**                      adaptive gain vector codebook**** Outputs:****  Word16 *Tv      Reconstructed excitation vector**** Return value:    None***/void  Decod_Acbk( Word16 *Tv, Word16 *PrevExc, Word16 Olp, Word16 Lid,Word16 Gid ){    int   i,j   ;    Word32   Acc0  ;    Word16   RezBuf[SubFrLen+ClPitchOrd-1] ;    Word16  *sPnt ;    Get_Rez( RezBuf, PrevExc, (Word16)(Olp - (Word16)Pstep + Lid) ) ;    /* Select Quantization tables */    i = 0 ;    if ( WrkRate == Rate63 ) {        if ( Olp >= (Word16) (SubFrLen-2) ) i ++ ;    }    else {        i = 1;    }    sPnt = AcbkGainTablePtr[i] ;    sPnt += (int)Gid*20 ;    for ( i = 0 ; i < SubFrLen ; i ++ ) {        Acc0 = (Word32) 0 ;        for ( j = 0 ; j < ClPitchOrd ; j ++ )            Acc0 = L_mac( Acc0, RezBuf[i+j], sPnt[j] ) ;        Acc0 = L_shl( Acc0, (Word16) 1 ) ;        Tv[i] = round( Acc0 ) ;    }    return;}/***** Function:        Comp_Info()**** Description:     Voiced/unvoiced classifier.**                  It is based on a cross correlation maximization over the**                  last 120 samples of the frame and with an index varying**                  around the decoded pitch lag (from L-3 to L+3). Then the**                  prediction gain is tested to declare the frame voiced or**                  unvoiced.**** Links to text:   Section 3.10.2**** Arguments:****  Word16 *Buff  decoded excitation**  Word16 Olp    Decoded pitch lag**** Outputs: None**** Return value:****      Word16   Estimated pitch value*/Word16   Comp_Info( Word16 *Buff, Word16 Olp, Word16 *Gain, Word16 *ShGain){    int   i,j   ;    Word32   Acc0,Acc1 ;    Word16   Tenr ;    Word16   Ccr,Enr ;    Word16   Indx ;    /* Normalize the excitation */    *ShGain = Vec_Norm( Buff, (Word16) (PitchMax+Frame) ) ;    if ( Olp > (Word16) (PitchMax-3) )        Olp = (Word16) (PitchMax-3) ;    Indx = Olp ;    Acc1 = (Word32) 0 ;    for ( i = (int)Olp-3 ; i <= (int)Olp+3 ; i ++ ) {        Acc0 = (Word32) 0 ;        for ( j = 0 ; j < 2*SubFrLen ; j ++ )            Acc0 = L_mac( Acc0, Buff[PitchMax+Frame-2*SubFrLen+j],                                    Buff[PitchMax+Frame-2*SubFrLen-i+j] ) ;        if ( Acc0 > Acc1 ) {            Acc1 = Acc0 ;            Indx = (Word16) i ;        }    }    /* Compute target energy */    Acc0 = (Word32) 0 ;    for ( j = 0 ; j < 2*SubFrLen ; j ++ )        Acc0 = L_mac( Acc0, Buff[PitchMax+Frame-2*SubFrLen+j],                                    Buff[PitchMax+Frame-2*SubFrLen+j] ) ;    Tenr = round( Acc0 ) ;    *Gain = Tenr;    /* Compute best energy */    Acc0 = (Word32) 0 ;    for ( j = 0 ; j < 2*SubFrLen ; j ++ )        Acc0 = L_mac( Acc0, Buff[PitchMax+Frame-2*SubFrLen-(int)Indx+j],                            Buff[PitchMax+Frame-2*SubFrLen-(int)Indx+j] ) ;    Ccr = round( Acc1 ) ;    if ( Ccr <= (Word16) 0 )        return (Word16) 0 ;    Enr = round( Acc0 ) ;    Acc0 = L_mult( Enr, Tenr ) ;    Acc0 = L_shr( Acc0, (Word16) 3 ) ;    Acc0 = L_msu( Acc0, Ccr, Ccr ) ;    if ( Acc0 < (Word32) 0 )        return Indx ;    else        return (Word16) 0 ;}/***** Function:        Regen()**** Description:     Performs residual interpolation depending of the frame**                  classification.**                  If the frame is previously declared unvoiced, the excitation**                  is regenerated using a random number generator. Otherwise**                  a periodic excitation is generated with the period**                  previously found.**** Links to text:   Section 3.10.2**** Arguments:****  Word16 *DataBuff  current subframe decoded excitation**  Word16 *Buff     past decoded excitation**  Word16 Lag       Decoded pitch lag from previous frame**  Word16 Gain      Interpolated gain from previous frames**  Word16 Ecount    Number of erased frames**  Word16 *Sd       Random number used in unvoiced cases**** Outputs:****  Word16 *DataBuff current subframe decoded excitation**  Word16 *Buff     updated past excitation**** Return value:    None***/void     Regen( Word16 *DataBuff, Word16 *Buff, Word16 Lag, Word16 Gain,Word16 Ecount, Word16 *Sd ){    int   i  ;    /* Test for clearing */    if ( Ecount >= (Word16) ErrMaxNum ) {        for ( i = 0 ; i < Frame ; i ++ )            DataBuff[i] = (Word16) 0 ;        for ( i = 0 ; i < Frame+PitchMax ; i ++ )            Buff[i] = (Word16) 0 ;    }    else {        /* Interpolate accordingly to the voicing estimation */        if ( Lag != (Word16) 0 ) {            /* Voiced case */            for ( i = 0 ; i < Frame ; i ++ )                Buff[PitchMax+i] = Buff[PitchMax-(int)Lag+i] ;            for ( i = 0 ; i < Frame ; i ++ )                DataBuff[i] = Buff[PitchMax+i] = mult( Buff[PitchMax+i],                            (Word16) 0x6000 ) ;        }        else {            /* Unvoiced case */            for ( i = 0 ; i < Frame ; i ++ )                DataBuff[i] = mult( Gain, Rand_lbc( Sd ) ) ;            /* Clear buffer to reset memory */            for ( i = 0 ; i < Frame+PitchMax ; i ++ )                Buff[i] = (Word16) 0 ;        }    }    return;}/***** Function:        Comp_Lpf()**** Description:     Computes pitch postfilter parameters.**                  The pitch postfilter lag is first derived (Find_B**                  and Find_F). Then, the one that gives the largest**                  contribution is used to calculate the gains (Get_Ind).****** Links to text:   Section 3.6**** Arguments:****  Word16 *Buff    decoded excitation**  Word16 Olp      Decoded pitch lag**  Word16 Sfc      Subframe index**** Outputs:****** Return value:****  PFDEF       Pitch postfilter parameters: PF.Gain    Pitch Postfilter gain**                                           PF.ScGn    Pitch Postfilter scaling gain**                                           PF.Indx    Pitch postfilter lag*/PFDEF Comp_Lpf( Word16 *Buff, Word16 Olp, Word16 Sfc ){    int   i,j   ;    PFDEF Pf    ;    Word32   Lcr[5] ;    Word16   Scr[5] ;    Word16   Bindx, Findx ;    Word16   Exp ;    Word32   Acc0,Acc1 ;    /* Initialize */    Pf.Indx = (Word16) 0 ;    Pf.Gain = (Word16) 0 ;    Pf.ScGn = (Word16) 0x7fff ;    /* Find both indices */    Bindx = Find_B( Buff, Olp, Sfc ) ;    Findx = Find_F( Buff, Olp, Sfc ) ;    /* Combine the results */    if ( (Bindx == (Word16) 0) && (Findx == (Word16) 0) )        return Pf ;    /* Compute target energy */    Acc0 = (Word32) 0 ;    for ( j = 0 ; j < SubFrLen ; j ++ )        Acc0 = L_mac( Acc0, Buff[PitchMax+(int)Sfc*SubFrLen+j],                                    Buff[PitchMax+(int)Sfc*SubFrLen+j] ) ;    Lcr[0] = Acc0 ;    if ( Bindx != (Word16) 0 ) {        Acc0 = (Word32) 0 ;        Acc1 = (Word32) 0 ;        for ( j = 0 ; j < SubFrLen ; j ++ ) {            Acc0 = L_mac( Acc0, Buff[PitchMax+(int)Sfc*SubFrLen+j],                        Buff[PitchMax+(int)Sfc*SubFrLen+(int)Bindx+j] ) ;            Acc1 = L_mac( Acc1, Buff[PitchMax+(int)Sfc*SubFrLen+(int)Bindx+j],                        Buff[PitchMax+(int)Sfc*SubFrLen+(int)Bindx+j] ) ;        }        Lcr[1] = Acc0 ;        Lcr[2] = Acc1 ;    }    else {        Lcr[1] = (Word32) 0 ;        Lcr[2] = (Word32) 0 ;    }    if ( Findx != (Word16) 0 ) {        Acc0 = (Word32) 0 ;        Acc1 = (Word32) 0 ;        for ( j = 0 ; j < SubFrLen ; j ++ ) {            Acc0 = L_mac( Acc0, Buff[PitchMax+(int)Sfc*SubFrLen+j],                        Buff[PitchMax+(int)Sfc*SubFrLen+(int)Findx+j] ) ;            Acc1 = L_mac( Acc1, Buff[PitchMax+(int)Sfc*SubFrLen+(int)Findx+j],                        Buff[PitchMax+(int)Sfc*SubFrLen+(int)Findx+j] ) ;        }        Lcr[3] = Acc0 ;        Lcr[4] = Acc1 ;    }    else {        Lcr[3] = (Word32) 0 ;        Lcr[4] = (Word32) 0 ;    }    /* Normalize and convert to shorts */    Acc1 = 0L ;    for ( i = 0 ; i < 5 ; i ++ ) {        Acc0 = Lcr[i] ;        if ( Acc0 > Acc1 )            Acc1 = Acc0 ;    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久女同性恋中文字幕| 色综合天天综合网国产成人综合天| 亚洲免费在线看| 视频精品一区二区| 精品亚洲成a人| 99国产精品一区| 欧美精品第一页| 精品国产a毛片| 亚洲精品成人天堂一二三| 日本va欧美va瓶| 99精品偷自拍| 久久色在线观看| 亚洲大型综合色站| 成人小视频在线| 欧美一区三区四区| 国产精品三级av| 激情成人综合网| 91精品国产综合久久精品| 中文字幕av免费专区久久| 丝袜美腿一区二区三区| 91在线观看地址| 欧美国产禁国产网站cc| 青青草成人在线观看| 色婷婷亚洲综合| 成人免费一区二区三区视频| 日本不卡一区二区三区高清视频| 99riav一区二区三区| 国产精品电影一区二区三区| 久久精品国产澳门| 欧美精品在线一区二区| 亚洲h精品动漫在线观看| 欧美天堂一区二区三区| 亚洲国产美国国产综合一区二区| 成人黄色在线网站| 综合自拍亚洲综合图不卡区| 成人激情黄色小说| 亚洲美女屁股眼交3| 91香蕉视频污| 亚洲国产视频在线| 欧美一二三区在线| 国产精品66部| 亚洲伊人伊色伊影伊综合网| 欧美色综合天天久久综合精品| 亚洲自拍与偷拍| 欧美成人激情免费网| 国产成人激情av| 亚洲成人动漫在线观看| 精品国产伦一区二区三区观看方式 | 亚洲私人黄色宅男| 欧美日本视频在线| 激情小说亚洲一区| 中文字幕亚洲欧美在线不卡| 一本到不卡免费一区二区| 偷拍一区二区三区四区| 久久综合精品国产一区二区三区| 国产成人免费在线观看| 亚洲一区视频在线| 久久久久久久久蜜桃| 色94色欧美sute亚洲13| 蜜桃精品在线观看| 亚洲精品中文字幕在线观看| 日韩精品在线一区| 日韩一级黄色大片| 欧美性大战久久| 不卡电影一区二区三区| 久久精品国产精品亚洲精品 | 国产在线不卡一区| 日韩在线一二三区| 亚洲成a人在线观看| 日本一区二区三区四区在线视频| 91高清视频在线| 91麻豆免费看| 色综合中文字幕国产 | 欧美久久久久久久久久| 色激情天天射综合网| av电影在线观看一区| 99re热这里只有精品视频| 北岛玲一区二区三区四区| 福利视频网站一区二区三区| 老司机精品视频导航| 日本强好片久久久久久aaa| 亚洲一区二区三区小说| 一区二区三区成人在线视频| 亚洲欧美一区二区久久| 亚洲精品乱码久久久久久| 亚洲蜜臀av乱码久久精品蜜桃| 一区二区三区四区不卡在线| 香蕉成人伊视频在线观看| 日韩国产欧美一区二区三区| 日产欧产美韩系列久久99| 国产一区二区免费看| 成人性生交大合| 欧美日韩精品电影| 日韩欧美亚洲国产另类| 亚洲高清视频的网址| 老司机免费视频一区二区| 久久精品免费看| 色综合久久久久综合体| 欧美一区二区三区免费大片| 欧美精品一区二区久久婷婷| 国产精品电影一区二区| 美女在线观看视频一区二区| 国产精品久久久久精k8| 中文字幕第一区综合| 男男成人高潮片免费网站| 欧美精品v日韩精品v韩国精品v| 亚洲图片激情小说| 久久精品理论片| 欧亚洲嫩模精品一区三区| 欧美系列日韩一区| 久久久久久久电影| 天天免费综合色| 国产成人综合亚洲网站| 一本一本大道香蕉久在线精品| 在线观看亚洲精品视频| 日韩欧美中文字幕一区| 亚洲黄色免费网站| 成人综合婷婷国产精品久久蜜臀| 91福利国产精品| 国产日韩亚洲欧美综合| 国产精品一区2区| 久久夜色精品一区| 99视频精品在线| 一区二区三区在线高清| 欧美三级欧美一级| 亚洲sss视频在线视频| 欧美日韩国产影片| 秋霞国产午夜精品免费视频| 欧美一卡二卡在线| 国产精品亚洲午夜一区二区三区 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美日韩国产另类不卡| 国产精品资源在线看| 亚洲免费在线电影| 欧美精选在线播放| 国产成人综合网| 亚洲一区二区三区中文字幕在线| 7777精品伊人久久久大香线蕉完整版 | 欧美本精品男人aⅴ天堂| 成人av在线影院| 蜜臀av国产精品久久久久| 欧美tickling挠脚心丨vk| 国产一区在线观看视频| 一二三区精品视频| 久久久精品欧美丰满| 欧美日韩亚洲综合一区二区三区| 韩国毛片一区二区三区| 亚洲欧美电影院| 久久久99精品免费观看不卡| 一本久道久久综合中文字幕| 另类的小说在线视频另类成人小视频在线| 精品日本一线二线三线不卡| 成人综合婷婷国产精品久久| 天天综合日日夜夜精品| 国产精品家庭影院| 久久久国产精品不卡| 日韩一卡二卡三卡国产欧美| 色综合久久中文字幕综合网| 99精品1区2区| 欧美日韩一区二区三区四区五区| 韩国女主播成人在线| 国产一区二区不卡老阿姨| 国产精品一品视频| 92精品国产成人观看免费 | 成人国产视频在线观看| 成人精品国产免费网站| 成人久久久精品乱码一区二区三区| 天天av天天翘天天综合网色鬼国产 | 国产激情视频一区二区在线观看| 日韩在线一区二区| 亚洲综合成人在线| 亚洲一区在线视频观看| 亚洲小说春色综合另类电影| 最新高清无码专区| 亚洲一区二区av在线| 亚洲一区二区三区四区五区黄 | 粉嫩一区二区三区在线看| 美女在线观看视频一区二区| 视频一区欧美精品| 蜜臀av亚洲一区中文字幕| 韩国在线一区二区| 99久久精品国产毛片| 欧美自拍偷拍午夜视频| 欧美精品久久天天躁| 精品成人a区在线观看| 国产精品丝袜在线| 亚洲国产成人av| 国产精品一区二区三区四区| 成人一区二区三区中文字幕| 日本黄色一区二区| 26uuu亚洲| 亚洲免费在线观看视频| 男人操女人的视频在线观看欧美| 精品午夜久久福利影院| 日本乱码高清不卡字幕| 久久久久9999亚洲精品| 亚洲最大成人网4388xx| 国产精品影视在线| 欧美精品18+| 亚洲视频一区在线|