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

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

?? sp_frm.c

?? GSM中半速率語音編解碼源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
    }
    else
    {
      if (j == psvqIndex[iSegment - 1].len - 2)
      {

        /* Then recursion to be done for one more lattice stage */
        /*------------------------------------------------------*/

        /* Copy address of PNew into POld */
        /*--------------------------------*/
        pL_POld = ppL_PAddrs[(j + 1) % 2];

        /* Copy address of the input pL_PBar array into pswPNew; this will */
        /* cause the PNew array to overwrite the input pL_PBar array, thus */
        /* updating it at the final lattice stage of the current segment   */
        /*-----------------------------------------------------------------*/

        pL_PNew = pL_PBar;

        /* Copy address of VNew into VOld */
        /*--------------------------------*/

        pL_VOld = ppL_VAddrs[(j + 1) % 2];

        /* Copy address of the input pL_VBar array into pswVNew; this will */
        /* cause the VNew array to overwrite the input pL_VBar array, thus */
        /* updating it at the final lattice stage of the current segment   */
        /*-----------------------------------------------------------------*/

        pL_VNew = pL_VBar;

      }
    }
  }

  /* Update the pswPBar and pswVBar initial conditions for the AFLAT      */
  /* Rc-VQ search at the next segment.                                    */
  /*----------------------------------------------------------------------*/

  bound = psvqIndex[iSegment].len - 1;

  for (i = 0; i <= bound; i++)
  {
    pswPBar[i] = round(pL_PBar[i]);
    pswVBar[i] = round(pL_VBar[i]);
  }
  for (i = -bound; i < 0; i++)
  {
    pswVBar[i] = round(pL_VBar[i]);
  }

  return;
}

/***************************************************************************
 *
 *    FUNCTION NAME: aflatRecursion
 *
 *    PURPOSE:  Given the Shortword initial condition arrays, pswPBar and
 *              pswVBar, a reflection coefficient vector from the quantizer
 *              (or a prequantizer), and the order of the current Rc-VQ
 *              segment, function aflatRecursion computes and returns the
 *              residual error energy by evaluating the AFLAT recursion.
 *
 *              This is an implementation of equations 4.18 to 4.23.
 *    INPUTS:
 *
 *        pswQntRc[0:NP_AFLAT-1]
 *                     An input reflection coefficient vector from the
 *                     Rc-prequantizer or the Rc-VQ codebook.
 *
 *        pswPBar[0:NP_AFLAT-1]
 *                     The input Shortword array containing the P initial
 *                     conditions for the P-V AFLAT recursion at the current
 *                     Rc-VQ segment. The address of the 0-th element of
 *                     pswVBar is passed in.
 *
 *        pswVBar[-NP_AFLAT+1:NP_AFLAT-1]
 *                     The input Shortword array containing the V initial
 *                     conditions for the P-V AFLAT recursion, at the current
 *                     Rc-VQ segment. The address of the 0-th element of
 *                     pswVBar is passed in.
 *
 *        *ppswPAddrs[0:1]
 *                     An input array containing the address of temporary
 *                     space P1 in its 0-th element, and the address of
 *                     temporary space P2 in its 1-st element. Each of
 *                     these addresses is alternately assigned onto
 *                     pswPNew and pswPOld pointers using modulo
 *                     arithmetic, so as to avoid copying the contents of
 *                     pswPNew array into the pswPOld array at the end of
 *                     each lattice stage of the AFLAT recursion.
 *                     Temporary space P1 and P2 is allocated outside
 *                     aflatRecursion by the calling function aflat.
 *
 *        *ppswVAddrs[0:1]
 *                     An input array containing the address of temporary
 *                     space V1 in its 0-th element, and the address of
 *                     temporary space V2 in its 1-st element. Each of
 *                     these addresses is alternately assigned onto
 *                     pswVNew and pswVOld pointers using modulo
 *                     arithmetic, so as to avoid copying the contents of
 *                     pswVNew array into the pswVOld array at the end of
 *                     each lattice stage of the AFLAT recursion.
 *                     Temporary space V1 and V2 is allocated outside
 *                     aflatRecursion by the calling function aflat.
 *
 *        swSegmentOrder
 *                     This input short word describes the number of
 *                     stages needed to compute the vector
 *                     quantization of the given segment.
 *
 *    OUTPUTS:
 *        None.
 *
 *    RETURN:
 *        swRe         The Shortword value of residual energy for the
 *                     Rc vector, given the pswPBar and pswVBar initial
 *                     conditions.
 *
 *    REFERENCE:  Sub-clause 4.1.4.1 GSM Recommendation 06.20
 *
 *************************************************************************/

