Home | History | Annotate | Download | only in src

Lines Matching refs:psData

336 static void processIidData(PS_DATA       *psData,
371 psData->iidEnable = 0;
380 psData->iidEnable = 1;
384 if(psData->iidEnable==0) {
385 psData->iidTimeCnt = MAX_TIME_DIFF_FRAMES;
387 psData->iidDiffMode[env] = PS_DELTA_FREQ;
388 FDKmemclear(psData->iidIdx[env], sizeof(INT)*psBands);
396 if( (psData->iidTimeCnt>=MAX_TIME_DIFF_FRAMES) || (psData->iidQuantModeLast==PS_IID_RES_FINE) ) {
400 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[0], psData->iidIdxLast, psBands, PS_IID_RES_COARSE, PS_DELTA_TIME, &error);
433 if( (psData->iidTimeCnt>=MAX_TIME_DIFF_FRAMES) || (psData->iidQuantModeLast==PS_IID_RES_COARSE) ) {
437 bitsIidTime = FDKsbrEnc_EncodeIid(NULL, iidIdxFine[0], psData->iidIdxLast, psBands, PS_IID_RES_FINE, PS_DELTA_TIME, &error);
490 psData->iidQuantMode = PS_IID_RES_FINE;
492 psData->iidDiffMode[env] = diffModeFine[env];
493 FDKmemcpy(psData->iidIdx[env], iidIdxFine[env], psBands*sizeof(INT));
497 psData->iidQuantMode = PS_IID_RES_COARSE;
499 psData->iidDiffMode[env] = diffMode[env];
500 FDKmemcpy(psData->iidIdx[env], iidIdxCoarse[env], psBands*sizeof(INT));
506 if(psData->iidDiffMode[env]==PS_DELTA_TIME)
507 psData->iidTimeCnt++;
509 psData->iidTimeCnt=0;
514 static INT similarIid(PS_DATA *psData,
518 const INT diffThr = (psData->iidQuantMode == PS_IID_RES_COARSE) ? 2 : 3;
525 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes==1)) {
531 diff = fixp_abs(psData->iidIdx[env][b] - psData->iidIdxLast[b]);
546 static INT similarIcc(PS_DATA *psData,
557 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes==1)) {
563 diff = fixp_abs(psData->iccIdx[env][b] - psData->iccIdxLast[b]);
577 static void processIccData(PS_DATA *psData,
589 iccIdxLast = psData->iccIdxLast;
593 errICC += quantizeCoef(icc[env], psBands, iccQuant, 0, 8, psData->iccIdx[env]);
597 psData->iccEnable = 0;
600 inCoherence += psData->iccIdx[env][band];
605 psData->iccEnable = 1;
608 if(psData->iccEnable==0) {
609 psData->iccTimeCnt = MAX_TIME_DIFF_FRAMES;
611 psData->iccDiffMode[env] = PS_DELTA_FREQ;
612 FDKmemclear(psData->iccIdx[env], sizeof(INT)*psBands);
618 bitsIccFreq = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], NULL, psBands, PS_DELTA_FREQ, &error);
620 if(psData->iccTimeCnt<MAX_TIME_DIFF_FRAMES) {
621 bitsIccTime = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], iccIdxLast, psBands, PS_DELTA_TIME, &error);
628 psData->iccDiffMode[env] = PS_DELTA_TIME;
629 psData->iccTimeCnt++;
632 psData->iccDiffMode[env] = PS_DELTA_FREQ;
633 psData->iccTimeCnt=0;
635 iccIdxLast = psData->iccIdx[env];
787 if (PSENC_OK != (InitPSData(&hPsEncode->psData))) {
850 HANDLE_PS_DATA hPsData = &hPsEncode->psData;