• Home
  • Raw
  • Download

Lines Matching refs:pHcr

117 static void HcrCalcNumCodeword                    (H_HCR_INFO pHcr);
118 static void HcrSortCodebookAndNumCodewordInSection(H_HCR_INFO pHcr);
119 static void HcrPrepareSegmentationGrid (H_HCR_INFO pHcr);
120 static void HcrExtendedSectionInfo (H_HCR_INFO pHcr);
153 static void DecodePCWs(HANDLE_FDK_BITSTREAM bs, H_HCR_INFO pHcr);
156 H_HCR_INFO pHcr,
164 H_HCR_INFO pHcr,
171 static void errDetectWithinSegmentationFinal(H_HCR_INFO pHcr);
259 void HcrInitRom(H_HCR_INFO pHcr) in HcrInitRom() argument
261 pHcr->cbPairs.pMinOfCbPair = aMinOfCbPair; in HcrInitRom()
262 pHcr->cbPairs.pMaxOfCbPair = aMaxOfCbPair; in HcrInitRom()
264 pHcr->tableInfo.pMaxCwLength = aMaxCwLen; in HcrInitRom()
265 pHcr->tableInfo.pCbDimension = aDimCb; in HcrInitRom()
266 pHcr->tableInfo.pCbDimShift = aDimCbShift; in HcrInitRom()
267 pHcr->tableInfo.pCbSign = aSignCb; in HcrInitRom()
268 pHcr->tableInfo.pCbPriority = aCbPriority; in HcrInitRom()
269 pHcr->tableInfo.pLargestAbsVal = aLargestAbsoluteValue; in HcrInitRom()
280 UINT HcrInit(H_HCR_INFO pHcr, in HcrInit() argument
293pHcr->decInOut.lengthOfReorderedSpectralData = pAacDecoderChannelInfo->pDynData->specificTo.a… in HcrInit()
294pHcr->decInOut.lengthOfLongestCodeword = pAacDecoderChannelInfo->pDynData->specificTo.a… in HcrInit()
295 pHcr->decInOut.pQuantizedSpectralCoefficientsBase = pAacDecoderChannelInfo->pSpectralCoefficient; in HcrInit()
296 pHcr->decInOut.quantizedSpectralCoefficientsIdx = 0; in HcrInit()
297pHcr->decInOut.pCodebook = pAacDecoderChannelInfo->pDynData->specificTo.a… in HcrInit()
298pHcr->decInOut.pNumLineInSect = pAacDecoderChannelInfo->pDynData->specificTo.a… in HcrInit()
299pHcr->decInOut.numSection = pAacDecoderChannelInfo->pDynData->specificTo.a… in HcrInit()
300 pHcr->decInOut.errorLog = 0; in HcrInit()
301pHcr->nonPcwSideinfo.pResultBase = SPEC_LONG(pAacDecoderChannelInfo->pSpectralCoe… in HcrInit()
304 pHcr->decInOut.bitstreamIndex = FDKgetBitCnt(bs); in HcrInit()
324 pNumLinesInSec = pHcr->decInOut.pNumLineInSect; /* out */ in HcrInit()
325 pCodeBk = pHcr->decInOut.pCodebook; /* out */ in HcrInit()
348 errDetectorInHcrSideinfoShrt(cb,numLine,&pHcr->decInOut.errorLog ); in HcrInit()
349 if (pHcr->decInOut.errorLog != 0 ) { in HcrInit()
350 return ( pHcr->decInOut.errorLog ); in HcrInit()
371 errDetectorInHcrSideinfoShrt(cb,numLine,&pHcr->decInOut.errorLog ); in HcrInit()
373 pHcr->decInOut.errorLog |= NUM_SECT_OUT_OF_RANGE_SHORT_BLOCK; in HcrInit()
375 errDetectorInHcrLengths(pHcr->decInOut.lengthOfLongestCodeword, in HcrInit()
376 pHcr->decInOut.lengthOfReorderedSpectralData, in HcrInit()
377 &pHcr->decInOut.errorLog); in HcrInit()
378 if (pHcr->decInOut.errorLog != 0 ) { in HcrInit()
379 return ( pHcr->decInOut.errorLog ); in HcrInit()
385 pHcr->decInOut.numSection = numSection; in HcrInit()
390 errDetectorInHcrLengths(pHcr->decInOut.lengthOfLongestCodeword, in HcrInit()
391 pHcr->decInOut.lengthOfReorderedSpectralData, in HcrInit()
392 &pHcr->decInOut.errorLog); in HcrInit()
393 numSection = pHcr->decInOut.numSection; in HcrInit()
394 pNumLinesInSec = pHcr->decInOut.pNumLineInSect; in HcrInit()
395 pCodeBk = pHcr->decInOut.pCodebook; in HcrInit()
397 pHcr->decInOut.errorLog |= NUM_SECT_OUT_OF_RANGE_LONG_BLOCK; in HcrInit()
406 pHcr->decInOut.errorLog |= CB_OUT_OF_RANGE_LONG_BLOCK; in HcrInit()
413 pHcr->decInOut.errorLog |= LINE_IN_SECT_OUT_OF_RANGE_LONG_BLOCK; in HcrInit()
416 if (pHcr->decInOut.errorLog != 0 ) { in HcrInit()
417 return ( pHcr->decInOut.errorLog ); in HcrInit()
422 pCodeBk = pHcr->decInOut.pCodebook; in HcrInit()
438 return ( pHcr->decInOut.errorLog ); in HcrInit()
451 UINT HcrDecoder(H_HCR_INFO pHcr, in HcrDecoder() argument
456 pHcr->decInOut.pQuantizedSpectralCoefficients->Long[i] = FL2FXCONST_DBL(0.0f); in HcrDecoder()
458 pHcr->decInOut.pQuantizedSpectralCoefficients->Long[i] = (FIXP_DBL)HCR_DIRAC; in HcrDecoder()
472 UINT HcrDecoder(H_HCR_INFO pHcr, in HcrDecoder() argument
485 HcrCalcNumCodeword(pHcr); in HcrDecoder()
487 HcrSortCodebookAndNumCodewordInSection(pHcr); in HcrDecoder()
489 HcrPrepareSegmentationGrid(pHcr); in HcrDecoder()
491 HcrExtendedSectionInfo(pHcr); in HcrDecoder()
493 if (( pHcr->decInOut.errorLog & HCR_FATAL_PCW_ERROR_MASK ) != 0 ) { in HcrDecoder()
494 …return ( pHcr->decInOut.errorLog ); /* sideinfo is massively corrupt, return from HCR without hav… in HcrDecoder()
497 DeriveNumberOfExtendedSortedSectionsInSets(pHcr->segmentInfo.numSegment, in HcrDecoder()
498 pHcr->sectionInfo.pNumExtendedSortedCodewordInSection, in HcrDecoder()
499pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx, in HcrDecoder()
500 pHcr->sectionInfo.pNumExtendedSortedSectionsInSets, in HcrDecoder()
501 pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx); in HcrDecoder()
504 pTmp1 = pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx; in HcrDecoder()
505 pTmp2 = pHcr->sectionInfo.extendedSortedCodebookIdx; in HcrDecoder()
506 pTmp3 = pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx; in HcrDecoder()
507 pTmp4 = pHcr->decInOut.quantizedSpectralCoefficientsIdx; in HcrDecoder()
509 pTmp5 = pHcr->sectionInfo.maxLenOfCbInExtSrtSecIdx; in HcrDecoder()
513 DecodePCWs(bs, pHcr); in HcrDecoder()
515 if (( pHcr->decInOut.errorLog & HCR_FATAL_PCW_ERROR_MASK ) == 0 ) { in HcrDecoder()
517 DecodeNonPCWs(bs, pHcr); in HcrDecoder()
522 errDetectWithinSegmentationFinal(pHcr); in HcrDecoder()
526 pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx = pTmp1; in HcrDecoder()
527 pHcr->sectionInfo.extendedSortedCodebookIdx = pTmp2; in HcrDecoder()
528 pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx = pTmp3; in HcrDecoder()
529 pHcr->decInOut.quantizedSpectralCoefficientsIdx = pTmp4; in HcrDecoder()
531 pHcr->sectionInfo.maxLenOfCbInExtSrtSecIdx = pTmp5; in HcrDecoder()
534 HcrReorderQuantizedSpectralCoefficients(pHcr, pAacDecoderChannelInfo, pSamplingRateInfo); in HcrDecoder()
542 return ( pHcr->decInOut.errorLog ); in HcrDecoder()
562 H_HCR_INFO pHcr, CAacDecoderChannelInfo *pAacDecoderChannelInfo, in HcrReorderQuantizedSpectralCoefficients() argument
573 UINT numSection = pHcr->decInOut.numSection; in HcrReorderQuantizedSpectralCoefficients()
574 …SPECTRAL_PTR pQuantizedSpectralCoefficientsBase = pHcr->decInOut.pQuantizedSpectralCoefficientsBa… in HcrReorderQuantizedSpectralCoefficients()
575 …FIXP_DBL *pQuantizedSpectralCoefficients = SPEC_LONG(pHcr->decInOut.pQuantizedSpectralCoeffici… in HcrReorderQuantizedSpectralCoefficients()
576 const UCHAR *pCbDimShift = pHcr->tableInfo.pCbDimShift; in HcrReorderQuantizedSpectralCoefficients()
577 const USHORT *pLargestAbsVal = pHcr->tableInfo.pLargestAbsVal; in HcrReorderQuantizedSpectralCoefficients()
578 UCHAR *pSortedCodebook = pHcr->sectionInfo.pSortedCodebook; in HcrReorderQuantizedSpectralCoefficients()
579 USHORT *pNumSortedCodewordInSection = pHcr->sectionInfo.pNumSortedCodewordInSection; in HcrReorderQuantizedSpectralCoefficients()
580 USHORT *pReorderOffset = pHcr->sectionInfo.pReorderOffset; in HcrReorderQuantizedSpectralCoefficients()
581 FIXP_DBL *pTempValues = pHcr->segmentInfo.pTempValues; in HcrReorderQuantizedSpectralCoefficients()
582 FIXP_DBL *pBak = pHcr->segmentInfo.pTempValues; in HcrReorderQuantizedSpectralCoefficients()
641 pBak = pHcr->segmentInfo.pTempValues; in HcrReorderQuantizedSpectralCoefficients()
695 pHcr->decInOut.errorLog |= LAV_VIOLATION; in HcrReorderQuantizedSpectralCoefficients()
716 static void HcrCalcNumCodeword(H_HCR_INFO pHcr) in HcrCalcNumCodeword() argument
721 UINT numSection = pHcr->decInOut.numSection; in HcrCalcNumCodeword()
722 UCHAR *pCodebook = pHcr->decInOut.pCodebook; in HcrCalcNumCodeword()
723 SHORT *pNumLineInSection = pHcr->decInOut.pNumLineInSect; in HcrCalcNumCodeword()
724 const UCHAR *pCbDimShift = pHcr->tableInfo.pCbDimShift; in HcrCalcNumCodeword()
725 USHORT *pNumCodewordInSection = pHcr->sectionInfo.pNumCodewordInSection; in HcrCalcNumCodeword()
736 pHcr->sectionInfo.numCodeword = numCodeword; in HcrCalcNumCodeword()
746 static void HcrSortCodebookAndNumCodewordInSection(H_HCR_INFO pHcr) in HcrSortCodebookAndNumCodewordInSection() argument
757 UINT numSection = pHcr->decInOut.numSection; in HcrSortCodebookAndNumCodewordInSection()
758 UCHAR *pCodebook = pHcr->decInOut.pCodebook; in HcrSortCodebookAndNumCodewordInSection()
759 UCHAR *pSortedCodebook = pHcr->sectionInfo.pSortedCodebook; in HcrSortCodebookAndNumCodewordInSection()
760 USHORT *pNumCodewordInSection = pHcr->sectionInfo.pNumCodewordInSection; in HcrSortCodebookAndNumCodewordInSection()
761 USHORT *pNumSortedCodewordInSection = pHcr->sectionInfo.pNumSortedCodewordInSection; in HcrSortCodebookAndNumCodewordInSection()
762 UCHAR *pCodebookSwitch = pHcr->sectionInfo.pCodebookSwitch; in HcrSortCodebookAndNumCodewordInSection()
763 USHORT *pReorderOffset = pHcr->sectionInfo.pReorderOffset; in HcrSortCodebookAndNumCodewordInSection()
764 const UCHAR *pCbPriority = pHcr->tableInfo.pCbPriority; in HcrSortCodebookAndNumCodewordInSection()
765 const UCHAR *pMinOfCbPair = pHcr->cbPairs.pMinOfCbPair; in HcrSortCodebookAndNumCodewordInSection()
766 const UCHAR *pMaxOfCbPair = pHcr->cbPairs.pMaxOfCbPair; in HcrSortCodebookAndNumCodewordInSection()
767 const UCHAR *pCbDimShift = pHcr->tableInfo.pCbDimShift; in HcrSortCodebookAndNumCodewordInSection()
780pHcr->sectionInfo.numSortedSection = numSection - numZeroSection; /* numSortedSection contains … in HcrSortCodebookAndNumCodewordInSection()
781 pCodebook = pHcr->decInOut.pCodebook; in HcrSortCodebookAndNumCodewordInSection()
804 pCodebookSwitch = pHcr->sectionInfo.pCodebookSwitch; in HcrSortCodebookAndNumCodewordInSection()
838 static void HcrPrepareSegmentationGrid(H_HCR_INFO pHcr) in HcrPrepareSegmentationGrid() argument
849 SCHAR lengthOfLongestCodeword = pHcr->decInOut.lengthOfLongestCodeword; in HcrPrepareSegmentationGrid()
850 SHORT lengthOfReorderedSpectralData = pHcr->decInOut.lengthOfReorderedSpectralData; in HcrPrepareSegmentationGrid()
851 UINT numSortedSection = pHcr->sectionInfo.numSortedSection; in HcrPrepareSegmentationGrid()
852 UCHAR *pSortedCodebook = pHcr->sectionInfo.pSortedCodebook; in HcrPrepareSegmentationGrid()
853 USHORT *pNumSortedCodewordInSection = pHcr->sectionInfo.pNumSortedCodewordInSection; in HcrPrepareSegmentationGrid()
854 USHORT *pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment; in HcrPrepareSegmentationGrid()
855 USHORT *pRightStartOfSegment = pHcr->segmentInfo.pRightStartOfSegment; in HcrPrepareSegmentationGrid()
856 SCHAR *pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment; in HcrPrepareSegmentationGrid()
857 USHORT bitstreamIndex = pHcr->decInOut.bitstreamIndex; in HcrPrepareSegmentationGrid()
858 const UCHAR *pMaxCwLength = pHcr->tableInfo.pMaxCwLength; in HcrPrepareSegmentationGrid()
895 pHcr->segmentInfo.numSegment = numSegment; in HcrPrepareSegmentationGrid()
909 static void HcrExtendedSectionInfo(H_HCR_INFO pHcr) in HcrExtendedSectionInfo() argument
916 UINT numSortedSection = pHcr->sectionInfo.numSortedSection; in HcrExtendedSectionInfo()
917 UCHAR *pSortedCodebook = pHcr->sectionInfo.pSortedCodebook; in HcrExtendedSectionInfo()
918 USHORT *pNumSortedCodewordInSection = pHcr->sectionInfo.pNumSortedCodewordInSection; in HcrExtendedSectionInfo()
919 UCHAR *pExtendedSortedCoBo = pHcr->sectionInfo.pExtendedSortedCodebook; in HcrExtendedSectionInfo()
920 USHORT *pNumExtSortCwInSect = pHcr->sectionInfo.pNumExtendedSortedCodewordInSection; in HcrExtendedSectionInfo()
921 UINT numSegment = pHcr->segmentInfo.numSegment; in HcrExtendedSectionInfo()
923 UCHAR *pMaxLenOfCbInExtSrtSec = pHcr->sectionInfo.pMaxLenOfCbInExtSrtSec; in HcrExtendedSectionInfo()
924 SCHAR lengthOfLongestCodeword = pHcr->decInOut.lengthOfLongestCodeword; in HcrExtendedSectionInfo()
925 const UCHAR *pMaxCwLength = pHcr->tableInfo.pMaxCwLength; in HcrExtendedSectionInfo()
969 pHcr->decInOut.errorLog |= EXTENDED_SORTED_COUNTER_OVERFLOW; in HcrExtendedSectionInfo()
1044 static void DecodePCWs(HANDLE_FDK_BITSTREAM bs, H_HCR_INFO pHcr) in DecodePCWs() argument
1055 …USHORT *pNumExtendedSortedCodewordInSection = pHcr->sectionInfo.pNumExtendedSortedCodewordInS… in DecodePCWs()
1056 …int numExtendedSortedCodewordInSectionIdx = pHcr->sectionInfo.numExtendedSortedCodewordIn… in DecodePCWs()
1057 UCHAR *pExtendedSortedCodebook = pHcr->sectionInfo.pExtendedSortedCodebook; in DecodePCWs()
1058 int extendedSortedCodebookIdx = pHcr->sectionInfo.extendedSortedCodebookIdx; in DecodePCWs()
1059 …USHORT *pNumExtendedSortedSectionsInSets = pHcr->sectionInfo.pNumExtendedSortedSectionsInS… in DecodePCWs()
1060 …int numExtendedSortedSectionsInSetsIdx = pHcr->sectionInfo.numExtendedSortedSectionsInSe… in DecodePCWs()
1061 …FIXP_DBL *pQuantizedSpectralCoefficients = SPEC_LONG(pHcr->decInOut.pQuantizedSpectralCoef… in DecodePCWs()
1062 …int quantizedSpectralCoefficientsIdx = pHcr->decInOut.quantizedSpectralCoefficientsIdx; in DecodePCWs()
1063 USHORT *pLeftStartOfSegment = pHcr->segmentInfo.pLeftStartOfSegment; in DecodePCWs()
1064 SCHAR *pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment; in DecodePCWs()
1066 UCHAR *pMaxLenOfCbInExtSrtSec = pHcr->sectionInfo.pMaxLenOfCbInExtSrtSec; in DecodePCWs()
1067 int maxLenOfCbInExtSrtSecIdx = pHcr->sectionInfo.maxLenOfCbInExtSrtSecIdx; in DecodePCWs()
1071 const UCHAR *pCbDimension = pHcr->tableInfo.pCbDimension; in DecodePCWs()
1072 const UCHAR *pCbSign = pHcr->tableInfo.pCbSign; in DecodePCWs()
1129 pHcr->decInOut.errorLog |= TOO_MANY_PCW_BODY_BITS_DECODED; in DecodePCWs()
1134 …if (1 == errDetectPcwSegmentation(*pRemainingBitsInSegment-ERROR_PCW_BODY,pHcr,PCW_BODY,pQuantized… in DecodePCWs()
1175 pHcr->decInOut.errorLog |= TOO_MANY_PCW_BODY_SIGN_BITS_DECODED; in DecodePCWs()
1180 …if (1 == errDetectPcwSegmentation(*pRemainingBitsInSegment-ERROR_PCW_BODY_SIGN,pHcr,PCW_BODY_SIGN,… in DecodePCWs()
1252 pHcr->decInOut.errorLog |= TOO_MANY_PCW_BODY_SIGN_ESC_BITS_DECODED; in DecodePCWs()
1257 …if (1 == errDetectPcwSegmentation(*pRemainingBitsInSegment-ERROR_PCW_BODY_SIGN_ESC,pHcr,PCW_BODY_S… in DecodePCWs()
1280 pHcr->sectionInfo.numExtendedSortedCodewordInSectionIdx = numExtendedSortedCodewordInSectionIdx; in DecodePCWs()
1281 pHcr->sectionInfo.extendedSortedCodebookIdx = extendedSortedCodebookIdx; in DecodePCWs()
1282 pHcr->sectionInfo.numExtendedSortedSectionsInSetsIdx = numExtendedSortedSectionsInSetsIdx; in DecodePCWs()
1283 pHcr->decInOut.quantizedSpectralCoefficientsIdx = quantizedSpectralCoefficientsIdx; in DecodePCWs()
1284 pHcr->sectionInfo.maxLenOfCbInExtSrtSecIdx = maxLenOfCbInExtSrtSecIdx; in DecodePCWs()
1297 H_HCR_INFO pHcr, in errDetectPcwSegmentation() argument
1307 pHcr->decInOut.errorLog |= SEGMENT_OVERRIDE_ERR_PCW_BODY; in errDetectPcwSegmentation()
1310 pHcr->decInOut.errorLog |= SEGMENT_OVERRIDE_ERR_PCW_BODY_SIGN; in errDetectPcwSegmentation()
1313 pHcr->decInOut.errorLog |= SEGMENT_OVERRIDE_ERR_PCW_BODY_SIGN_ESC; in errDetectPcwSegmentation()
1332 static void errDetectWithinSegmentationFinal(H_HCR_INFO pHcr) in errDetectWithinSegmentationFinal() argument
1336 SCHAR *pRemainingBitsInSegment = pHcr->segmentInfo.pRemainingBitsInSegment; in errDetectWithinSegmentationFinal()
1337 UINT numSegment = pHcr->segmentInfo.numSegment; in errDetectWithinSegmentationFinal()
1345 pHcr->decInOut.errorLog |= BIT_IN_SEGMENTATION_ERROR; in errDetectWithinSegmentationFinal()