Shortword aflatRecursion(Shortword pswQntRc[],
                                Shortword pswPBar[],
                                Shortword pswVBar[],
                                Shortword *ppswPAddrs[],
                                Shortword *ppswVAddrs[],
                                Shortword swSegmentOrder)
{

/*_________________________________________________________________________
 |                                                                         |
 |                            Automatic Variables                          |
 |_________________________________________________________________________|
*/

  Shortword *pswPOld,
        *pswPNew,
        *pswVOld,
        *pswVNew,
         pswQntRcSqd[NP_AFLAT],
         swRe;
  Longword L_sum;
  short int i,
         j,
         bound;                        /* loop control variables */

/*_________________________________________________________________________
 |                                                                         |
 |                              Executable Code                            |
 |_________________________________________________________________________|
*/

  /* Point to PBar and VBar, the initial condition arrays for the AFLAT  */
  /* recursion.                                                          */
  /*---------------------------------------------------------------------*/

  pswPOld = pswPBar;
  pswVOld = pswVBar;

  /* Point to PNew and VNew, the arrays into which updated values of  P  */
  /* and V functions will be written.                                    */
  /*---------------------------------------------------------------------*/

  pswPNew = ppswPAddrs[1];
  pswVNew = ppswVAddrs[1];

  /* Compute the residual error energy due to the selected Rc vector */
  /* using the AFLAT recursion.                                      */
  /*-----------------------------------------------------------------*/

  /* Compute rc squared, used by the recursion */
  /*-------------------------------------------*/

  for (j = 0; j < swSegmentOrder; j++)
  {
    pswQntRcSqd[j] = mult_r(pswQntRc[j], pswQntRc[j]);
  }

  /* Compute the residual error energy due to the selected Rc vector */
  /* using the AFLAT recursion.                                      */
  /*-----------------------------------------------------------------*/

  for (j = 0; j < swSegmentOrder - 1; j++)
  {
    bound = swSegmentOrder - j - 2;

    /* Compute Psubj(i), for i = 0, bound  */
    /*-------------------------------------*/

    for (i = 0; i <= bound; i++)
    {
      L_sum = L_mac(L_ROUND, pswVOld[i], pswQntRc[j]);
      L_sum = L_mac(L_sum, pswVOld[-i], pswQntRc[j]);
      L_sum = L_mac(L_sum, pswPOld[i], pswQntRcSqd[j]);
      L_sum = L_msu(L_sum, pswPOld[i], SW_MIN);
      pswPNew[i] = extract_h(L_sum);
    }

    /* Check if potential for limiting exists. */
    /*-----------------------------------------*/

    if (sub(pswPNew[0], 0x4000) >= 0)
      iLimit = 1;

    /* Compute the new Vsubj(i) */
    /*--------------------------*/

    for (i = -bound; i < 0; i++)
    {
      L_sum = L_msu(L_ROUND, pswVOld[i + 1], SW_MIN);
      L_sum = L_mac(L_sum, pswQntRcSqd[j], pswVOld[-i - 1]);
      L_sum = L_mac(L_sum, pswQntRc[j], pswPOld[-i - 1]);
      L_sum = L_mac(L_sum, pswQntRc[j], pswPOld[-i - 1]);
      pswVNew[i] = extract_h(L_sum);
    }

    for (i = 0; i <= bound; i++)
    {
      L_sum = L_msu(L_ROUND, pswVOld[i + 1], SW_MIN);
      L_sum = L_mac(L_sum, pswQntRcSqd[j], pswVOld[-i - 1]);
      L_sum = L_mac(L_sum, pswQntRc[j], pswPOld[i + 1]);
      L_sum = L_mac(L_sum, pswQntRc[j], pswPOld[i + 1]);
      pswVNew[i] = extract_h(L_sum);
    }

    if (j < swSegmentOrder - 2)
    {

      /* Swap POld and PNew buffers, using modulo addressing */
      /*-----------------------------------------------------*/

      pswPOld = ppswPAddrs[(j + 1) % 2];
      pswPNew = ppswPAddrs[j % 2];

      /* Swap VOld and VNew buffers, using modulo addressing */
      /*-----------------------------------------------------*/

      pswVOld = ppswVAddrs[(j + 1) % 2];
      pswVNew = ppswVAddrs[j % 2];

    }
  }

  /* Computing Psubj(0) for the last lattice stage */
  /*-----------------------------------------------*/

  j = swSegmentOrder - 1;

  L_sum = L_mac(L_ROUND, pswVNew[0], pswQntRc[j]);
  L_sum = L_mac(L_sum, pswVNew[0], pswQntRc[j]);
  L_sum = L_mac(L_sum, pswPNew[0], pswQntRcSqd[j]);
  L_sum = L_msu(L_sum, pswPNew[0], SW_MIN);
  swRe = extract_h(L_sum);

  /* Return the residual energy corresponding to the reflection   */
  /* coefficient vector being evaluated.                          */
  /*--------------------------------------------------------------*/

  return (swRe);                       /* residual error is returned */

}

