• Home
  • Raw
  • Download

Lines Matching refs:hPsData

172 static FDK_PSENC_ERROR InitPSData(HANDLE_PS_DATA hPsData) {  in InitPSData()  argument
175 if (hPsData == NULL) { in InitPSData()
179 FDKmemclear(hPsData, sizeof(PS_DATA)); in InitPSData()
182 hPsData->iidIdxLast[i] = 0; in InitPSData()
183 hPsData->iccIdxLast[i] = 0; in InitPSData()
186 hPsData->iidEnable = hPsData->iidEnableLast = 0; in InitPSData()
187 hPsData->iccEnable = hPsData->iccEnableLast = 0; in InitPSData()
188 hPsData->iidQuantMode = hPsData->iidQuantModeLast = PS_IID_RES_COARSE; in InitPSData()
189 hPsData->iccQuantMode = hPsData->iccQuantModeLast = PS_ICC_ROT_A; in InitPSData()
192 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
193 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
196 hPsData->iidIdx[env][i] = 0; in InitPSData()
197 hPsData->iccIdx[env][i] = 0; in InitPSData()
201 hPsData->nEnvelopesLast = 0; in InitPSData()
203 hPsData->headerCnt = MAX_PS_NOHEADER_CNT; in InitPSData()
204 hPsData->iidTimeCnt = MAX_TIME_DIFF_FRAMES; in InitPSData()
205 hPsData->iccTimeCnt = MAX_TIME_DIFF_FRAMES; in InitPSData()
206 hPsData->noEnvCnt = MAX_NOENV_CNT; in InitPSData()
828 HANDLE_PS_DATA hPsData = &hPsEncode->psData; in FDKsbrEnc_PSEncode() local
944 hPsData->headerCnt = MAX_PS_NOHEADER_CNT; in FDKsbrEnc_PSEncode()
945 hPsData->iidTimeCnt = MAX_TIME_DIFF_FRAMES; in FDKsbrEnc_PSEncode()
946 hPsData->iccTimeCnt = MAX_TIME_DIFF_FRAMES; in FDKsbrEnc_PSEncode()
947 hPsData->noEnvCnt = MAX_NOENV_CNT; in FDKsbrEnc_PSEncode()
951 processIidData(hPsData, iid, psBands, nEnvelopes, in FDKsbrEnc_PSEncode()
953 processIccData(hPsData, icc, psBands, nEnvelopes); in FDKsbrEnc_PSEncode()
958 if ((hPsData->headerCnt < MAX_PS_NOHEADER_CNT) && in FDKsbrEnc_PSEncode()
959 ((hPsData->iidQuantMode == hPsData->iidQuantModeLast) && in FDKsbrEnc_PSEncode()
960 (hPsData->iccQuantMode == hPsData->iccQuantModeLast)) && in FDKsbrEnc_PSEncode()
961 ((hPsData->iidEnable == hPsData->iidEnableLast) && in FDKsbrEnc_PSEncode()
962 (hPsData->iccEnable == hPsData->iccEnableLast))) { in FDKsbrEnc_PSEncode()
966 hPsData->headerCnt = 0; in FDKsbrEnc_PSEncode()
970 if ((hPsData->noEnvCnt < MAX_NOENV_CNT) && in FDKsbrEnc_PSEncode()
971 (similarIid(hPsData, psBands, nEnvelopes)) && in FDKsbrEnc_PSEncode()
972 (similarIcc(hPsData, psBands, nEnvelopes))) { in FDKsbrEnc_PSEncode()
974 hPsData->noEnvCnt++; in FDKsbrEnc_PSEncode()
976 hPsData->noEnvCnt = 0; in FDKsbrEnc_PSEncode()
980 hPsOut->enableIID = hPsData->iidEnable; in FDKsbrEnc_PSEncode()
981 hPsOut->iidMode = getIIDMode(psBands, hPsData->iidQuantMode); in FDKsbrEnc_PSEncode()
983 hPsOut->enableICC = hPsData->iccEnable; in FDKsbrEnc_PSEncode()
984 hPsOut->iccMode = getICCMode(psBands, hPsData->iccQuantMode); in FDKsbrEnc_PSEncode()
992 hPsOut->deltaIID[env] = (PS_DELTA)hPsData->iidDiffMode[env]; in FDKsbrEnc_PSEncode()
993 hPsOut->deltaICC[env] = (PS_DELTA)hPsData->iccDiffMode[env]; in FDKsbrEnc_PSEncode()
995 hPsOut->iid[env][band] = hPsData->iidIdx[env][band]; in FDKsbrEnc_PSEncode()
996 hPsOut->icc[env][band] = hPsData->iccIdx[env][band]; in FDKsbrEnc_PSEncode()
1012 hPsOut->iidLast[band] = hPsData->iidIdxLast[band]; in FDKsbrEnc_PSEncode()
1013 hPsOut->iccLast[band] = hPsData->iccIdxLast[band]; in FDKsbrEnc_PSEncode()
1017 hPsData->nEnvelopesLast = nEnvelopes; in FDKsbrEnc_PSEncode()
1018 hPsData->iidEnableLast = hPsData->iidEnable; in FDKsbrEnc_PSEncode()
1019 hPsData->iccEnableLast = hPsData->iccEnable; in FDKsbrEnc_PSEncode()
1020 hPsData->iidQuantModeLast = hPsData->iidQuantMode; in FDKsbrEnc_PSEncode()
1021 hPsData->iccQuantModeLast = hPsData->iccQuantMode; in FDKsbrEnc_PSEncode()
1023 hPsData->iidIdxLast[i] = hPsData->iidIdx[nEnvelopes - 1][i]; in FDKsbrEnc_PSEncode()
1024 hPsData->iccIdxLast[i] = hPsData->iccIdx[nEnvelopes - 1][i]; in FDKsbrEnc_PSEncode()