Lines Matching refs:pAacDecoderChannelInfo

780 static void calcTCXGain(CAacDecoderChannelInfo *pAacDecoderChannelInfo,  in calcTCXGain()  argument
788 pAacDecoderChannelInfo->pDynData->specificTo.usac in calcTCXGain()
827 pAacDecoderChannelInfo->data.usac.tcx_gain[frame] = tcx_gain_m; in calcTCXGain()
828 pAacDecoderChannelInfo->data.usac.tcx_gain_e[frame] = tcx_gain_e; in calcTCXGain()
830 pAacDecoderChannelInfo->specScale[frame] += tcx_gain_e; in calcTCXGain()
857 void CLpd_FdnsDecode(CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpd_FdnsDecode() argument
873 calcTCXGain(pAacDecoderChannelInfo, r, rms_m, rms_e, frame, lg); in CLpd_FdnsDecode()
935 CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpd_TcxDecode() argument
940 int lg = (pAacDecoderChannelInfo->granuleLength == 128) in CLpd_TcxDecode()
950 SPEC_TCX(pAacDecoderChannelInfo->pSpectralCoefficient, frame, in CLpd_TcxDecode()
951 pAacDecoderChannelInfo->granuleLength, isFullBandLpd); in CLpd_TcxDecode()
952 int scale = pAacDecoderChannelInfo->specScale[frame]; in CLpd_TcxDecode()
954 UCHAR tcx_noise_factor = pAacDecoderChannelInfo->pDynData->specificTo.usac in CLpd_TcxDecode()
1017 pAacDecoderChannelInfo->data.usac.lsp_coeff[frame], in CLpd_TcxDecode()
1018 pAacDecoderChannelInfo->data.usac.lp_coeff[frame], in CLpd_TcxDecode()
1019 &pAacDecoderChannelInfo->data.usac.lp_coeff_exp[frame]); in CLpd_TcxDecode()
1023 pAacDecoderChannelInfo->data.usac.lsp_coeff[next_frame], in CLpd_TcxDecode()
1024 pAacDecoderChannelInfo->data.usac.lp_coeff[next_frame], in CLpd_TcxDecode()
1025 &pAacDecoderChannelInfo->data.usac.lp_coeff_exp[next_frame]); in CLpd_TcxDecode()
1029 pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CLpd_TcxDecode()
1030 SPEC_TCX(pAacDecoderChannelInfo->pSpectralCoefficient, frame, in CLpd_TcxDecode()
1031 pAacDecoderChannelInfo->granuleLength, isFullBandLpd), in CLpd_TcxDecode()
1032 lg, frame, pAacDecoderChannelInfo->specScale + frame, in CLpd_TcxDecode()
1033 pAacDecoderChannelInfo->data.usac.lp_coeff[frame], in CLpd_TcxDecode()
1034 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[frame], in CLpd_TcxDecode()
1035 pAacDecoderChannelInfo->data.usac.lp_coeff[next_frame], in CLpd_TcxDecode()
1036 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[next_frame], pAlfd_gains, in CLpd_TcxDecode()
1037 pAacDecoderChannelInfo->granuleLength / 2 /* == FDNS_NPTS(ccfl) */ in CLpd_TcxDecode()
1051 HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpd_TCX_Read() argument
1060 pSpec = SPEC_TCX(pAacDecoderChannelInfo->pSpectralCoefficient, frame, in CLpd_TCX_Read()
1061 pAacDecoderChannelInfo->granuleLength, isFullBandLpd); in CLpd_TCX_Read()
1065 pAacDecoderChannelInfo->pDynData->specificTo.usac.tcx_noise_factor[frame] = in CLpd_TCX_Read()
1069 pAacDecoderChannelInfo->pDynData->specificTo.usac.tcx_global_gain[frame] = in CLpd_TCX_Read()
1094 pAacDecoderChannelInfo->specScale[frame] = scale; in CLpd_TCX_Read()
1158 CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpd_Reset() argument
1197 HANDLE_FDK_BITSTREAM hBs, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpdChannelStream_Read() argument
1204 UCHAR *mod = pAacDecoderChannelInfo->data.usac.mod; in CLpdChannelStream_Read()
1208 const int *lg_table = (pAacDecoderChannelInfo->granuleLength == 128) in CLpdChannelStream_Read()
1239 pAacDecoderChannelInfo->data.usac.bpf_control_info = FDKreadBit(hBs); in CLpdChannelStream_Read()
1248 pAacDecoderChannelInfo->data.usac.core_mode_last = in CLpdChannelStream_Read()
1250 lpd_mode_last = pAacDecoderChannelInfo->data.usac.lpd_mode_last = in CLpdChannelStream_Read()
1255 pAacDecoderChannelInfo->data.usac.core_mode_last = FD_LONG; in CLpdChannelStream_Read()
1256 pAacDecoderChannelInfo->data.usac.lpd_mode_last = 255; in CLpdChannelStream_Read()
1259 pAacDecoderChannelInfo->data.usac.core_mode_last = LPD; in CLpdChannelStream_Read()
1266 pAacDecoderChannelInfo->data.usac.lpd_mode_last = 1; in CLpdChannelStream_Read()
1270 pAacDecoderChannelInfo->data.usac.lpd_mode_last = 0; in CLpdChannelStream_Read()
1274 first_lpd_flag = (pAacDecoderChannelInfo->data.usac.core_mode_last != in CLpdChannelStream_Read()
1280 CLpd_Reset(pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, 0); in CLpdChannelStream_Read()
1289 core_mode_last = pAacDecoderChannelInfo->data.usac.core_mode_last; in CLpdChannelStream_Read()
1290 lpd_mode_last = pAacDecoderChannelInfo->data.usac.lpd_mode_last; in CLpdChannelStream_Read()
1301 pAacDecoderChannelInfo->data.usac.fac_data[k] = NULL; in CLpdChannelStream_Read()
1309 pAacDecoderChannelInfo->data.usac.fac_data[k] = in CLpdChannelStream_Read()
1310 CLpd_FAC_GetMemory(pAacDecoderChannelInfo, mod, &facGetMemState); in CLpdChannelStream_Read()
1314 hBs, pAacDecoderChannelInfo->data.usac.fac_data[k], in CLpdChannelStream_Read()
1315 pAacDecoderChannelInfo->data.usac.fac_data_e, in CLpdChannelStream_Read()
1316 pAacDecoderChannelInfo->granuleLength, /* == fac_length */ in CLpdChannelStream_Read()
1328 hBs, &pAacDecoderChannelInfo->data.usac.acelp[k], acelp_core_mode, in CLpdChannelStream_Read()
1329 pAacDecoderChannelInfo->granuleLength * 8 /* coreCoderFrameLength */, in CLpdChannelStream_Read()
1340 error = CLpd_TCX_Read(hBs, pAacDecoderChannelInfo, in CLpdChannelStream_Read()
1359 hBs, pAacDecoderChannelInfo->data.usac.lsp_coeff, in CLpdChannelStream_Read()
1361 pAacDecoderChannelInfo->data.usac.lsf_adaptive_mean_cand, in CLpdChannelStream_Read()
1362 pAacDecoderChannelInfo->data.usac.aStability, mod, first_lpd_flag, in CLpdChannelStream_Read()
1383 FIXP_LPC *lsp_old = pAacDecoderChannelInfo->data.usac.lsp_coeff[k]; in CLpdChannelStream_Read()
1384 FIXP_LPC *lsp_new = pAacDecoderChannelInfo->data.usac.lsp_coeff[k_next]; in CLpdChannelStream_Read()
1398 pAacDecoderChannelInfo->data.usac.lsp_coeff[0], in CLpdChannelStream_Read()
1399 pAacDecoderChannelInfo->data.usac.lp_coeff[0], in CLpdChannelStream_Read()
1400 &pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0]); in CLpdChannelStream_Read()
1405 pAacDecoderChannelInfo->data.usac.lsp_coeff[0], in CLpdChannelStream_Read()
1406 pAacDecoderChannelInfo->data.usac.lp_coeff[0], in CLpdChannelStream_Read()
1407 &pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0]); in CLpdChannelStream_Read()
1411 FDKmemcpy(pAacDecoderChannelInfo->data.usac.lp_coeff[0], in CLpdChannelStream_Read()
1414 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0] = in CLpdChannelStream_Read()
1425 core_mode_last = pAacDecoderChannelInfo->data.usac.core_mode_last = in CLpdChannelStream_Read()
1427 pAacDecoderChannelInfo->data.usac.lpd_mode_last = 255; in CLpdChannelStream_Read()
1443 pAacDecoderChannelInfo->data.usac.fac_data[0] = in CLpdChannelStream_Read()
1444 CLpd_FAC_GetMemory(pAacDecoderChannelInfo, mod, &facGetMemState); in CLpdChannelStream_Read()
1451 hBs, pAacDecoderChannelInfo->data.usac.fac_data[0], in CLpdChannelStream_Read()
1452 pAacDecoderChannelInfo->data.usac.fac_data_e, in CLpdChannelStream_Read()
1454 pAacDecoderChannelInfo->granuleLength), in CLpdChannelStream_Read()
1466 if ((pAacDecoderChannelInfo->data.usac.core_mode_last != in CLpdChannelStream_Read()
1471 } else if ((pAacDecoderChannelInfo->data.usac.core_mode_last == LPD) && in CLpdChannelStream_Read()
1472 (pAacDecoderChannelInfo->data.usac.lpd_mode_last != in CLpdChannelStream_Read()
1484 CAacDecoderChannelInfo *pAacDecoderChannelInfo, in CLpdChannelStream_Decode() argument
1486 UCHAR *mod = pAacDecoderChannelInfo->data.usac.mod; in CLpdChannelStream_Decode()
1495 pAacDecoderChannelInfo->data.usac in CLpdChannelStream_Decode()
1504 pAacDecoderChannelInfo->data.usac.fac_data[k]) { in CLpdChannelStream_Decode()
1505 CFac_ApplyGains(pAacDecoderChannelInfo->data.usac.fac_data[k], in CLpdChannelStream_Decode()
1506 pAacDecoderChannelInfo->granuleLength, in CLpdChannelStream_Decode()
1511 pAacDecoderChannelInfo->data.usac.fac_data_e[k] += in CLpdChannelStream_Decode()
1516 CLpd_TcxDecode(pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CLpdChannelStream_Decode()
1522 pAacDecoderChannelInfo->data.usac.tcx_gain[k]; in CLpdChannelStream_Decode()
1524 pAacDecoderChannelInfo->data.usac.tcx_gain_e[k]; in CLpdChannelStream_Decode()
1527 if (last_lpd_mode == 0 && pAacDecoderChannelInfo->data.usac.fac_data[k]) { in CLpdChannelStream_Decode()
1529 pAacDecoderChannelInfo->data.usac.fac_data[k], in CLpdChannelStream_Decode()
1530 pAacDecoderChannelInfo->granuleLength /* == fac_length */, in CLpdChannelStream_Decode()
1531 pAacDecoderChannelInfo->data.usac.tcx_gain[k], in CLpdChannelStream_Decode()
1534 pAacDecoderChannelInfo->data.usac.fac_data_e[k] += in CLpdChannelStream_Decode()
1535 pAacDecoderChannelInfo->data.usac.tcx_gain_e[k]; in CLpdChannelStream_Decode()
1549 CAacDecoderChannelInfo *pAacDecoderChannelInfo, FIXP_PCM *pTimeData, in CLpd_RenderTimeSignal() argument
1552 UCHAR *mod = pAacDecoderChannelInfo->data.usac.mod; in CLpd_RenderTimeSignal()
1575 pAacDecoderChannelInfo->pComStaticData->pWorkBufferCore1->synth_buf; in CLpd_RenderTimeSignal()
1590 CLpd_Reset(pAacDecoderChannelInfo, pAacDecoderStaticChannelInfo, in CLpd_RenderTimeSignal()
1629 pAacDecoderChannelInfo->data.usac.lpd_mode_last = last_lpd_mode; in CLpd_RenderTimeSignal()
1656 CLpc_Conceal(pAacDecoderChannelInfo->data.usac.lsp_coeff, in CLpd_RenderTimeSignal()
1665 FDKmemcpy(pAacDecoderChannelInfo->data.usac.lp_coeff[0], in CLpd_RenderTimeSignal()
1668 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0] = in CLpd_RenderTimeSignal()
1678 pAacDecoderChannelInfo->data.usac.tcx_gain[k] = old_tcx_gain; in CLpd_RenderTimeSignal()
1679 pAacDecoderChannelInfo->data.usac.tcx_gain_e[k] = old_tcx_gain_e; in CLpd_RenderTimeSignal()
1682 pAacDecoderChannelInfo->data.usac.aStability[k] = old_stab; in CLpd_RenderTimeSignal()
1693 FDKmemcpy(pAacDecoderChannelInfo->data.usac.lp_coeff[0], in CLpd_RenderTimeSignal()
1696 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0] = in CLpd_RenderTimeSignal()
1736 pFacData = pAacDecoderChannelInfo->data.usac.fac_data[k]; in CLpd_RenderTimeSignal()
1741 pAacDecoderChannelInfo->data.usac.fac_data_e[k], in CLpd_RenderTimeSignal()
1742 pAacDecoderChannelInfo->data.usac.lp_coeff[k], in CLpd_RenderTimeSignal()
1743 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[k], in CLpd_RenderTimeSignal()
1757 pAacDecoderChannelInfo->data.usac in CLpd_RenderTimeSignal()
1759 INT lp_prev_exp = pAacDecoderChannelInfo->data.usac.lp_coeff_exp[0]; in CLpd_RenderTimeSignal()
1767 lp_prev = pAacDecoderChannelInfo->data.usac.lp_coeff[last_k]; in CLpd_RenderTimeSignal()
1769 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[last_k]; in CLpd_RenderTimeSignal()
1776 pAacDecoderChannelInfo->data.usac.lp_coeff[k], in CLpd_RenderTimeSignal()
1777 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[k], lp_prev, in CLpd_RenderTimeSignal()
1811 pAacDecoderChannelInfo->data.usac.tcx_gain[k], in CLpd_RenderTimeSignal()
1813 pAacDecoderChannelInfo->data.usac.tcx_gain_e[k] - SF_EXC)); in CLpd_RenderTimeSignal()
1816 pAacDecoderChannelInfo->data.usac.lsp_coeff[k], in CLpd_RenderTimeSignal()
1817 pAacDecoderChannelInfo->data.usac.lsp_coeff[k + 1], in CLpd_RenderTimeSignal()
1818 pAacDecoderChannelInfo->data.usac.aStability[k], in CLpd_RenderTimeSignal()
1824 FDK_ASSERT(pAacDecoderChannelInfo->data.usac.aStability[k] >= in CLpd_RenderTimeSignal()
1827 pAacDecoderChannelInfo->data.usac.lsp_coeff[k], in CLpd_RenderTimeSignal()
1828 pAacDecoderChannelInfo->data.usac.lsp_coeff[k + 1], in CLpd_RenderTimeSignal()
1829 pAacDecoderChannelInfo->data.usac.aStability[k], in CLpd_RenderTimeSignal()
1830 &pAacDecoderChannelInfo->data.usac.acelp[k], in CLpd_RenderTimeSignal()
1839 pAacDecoderChannelInfo->data.usac in CLpd_RenderTimeSignal()
1868 pAacDecoderChannelInfo->data.usac.fac_data[k] == NULL) { in CLpd_RenderTimeSignal()
1870 pAacDecoderChannelInfo->data.usac.fac_data[k] = fac_buf; in CLpd_RenderTimeSignal()
1871 pAacDecoderChannelInfo->data.usac.fac_data_e[k] = 0; in CLpd_RenderTimeSignal()
1876 SPEC_TCX(pAacDecoderChannelInfo->pSpectralCoefficient, k, in CLpd_RenderTimeSignal()
1877 pAacDecoderChannelInfo->granuleLength, isFullBandLpd), in CLpd_RenderTimeSignal()
1878 pAacDecoderChannelInfo->specScale + k, 1, in CLpd_RenderTimeSignal()
1879 pAacDecoderChannelInfo->data.usac.fac_data[k], in CLpd_RenderTimeSignal()
1880 pAacDecoderChannelInfo->data.usac.fac_data_e[k], in CLpd_RenderTimeSignal()
1881 pAacDecoderChannelInfo->granuleLength /* == fac_length */, in CLpd_RenderTimeSignal()
1884 GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CLpd_RenderTimeSignal()
1885 lDiv, pAacDecoderChannelInfo->data.usac.lp_coeff[k], in CLpd_RenderTimeSignal()
1886 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[k], in CLpd_RenderTimeSignal()
1888 pAacDecoderChannelInfo->data.usac.tcx_gain[k], in CLpd_RenderTimeSignal()
1892 pAacDecoderChannelInfo in CLpd_RenderTimeSignal()
1912 SPEC_TCX(pAacDecoderChannelInfo->pSpectralCoefficient, k, in CLpd_RenderTimeSignal()
1913 pAacDecoderChannelInfo->granuleLength, isFullBandLpd), in CLpd_RenderTimeSignal()
1914 pAacDecoderChannelInfo->specScale + k, 1, lFrame - nrSamples, tl, in CLpd_RenderTimeSignal()
1916 GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CLpd_RenderTimeSignal()
1919 GetWindowShape(&pAacDecoderChannelInfo->icsInfo)), in CLpd_RenderTimeSignal()
1920 fr, pAacDecoderChannelInfo->data.usac.tcx_gain[k], in CLpd_RenderTimeSignal()
1921 pAacDecoderChannelInfo->currAliasingSymmetry in CLpd_RenderTimeSignal()
1938 FDK_ASSERT(pAacDecoderChannelInfo->data.usac.aStability[last_k] >= in CLpd_RenderTimeSignal()
1941 pAacDecoderChannelInfo->data.usac.aStability[last_k]; in CLpd_RenderTimeSignal()
1943 pAacDecoderChannelInfo->data.usac.lsf_adaptive_mean_cand, in CLpd_RenderTimeSignal()
1951 pAacDecoderChannelInfo->data.usac.lp_coeff[nbDiv], in CLpd_RenderTimeSignal()
1954 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[nbDiv]; in CLpd_RenderTimeSignal()
1956 pAacDecoderChannelInfo->data.usac.lp_coeff[last_k], in CLpd_RenderTimeSignal()
1959 pAacDecoderChannelInfo->data.usac.lp_coeff_exp[last_k]; in CLpd_RenderTimeSignal()
1966 if (!(pAacDecoderChannelInfo->data.usac.bpf_control_info)) { in CLpd_RenderTimeSignal()
1983 pAacDecoderChannelInfo->data.usac.bpf_control_info; in CLpd_RenderTimeSignal()