/***************************************************************************
 *
 *   FUNCTION NAME: bestDelta
 *
 *   PURPOSE:
 *
 *     This function finds the delta-codeable lag which maximizes CC/G.
 *
 *   INPUTS:
 *
 *     pswLagList[0:siNumLags-1]
 *
 *                     List of delta-codeable lags over which search is done.
 *
 *     pswCSfrm[0:127]
 *
 *                     C(k) sequence, k integer.
 *
 *     pswGSfrm[0:127]
 *
 *                     G(k) sequence, k integer.
 *
 *     siNumLags
 *
 *                     Number of lags in contention.
 *
 *     siSfrmIndex
 *
 *                     The index of the subframe to which the delta-code
 *                     applies.
 *
 *
 *   OUTPUTS:
 *
 *     pswLTraj[0:3]
 *
 *                     The winning lag is put into this array at
 *                     pswLTraj[siSfrmIndex]
 *
 *     pswCCTraj[0:3]
 *
 *                     The corresponding winning C**2 is put into this
 *                     array at pswCCTraj[siSfrmIndex]
 *
 *     pswGTraj[0:3]
 *
 *                     The corresponding winning G is put into this arrray
 *                     at pswGTraj[siSfrmIndex]
 *
 *   RETURN VALUE:
 *
 *     none
 *
 *   DESCRIPTION:
 *
 *   REFERENCE:  Sub-clause 4.1.8.3 of GSM Recommendation 06.20
 *
 *   KEYWORDS:
 *
 *************************************************************************/

