Lines Matching refs:hPsData
170 HANDLE_PS_DATA hPsData in InitPSData() argument
175 if(hPsData == NULL) { in InitPSData()
180 FDKmemclear(hPsData,sizeof(PS_DATA)); in InitPSData()
183 hPsData->iidIdxLast[i] = 0; in InitPSData()
184 hPsData->iccIdxLast[i] = 0; in InitPSData()
187 hPsData->iidEnable = hPsData->iidEnableLast = 0; in InitPSData()
188 hPsData->iccEnable = hPsData->iccEnableLast = 0; in InitPSData()
189 hPsData->iidQuantMode = hPsData->iidQuantModeLast = PS_IID_RES_COARSE; in InitPSData()
190 hPsData->iccQuantMode = hPsData->iccQuantModeLast = PS_ICC_ROT_A; in InitPSData()
193 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
194 hPsData->iccDiffMode[env] = PS_DELTA_FREQ; in InitPSData()
197 hPsData->iidIdx[env][i] = 0; in InitPSData()
198 hPsData->iccIdx[env][i] = 0; in InitPSData()
202 hPsData->nEnvelopesLast = 0; in InitPSData()
204 hPsData->headerCnt = MAX_PS_NOHEADER_CNT; in InitPSData()
205 hPsData->iidTimeCnt = MAX_TIME_DIFF_FRAMES; in InitPSData()
206 hPsData->iccTimeCnt = MAX_TIME_DIFF_FRAMES; in InitPSData()
207 hPsData->noEnvCnt = MAX_NOENV_CNT; in InitPSData()
850 HANDLE_PS_DATA hPsData = &hPsEncode->psData; in FDKsbrEnc_PSEncode() local
957 hPsData->headerCnt = MAX_PS_NOHEADER_CNT; in FDKsbrEnc_PSEncode()
958 hPsData->iidTimeCnt = MAX_TIME_DIFF_FRAMES; in FDKsbrEnc_PSEncode()
959 hPsData->iccTimeCnt = MAX_TIME_DIFF_FRAMES; in FDKsbrEnc_PSEncode()
960 hPsData->noEnvCnt = MAX_NOENV_CNT; in FDKsbrEnc_PSEncode()
964 processIidData(hPsData, iid, psBands, nEnvelopes, hPsEncode->iidQuantErrorThreshold); in FDKsbrEnc_PSEncode()
965 processIccData(hPsData, icc, psBands, nEnvelopes); in FDKsbrEnc_PSEncode()
971 if( (hPsData->headerCnt<MAX_PS_NOHEADER_CNT) in FDKsbrEnc_PSEncode()
972 …&& ( (hPsData->iidQuantMode == hPsData->iidQuantModeLast) && (hPsData->iccQuantMode == hPsData->ic… in FDKsbrEnc_PSEncode()
973 …&& ( (hPsData->iidEnable == hPsData->iidEnableLast) && (hPsData->iccEnable == hPsData->ic… in FDKsbrEnc_PSEncode()
978 hPsData->headerCnt = 0; in FDKsbrEnc_PSEncode()
982 if ( (hPsData->noEnvCnt < MAX_NOENV_CNT) in FDKsbrEnc_PSEncode()
983 && (similarIid(hPsData, psBands, nEnvelopes)) in FDKsbrEnc_PSEncode()
984 && (similarIcc(hPsData, psBands, nEnvelopes)) ) { in FDKsbrEnc_PSEncode()
986 hPsData->noEnvCnt++; in FDKsbrEnc_PSEncode()
988 hPsData->noEnvCnt = 0; in FDKsbrEnc_PSEncode()
994 hPsOut->enableIID = hPsData->iidEnable; in FDKsbrEnc_PSEncode()
995 hPsOut->iidMode = getIIDMode(psBands, hPsData->iidQuantMode); in FDKsbrEnc_PSEncode()
997 hPsOut->enableICC = hPsData->iccEnable; in FDKsbrEnc_PSEncode()
998 hPsOut->iccMode = getICCMode(psBands, hPsData->iccQuantMode); in FDKsbrEnc_PSEncode()
1009 hPsOut->deltaIID[env] = (PS_DELTA)hPsData->iidDiffMode[env]; in FDKsbrEnc_PSEncode()
1012 hPsOut->iid[env][band] = hPsData->iidIdx[env][band]; in FDKsbrEnc_PSEncode()
1017 hPsOut->deltaICC[env] = (PS_DELTA)hPsData->iccDiffMode[env]; in FDKsbrEnc_PSEncode()
1019 hPsOut->icc[env][band] = hPsData->iccIdx[env][band]; in FDKsbrEnc_PSEncode()
1034 hPsOut->iidLast[band] = hPsData->iidIdxLast[band]; in FDKsbrEnc_PSEncode()
1035 hPsOut->iccLast[band] = hPsData->iccIdxLast[band]; in FDKsbrEnc_PSEncode()
1039 hPsData->nEnvelopesLast = nEnvelopes; in FDKsbrEnc_PSEncode()
1040 hPsData->iidEnableLast = hPsData->iidEnable; in FDKsbrEnc_PSEncode()
1041 hPsData->iccEnableLast = hPsData->iccEnable; in FDKsbrEnc_PSEncode()
1042 hPsData->iidQuantModeLast = hPsData->iidQuantMode; in FDKsbrEnc_PSEncode()
1043 hPsData->iccQuantModeLast = hPsData->iccQuantMode; in FDKsbrEnc_PSEncode()
1045 hPsData->iidIdxLast[i] = hPsData->iidIdx[nEnvelopes-1][i]; in FDKsbrEnc_PSEncode()
1046 hPsData->iccIdxLast[i] = hPsData->iccIdx[nEnvelopes-1][i]; in FDKsbrEnc_PSEncode()