• Home
  • Raw
  • Download

Lines Matching refs:psData

329 static void processIidData(PS_DATA *psData,  in processIidData()  argument
361 psData->iidEnable = 0; in processIidData()
371 psData->iidEnable = 1; in processIidData()
375 if (psData->iidEnable == 0) { in processIidData()
376 psData->iidTimeCnt = MAX_TIME_DIFF_FRAMES; in processIidData()
378 psData->iidDiffMode[env] = PS_DELTA_FREQ; in processIidData()
379 FDKmemclear(psData->iidIdx[env], sizeof(INT) * psBands); in processIidData()
388 if ((psData->iidTimeCnt >= MAX_TIME_DIFF_FRAMES) || in processIidData()
389 (psData->iidQuantModeLast == PS_IID_RES_FINE)) { in processIidData()
393 FDKsbrEnc_EncodeIid(NULL, iidIdxCoarse[0], psData->iidIdxLast, psBands, in processIidData()
428 if ((psData->iidTimeCnt >= MAX_TIME_DIFF_FRAMES) || in processIidData()
429 (psData->iidQuantModeLast == PS_IID_RES_COARSE)) { in processIidData()
433 FDKsbrEnc_EncodeIid(NULL, iidIdxFine[0], psData->iidIdxLast, psBands, in processIidData()
493 psData->iidQuantMode = PS_IID_RES_FINE; in processIidData()
495 psData->iidDiffMode[env] = diffModeFine[env]; in processIidData()
496 FDKmemcpy(psData->iidIdx[env], iidIdxFine[env], psBands * sizeof(INT)); in processIidData()
499 psData->iidQuantMode = PS_IID_RES_COARSE; in processIidData()
501 psData->iidDiffMode[env] = diffMode[env]; in processIidData()
502 FDKmemcpy(psData->iidIdx[env], iidIdxCoarse[env], psBands * sizeof(INT)); in processIidData()
508 if (psData->iidDiffMode[env] == PS_DELTA_TIME) in processIidData()
509 psData->iidTimeCnt++; in processIidData()
511 psData->iidTimeCnt = 0; in processIidData()
515 static INT similarIid(PS_DATA *psData, const INT psBands, in similarIid() argument
517 const INT diffThr = (psData->iidQuantMode == PS_IID_RES_COARSE) ? 2 : 3; in similarIid()
524 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes == 1)) { in similarIid()
530 diff = fixp_abs(psData->iidIdx[env][b] - psData->iidIdxLast[b]); in similarIid()
545 static INT similarIcc(PS_DATA *psData, const INT psBands, in similarIcc() argument
554 if ((nEnvelopes == psData->nEnvelopesLast) && (nEnvelopes == 1)) { in similarIcc()
560 diff = fixp_abs(psData->iccIdx[env][b] - psData->iccIdxLast[b]); in similarIcc()
576 PS_DATA *psData, in processIccData() argument
590 iccIdxLast = psData->iccIdxLast; in processIccData()
595 quantizeCoef(icc[env], psBands, iccQuant, 0, 8, psData->iccIdx[env]); in processIccData()
599 psData->iccEnable = 0; in processIccData()
602 inCoherence += psData->iccIdx[env][band]; in processIccData()
608 psData->iccEnable = 1; in processIccData()
611 if (psData->iccEnable == 0) { in processIccData()
612 psData->iccTimeCnt = MAX_TIME_DIFF_FRAMES; in processIccData()
614 psData->iccDiffMode[env] = PS_DELTA_FREQ; in processIccData()
615 FDKmemclear(psData->iccIdx[env], sizeof(INT) * psBands); in processIccData()
621 bitsIccFreq = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], NULL, psBands, in processIccData()
624 if (psData->iccTimeCnt < MAX_TIME_DIFF_FRAMES) { in processIccData()
625 bitsIccTime = FDKsbrEnc_EncodeIcc(NULL, psData->iccIdx[env], iccIdxLast, in processIccData()
632 psData->iccDiffMode[env] = PS_DELTA_TIME; in processIccData()
633 psData->iccTimeCnt++; in processIccData()
635 psData->iccDiffMode[env] = PS_DELTA_FREQ; in processIccData()
636 psData->iccTimeCnt = 0; in processIccData()
638 iccIdxLast = psData->iccIdx[env]; in processIccData()
769 if (PSENC_OK != (InitPSData(&hPsEncode->psData))) { in FDKsbrEnc_InitPSEncode()
828 HANDLE_PS_DATA hPsData = &hPsEncode->psData; in FDKsbrEnc_PSEncode()