• Home
  • Raw
  • Download

Lines Matching refs:hPsEncode

730 void FDKsbrEnc_initPsBandNrgScale(HANDLE_PS_ENCODE hPsEncode)  in FDKsbrEnc_initPsBandNrgScale()  argument
733 INT nIidGroups = hPsEncode->nQmfIidGroups + hPsEncode->nSubQmfIidGroups; in FDKsbrEnc_initPsBandNrgScale()
735 FDKmemclear(hPsEncode->psBandNrgScale, PS_MAX_BANDS*sizeof(SCHAR)); in FDKsbrEnc_initPsBandNrgScale()
739 bin = hPsEncode->subband2parameterIndex[group]; in FDKsbrEnc_initPsBandNrgScale()
742 if (hPsEncode->psEncMode == PS_BANDS_COARSE) { in FDKsbrEnc_initPsBandNrgScale()
746 hPsEncode->psBandNrgScale[bin] = (hPsEncode->psBandNrgScale[bin]==0) in FDKsbrEnc_initPsBandNrgScale()
747 ? (hPsEncode->iidGroupWidthLd[group] + 5) in FDKsbrEnc_initPsBandNrgScale()
748 … : (fixMax(hPsEncode->iidGroupWidthLd[group],hPsEncode->psBandNrgScale[bin]) + 1) ; in FDKsbrEnc_initPsBandNrgScale()
763 HANDLE_PS_ENCODE hPsEncode = NULL; in FDKsbrEnc_CreatePSEncode() local
764 if (NULL==(hPsEncode = GetRam_PsEncode())) { in FDKsbrEnc_CreatePSEncode()
768 FDKmemclear(hPsEncode,sizeof(PS_ENCODE)); in FDKsbrEnc_CreatePSEncode()
769 *phPsEncode = hPsEncode; /* return allocated handle */ in FDKsbrEnc_CreatePSEncode()
776 HANDLE_PS_ENCODE hPsEncode, in FDKsbrEnc_InitPSEncode() argument
783 if (NULL==hPsEncode) { in FDKsbrEnc_InitPSEncode()
787 if (PSENC_OK != (InitPSData(&hPsEncode->psData))) { in FDKsbrEnc_InitPSEncode()
794 hPsEncode->nQmfIidGroups = QMF_GROUPS_LO_RES; in FDKsbrEnc_InitPSEncode()
795 hPsEncode->nSubQmfIidGroups = SUBQMF_GROUPS_LO_RES; in FDKsbrEnc_InitPSEncode()
796 …FDKmemcpy(hPsEncode->iidGroupBorders, iidGroupBordersLoRes, (hPsEncode->nQmfIidGroups + hPs… in FDKsbrEnc_InitPSEncode()
797 …FDKmemcpy(hPsEncode->subband2parameterIndex, subband2parameter20, (hPsEncode->nQmfIidGroups + hPs… in FDKsbrEnc_InitPSEncode()
798 …FDKmemcpy(hPsEncode->iidGroupWidthLd, iidGroupWidthLdLoRes, (hPsEncode->nQmfIidGroups + hPs… in FDKsbrEnc_InitPSEncode()
805 hPsEncode->psEncMode = psEncMode; in FDKsbrEnc_InitPSEncode()
806 hPsEncode->iidQuantErrorThreshold = iidQuantErrorThreshold; in FDKsbrEnc_InitPSEncode()
807 FDKsbrEnc_initPsBandNrgScale(hPsEncode); in FDKsbrEnc_InitPSEncode()
839 HANDLE_PS_ENCODE hPsEncode, in FDKsbrEnc_PSEncode() argument
850 HANDLE_PS_DATA hPsData = &hPsEncode->psData; in FDKsbrEnc_PSEncode()
859 int psBands = (int) hPsEncode->psEncMode; in FDKsbrEnc_PSEncode()
860 int nIidGroups = hPsEncode->nQmfIidGroups + hPsEncode->nSubQmfIidGroups; in FDKsbrEnc_PSEncode()
881 bin = hPsEncode->subband2parameterIndex[group]; in FDKsbrEnc_PSEncode()
884 if (hPsEncode->psEncMode == PS_BANDS_COARSE) { in FDKsbrEnc_PSEncode()
889 int bScale = hPsEncode->psBandNrgScale[bin]; in FDKsbrEnc_PSEncode()
898 …for (subband = hPsEncode->iidGroupBorders[group]; subband < hPsEncode->iidGroupBorders[group+1]; s… in FDKsbrEnc_PSEncode()
964 processIidData(hPsData, iid, psBands, nEnvelopes, hPsEncode->iidQuantErrorThreshold); in FDKsbrEnc_PSEncode()