void   bestDelta(Shortword pswLagList[],
                        Shortword pswCSfrm[],
                        Shortword pswGSfrm[],
                        short int siNumLags,
                        short int siSfrmIndex,
                        Shortword pswLTraj[],
                        Shortword pswCCTraj[],
                        Shortword pswGTraj[])
{

/*_________________________________________________________________________
 |                                                                         |
 |                            Automatic Variables                          |
 |_________________________________________________________________________|
*/

  Shortword pswCBuf[DELTA_LEVELS + CG_INT_MACS + 2],
         pswGBuf[DELTA_LEVELS + CG_INT_MACS + 2],
         pswCInterp[DELTA_LEVELS + 2],
         pswGInterp[DELTA_LEVELS + 2],
        *psw1,
        *psw2,
         swCmaxSqr,
         swGmax,
         swPeak;
  short int siIPLo,
         siRemLo,
         siIPHi,
         siRemHi,
         siLoLag,
         siHiLag,
         siI;

/*_________________________________________________________________________
 |                                                                         |
 |                              Executable Code                            |
 |_________________________________________________________________________|
*/

  /* get bounds for integer C's and G's needed for interpolation */
  /* get integer and fractional portions of boundary lags        */
  /* ----------------------------------------------------------- */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丁香婷婷综合色啪| 91在线视频免费观看| 一区二区三区日韩精品| 国产人久久人人人人爽| 精品国产一区a| 日韩精品综合一本久道在线视频| 欧美一级欧美三级在线观看| 欧美大片在线观看| 久久久五月婷婷| 国产精品久久久久久久岛一牛影视 | 国产精品理论在线观看| 国产精品电影一区二区| 亚洲精选视频免费看| 亚洲国产一区二区三区| 日韩电影在线免费观看| 久久精品国产免费| 盗摄精品av一区二区三区| 色综合久久久久久久久| 欧美无人高清视频在线观看| 欧美一区二区播放| 久久精品亚洲精品国产欧美kt∨| 日韩一区欧美小说| 免费高清在线视频一区·| 国产成人在线看| 91福利精品第一导航| 日韩精品一区二区三区三区免费| 国产性色一区二区| 亚洲国产欧美另类丝袜| 九色综合狠狠综合久久| 99久久er热在这里只有精品66| 欧美日韩一区二区不卡| 久久亚洲精精品中文字幕早川悠里| 欧美国产欧美综合| 日韩精品福利网| 99久久免费视频.com| 欧美一区二区不卡视频| 亚洲卡通欧美制服中文| 久久激五月天综合精品| 色婷婷久久99综合精品jk白丝| 欧美一区二区三区成人| 国产精品高潮久久久久无| 日韩va亚洲va欧美va久久| www.性欧美| 精品国产伦一区二区三区观看方式 | 欧美电影免费观看高清完整版在| 国产精品久久久久久户外露出 | 国产精品欧美一级免费| 一区二区三区毛片| 岛国精品一区二区| 精品久久久久久久久久久久久久久久久| 中文字幕一区av| 国产一区在线看| 欧美一区二区二区| 午夜精品在线看| 欧美视频在线不卡| 亚洲乱码国产乱码精品精的特点 | 亚洲韩国精品一区| 91蝌蚪porny九色| 亚洲国产精品v| 国产精品一级片| 欧美一二三区在线| 午夜视频在线观看一区二区三区 | 三级久久三级久久| 91在线一区二区| 中文字幕日本乱码精品影院| 高清不卡一区二区在线| 久久久精品综合| 国产精品一区二区黑丝| 2020国产精品| 国产乱一区二区| 久久综合精品国产一区二区三区| 免费在线观看精品| 欧美一区二区三区在线视频| 日本在线播放一区二区三区| 3d成人动漫网站| 久久se精品一区二区| 欧美videossexotv100| 另类小说欧美激情| 欧美成人bangbros| 久久超级碰视频| 国产无遮挡一区二区三区毛片日本| 国产一区 二区 三区一级| 国产午夜精品一区二区三区四区| 国产91精品久久久久久久网曝门 | 首页欧美精品中文字幕| 欧美日韩视频专区在线播放| 偷拍与自拍一区| 欧美大片日本大片免费观看| 国产一区二区三区日韩| 国产午夜精品久久久久久久 | 91在线国产观看| 亚洲一区在线播放| 日韩一二三区不卡| 国产精品亚洲第一区在线暖暖韩国 | 国产剧情一区二区| 国产精品传媒入口麻豆| 欧美色精品在线视频| 久久99精品国产.久久久久| 久久久久久久久久美女| 91一区在线观看| 日日夜夜免费精品| 日本一区二区三区在线不卡| 色诱亚洲精品久久久久久| 日韩电影在线观看电影| 国产精品日韩成人| 欧美日韩国产精选| 狠狠色丁香久久婷婷综| 中文字幕一区二区三| 欧美一区二区三区四区五区| 国产成人午夜视频| 午夜精品一区二区三区电影天堂| 精品精品国产高清一毛片一天堂| av综合在线播放| 久久精品久久精品| 亚洲一区二区三区四区的| 欧美成人艳星乳罩| 色婷婷久久99综合精品jk白丝| 韩国欧美一区二区| 亚洲一区av在线| 国产精品久久久久永久免费观看 | 欧美亚洲愉拍一区二区| 国产麻豆日韩欧美久久| 午夜精品久久一牛影视| 国产精品美女久久久久高潮| 日韩欧美卡一卡二| 欧美日韩在线直播| 成人精品国产福利| 蜜臀av性久久久久蜜臀aⅴ | 久久www免费人成看片高清| 一区二区三区91| 亚洲国产精品成人综合| 精品国产在天天线2019| 欧美久久一二区| 在线视频一区二区三区| 岛国精品在线观看| 福利电影一区二区三区| 韩日av一区二区| 日韩国产精品大片| 亚洲成人一区二区在线观看| 亚洲丝袜制服诱惑| 国产精品久久久久久久久晋中| 久久众筹精品私拍模特| 久久亚洲精精品中文字幕早川悠里| 日韩一区二区在线看| 欧美精品自拍偷拍动漫精品| 欧美影视一区二区三区| 色综合激情五月| 欧美午夜精品久久久久久超碰| 不卡电影一区二区三区| 不卡一区二区在线| 99国内精品久久| 一本大道综合伊人精品热热 | 91精品国产91综合久久蜜臀| 欧美挠脚心视频网站| 欧美色中文字幕| 欧美区一区二区三区| 欧美日韩国产精品成人| 欧美一级二级三级蜜桃| 久久综合久久综合亚洲| 久久久电影一区二区三区| 国产精品免费丝袜| 一区二区三区四区精品在线视频| 亚洲综合免费观看高清完整版 | 亚洲国产精品黑人久久久| 国产精品乱码久久久久久| 亚洲视频一区二区在线观看| 亚洲男人的天堂av| 亚洲午夜羞羞片| 日本中文在线一区| 国产精品一区二区黑丝| 91在线国内视频| 欧美日韩精品欧美日韩精品一| 欧美精品免费视频| 久久综合久色欧美综合狠狠| 亚洲婷婷国产精品电影人久久| 亚洲欧美日本在线| 日本特黄久久久高潮| 成人激情免费电影网址| 欧美肥妇free| 国产精品网站在线观看| 伊人婷婷欧美激情| 久久99久国产精品黄毛片色诱| 成人午夜精品一区二区三区| 在线观看一区二区视频| 欧美xxxx老人做受| 亚洲一区二区视频在线| 极品少妇一区二区三区精品视频| 99久久久久免费精品国产| 91精品午夜视频| 亚洲同性gay激情无套| 乱中年女人伦av一区二区| av网站一区二区三区| 欧美成人欧美edvon| 亚洲一本大道在线| 成人app在线观看| 日韩欧美国产午夜精品| 亚洲欧美另类小说| 粉嫩高潮美女一区二区三区| 欧美日韩精品一区二区三区蜜桃| 中文文精品字幕一区二区|